mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 16:22:29 +00:00
Import more Musl math
This commit is contained in:
parent
6d52664aa7
commit
3027d67037
48 changed files with 1749 additions and 180 deletions
|
@ -36,8 +36,8 @@ asm(".ident\t\"\\n\\n\
|
|||
Musl libc (MIT License)\\n\
|
||||
Copyright 2005-2014 Rich Felker, et. al.\"");
|
||||
asm(".include \"libc/disclaimer.inc\"");
|
||||
|
||||
/* clang-format off */
|
||||
|
||||
/* origin: FreeBSD /usr/src/lib/msun/src/s_sin.c */
|
||||
/*
|
||||
* ====================================================
|
||||
|
@ -83,6 +83,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 of 𝑥.
|
||||
* @note should take ~5ns
|
||||
*/
|
||||
double sin(double x)
|
||||
{
|
||||
double y[2];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue