mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 23:08:31 +00:00
Import more Musl math
This commit is contained in:
parent
6d52664aa7
commit
3027d67037
48 changed files with 1749 additions and 180 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue