mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Get llama.com working on aarch64
This commit is contained in:
parent
4c093155a3
commit
a0237a017c
19 changed files with 321 additions and 157 deletions
|
@ -58,7 +58,7 @@ static inline uint64_t mul64(uint64_t a, uint64_t b)
|
|||
*/
|
||||
double sqrt(double x)
|
||||
{
|
||||
#ifdef __SSE2__
|
||||
#if defined(__x86_64__) && defined(__SSE2__)
|
||||
|
||||
asm("sqrtsd\t%1,%0" : "=x"(x) : "x"(x));
|
||||
return x;
|
||||
|
@ -218,5 +218,5 @@ double sqrt(double x)
|
|||
}
|
||||
return y;
|
||||
|
||||
#endif /* __SSE2__ */
|
||||
#endif /* __x86_64__ */
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue