Get llama.com working on aarch64

This commit is contained in:
Justine Tunney 2023-05-09 22:41:57 -07:00
parent 4c093155a3
commit a0237a017c
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
19 changed files with 321 additions and 157 deletions

View file

@ -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__ */
}