mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 06:48:31 +00:00
Import C++ Standard Template Library
You can now use the hardest fastest and most dangerous language there is with Cosmopolitan. So far about 75% of LLVM libcxx has been added. A few breaking changes needed to be made to help this go smoothly. - Rename nothrow to dontthrow - Rename nodiscard to dontdiscard - Add some libm functions, e.g. lgamma, nan, etc. - Change intmax_t from int128 to int64 like everything else - Introduce %jjd formatting directive for int128_t - Introduce strtoi128(), strtou128(), etc. - Rename bsrmax() to bsr128() Some of the templates that should be working currently are std::vector, std::string, std::map, std::set, std::deque, etc.
This commit is contained in:
parent
5022f9e920
commit
868af3f950
286 changed files with 123987 additions and 507 deletions
12
libc/math.h
12
libc/math.h
|
@ -182,6 +182,8 @@ float fminf(float, float);
|
|||
float fmodf(float, float);
|
||||
float hypotf(float, float);
|
||||
float ldexpf(float, int);
|
||||
float lgammaf(float);
|
||||
float lgammaf_r(float, int *);
|
||||
float log10f(float);
|
||||
float log1pf(float);
|
||||
float log2f(float);
|
||||
|
@ -205,10 +207,11 @@ float sinhf(float);
|
|||
float sqrtf(float);
|
||||
float tanf(float);
|
||||
float tanhf(float);
|
||||
float truncf(float);
|
||||
float tgammaf(float);
|
||||
float truncf(float);
|
||||
int finitef(float);
|
||||
|
||||
int finitel(long double);
|
||||
long double acoshl(long double);
|
||||
long double acosl(long double);
|
||||
long double asinhl(long double);
|
||||
|
@ -237,6 +240,8 @@ long double fminl(long double, long double);
|
|||
long double fmodl(long double, long double);
|
||||
long double hypotl(long double, long double);
|
||||
long double ldexpl(long double, int);
|
||||
long double lgammal(long double);
|
||||
long double lgammal_r(long double, int *);
|
||||
long double log10l(long double);
|
||||
long double log1pl(long double);
|
||||
long double log2l(long double);
|
||||
|
@ -260,8 +265,8 @@ long double sinl(long double);
|
|||
long double sqrtl(long double);
|
||||
long double tanhl(long double);
|
||||
long double tanl(long double);
|
||||
long double tgammal(long double);
|
||||
long double truncl(long double);
|
||||
int finitel(long double);
|
||||
|
||||
long lrint(double);
|
||||
long lrintf(float);
|
||||
|
@ -283,12 +288,15 @@ long long llroundl(long double);
|
|||
|
||||
double frexp(double, int *);
|
||||
double modf(double, double *);
|
||||
double nan(const char *);
|
||||
double remquo(double, double, int *);
|
||||
float frexpf(float, int *);
|
||||
float modff(float, float *);
|
||||
float nanf(const char *);
|
||||
float remquof(float, float, int *);
|
||||
long double frexpl(long double, int *);
|
||||
long double modfl(long double, long double *);
|
||||
long double nanl(const char *);
|
||||
long double remquol(long double, long double, int *);
|
||||
void sincos(double, double *, double *);
|
||||
void sincosf(float, float *, float *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue