diff options
author | A. Wilcox <awilcox@wilcox-tech.com> | 2018-09-21 21:30:18 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2018-09-21 21:30:18 +0000 |
commit | e7fd895295db6291319af09ffaa3b6d93180788c (patch) | |
tree | 6ad80501db199c916e8fc2ed5648bf694a257675 /libgcompat/math.c | |
parent | 938c8095e7456fbcdf4ce261bdb6dfa3a8e41b80 (diff) | |
parent | 9bc7c737b311fcbba71af11884b7f9111dba57ba (diff) | |
download | gcompat-e7fd895295db6291319af09ffaa3b6d93180788c.tar.gz gcompat-e7fd895295db6291319af09ffaa3b6d93180788c.tar.bz2 gcompat-e7fd895295db6291319af09ffaa3b6d93180788c.tar.xz gcompat-e7fd895295db6291319af09ffaa3b6d93180788c.zip |
Merge branch 'patch-3' into 'master'
Add some more functions (notably __cxa_thread_atexit_impl and realpath) and run clang-format
See merge request !3
Diffstat (limited to 'libgcompat/math.c')
-rw-r--r-- | libgcompat/math.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/libgcompat/math.c b/libgcompat/math.c index 83abbf4..793ff1a 100644 --- a/libgcompat/math.c +++ b/libgcompat/math.c @@ -1,8 +1,8 @@ -#define _GNU_SOURCE /* Extra maths functions */ -#include <math.h> /* Literally everything */ +#define _GNU_SOURCE /* Extra maths functions */ +#include <math.h> /* Literally everything */ -#include "alias.h" /* weak_alias */ -#include "internal.h" /* GCOMPAT__assert_with_reason */ +#include "alias.h" /* weak_alias */ +#include "internal.h" /* GCOMPAT__assert_with_reason */ /** * Multiplies the first argument x by FLT_RADIX (probably 2) to the power of y. @@ -14,7 +14,7 @@ long double scalbl(long double x, long double y) * 1) Good Enough(TM) * 2) scalbl is deprecated anyway * */ - return scalblnl(x, (long int)y); + return scalblnl(x, (long int) y); } /* @@ -144,7 +144,6 @@ int __isnan(double arg) } weak_alias(__isnan, isnan); - /** * Test for a NaN. * @@ -290,7 +289,6 @@ long double __asinl_finite(long double x) return res; } - /** * Returns the principal value of the arc tangent of x/y, expressed in radians. */ @@ -363,7 +361,6 @@ long double __atanhl_finite(long double x) return res; } - /** * Returns the hyperbolic cosine of x. */ |