mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58:30 +00:00
Perform some code cleanup
This commit is contained in:
parent
cc1732bc42
commit
210187cf77
205 changed files with 1748 additions and 2595 deletions
|
@ -28,6 +28,7 @@
|
|||
#include "libc/complex.h"
|
||||
#include "libc/math.h"
|
||||
#include "libc/tinymath/complex.internal.h"
|
||||
#if LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384
|
||||
|
||||
asm(".ident\t\"\\n\\n\
|
||||
OpenBSD libm (ISC License)\\n\
|
||||
|
@ -138,12 +139,6 @@ static const long double C2 = 1.4286068203094172321215E-6L;
|
|||
*/
|
||||
long double log1pl(long double xm1)
|
||||
{
|
||||
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
|
||||
|
||||
return log1p(xm1);
|
||||
|
||||
#elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384
|
||||
|
||||
long double x, y, z;
|
||||
int e;
|
||||
|
||||
|
@ -208,13 +203,6 @@ long double log1pl(long double xm1)
|
|||
z = z + x;
|
||||
z = z + e * C1;
|
||||
return z;
|
||||
|
||||
#elif LDBL_MANT_DIG == 113 && LDBL_MAX_EXP == 16384
|
||||
|
||||
long double __log1plq(long double);
|
||||
return __log1plq(xm1);
|
||||
|
||||
#else
|
||||
#error "architecture unsupported"
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif /* ieee80 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue