Import more Musl math

This commit is contained in:
Justine Tunney 2022-07-12 15:49:11 -07:00
parent 6d52664aa7
commit 3027d67037
48 changed files with 1749 additions and 180 deletions

View file

@ -54,6 +54,10 @@ asm(".include \"libc/disclaimer.inc\"");
#define asuint64(f) ((union{double _f; uint64_t _i;}){f})._i
#define gethighw(hi,d) (hi) = asuint64(d) >> 32
/**
* Returns sine and cosine of 𝑥.
* @note should take ~10ns
*/
void sincos(double x, double *sin, double *cos)
{
double y[2], s, c;