Commit Graph

37 Commits

Author SHA1 Message Date
Jacob Young
a8783fe21f Remove a duplicate function, cleanup sorting and use consistent argument names in math.h.
Add missing math.h tests and make each test a single line for easier comparison with math.h.
Add missing cmath undefs and functions and use constexpr instead of static.
2020-03-16 15:00:40 +01:00
Émilie Feral
e7619633bd [liba] Add fmax in math.h header 2018-07-18 16:32:49 +02:00
Émilie Feral
2a05247629 [liba] Add hypot in math.h header 2018-07-18 16:32:49 +02:00
Léa Saviot
fe3d470d2d [liba] Fixed Gamma function bug.
There was a problem with the definition of ldexp, used in b_log__D.c

Change-Id: I83d012815e38b76efa730c1a3d259ec276e15f11
2017-11-17 14:05:23 +01:00
Romain Goyet
f265822792 [liba] Add extra math functions (erf erfc log2 logb tgamma rint scalb) 2017-11-17 11:59:49 +01:00
Romain Goyet
0ca52e201f [liba] Add extra libm symbols (ldexp, fmod, trunc, atan2) 2017-11-17 11:59:49 +01:00
Romain Goyet
b9e83231e6 [liba] Add extra math functions (frexpf, modff, truncf) 2017-11-17 11:59:49 +01:00
Romain Goyet
5a2446eff7 [liba] Proper support for function-like macros for math functions 2017-10-19 17:31:40 +02:00
Jacob Young
da1e66e798 Fix #115 by fixing the math.h and cmath includes. 2017-10-13 18:08:15 +02:00
Jacob Young
4d9e8c40b8 Fix #102. 2017-09-21 13:32:27 +02:00
Jacob Young
7e2cc375d2 Fix potential overflow in complex radius calculation. 2017-09-20 12:04:35 +02:00
Émilie Feral
818c56bd45 [python] Enable float
Change-Id: I94111dd821fb3a9ef1e22ae5133c3a48285c52d5
2017-08-25 11:20:49 +02:00
Émilie Feral
1964d61fdc [libaxx] add cmath and use cmath instead of math.h when required
Change-Id: Id839b17d33c69e2e002f370e553ff35246a1bc90
2017-08-16 09:55:29 +02:00
Émilie Feral
9f0bbe0e75 [liba] Avoid implicit declarations
Change-Id: I4ee85185a2a35550b7dcdec383a8335423ac1156
2017-08-16 09:55:29 +02:00
Émilie Feral
44328a9faa [liba] Expose copysign libm function
Change-Id: Ib38f94a9bab141c5ed417d5ea2cf654aef9179f5
2017-08-16 09:55:28 +02:00
Romain Goyet
c84b378b8b [liba] Add a double-precision libm
Change-Id: I3d0b5393eaaec3e01529e739535512c07f41a088
2017-08-03 14:52:20 +02:00
Romain Goyet
a1f1e2df6a [liba] isinf/isnan both work on double
Change-Id: I08e0c338e343a5357b91ed3a3f2e63db37efc983
2017-08-03 14:51:00 +02:00
Émilie Feral
e13919cca7 [poincare] Use OpenBSD function for cosh, sinh, tanh and arccosh,
arcsinh and arctanh

Change-Id: I64f6718ebdd042512ce9b9db78dffa3c943471ff
2017-03-16 17:35:36 +01:00
Émilie Feral
d11fede7e3 [liba] Add openbsd implemenation of acos and asin
Change-Id: Ifc455f4e758e7c9fd936439b988bf4faf8affe4b
2017-03-16 15:12:09 +01:00
Émilie Feral
a07a90c182 [liba] Add openbsd implementation of arc tan
Change-Id: I48f555ea0da4cf10d3bc225c1bc4cb931c2cc8db
2017-02-13 17:15:04 +01:00
Émilie Feral
42e4cf408d [poincare] Enbale to evaluate expression in degrees or radian
Change-Id: I8b08e7fa93431817559a594a1ea03d4414f0c830
2017-02-06 16:30:48 +01:00
Émilie Feral
9c3384e86b [liba] Clean warnings: overflows due to INFINITY constant
Change-Id: I8a454e673afa7e4190f3d2ed74006622597b275b
2017-01-30 16:06:42 +01:00
Émilie Feral
b3593da856 [liba] Delete useless constant HUGE_VALF
Change-Id: Ibc72edb4b5e398bde1ea7df4fceea6c362043281
2017-01-09 15:08:54 +01:00
Émilie Feral
24c23f761c [liba] add constant INFINITY
Change-Id: I801a23f5bb84bd86a4e93f6c24815737555ee8ce
2016-12-16 14:30:56 +01:00
Émilie Feral
6e47595eaa [liba] Add expf and lgammaf to the math library
Change-Id: I8ddca97622404bf3346a3166e354bbfc88fc299f
2016-12-15 16:17:48 +01:00
Émilie Feral
e58163adc6 [liba] Correct error syntax: 0.0F->0.0f
Change-Id: Id81cd3395a27e5411f0d9832fdd09806fbec7cb8
2016-12-08 17:10:36 +01:00
Émilie Feral
9b01508fac [liba] add the method ceilf in math library
Change-Id: I339c6e51b5b89d6d18ee5dc55f069919697aea3a
2016-12-08 15:21:52 +01:00
Émilie Feral
0de52a72f1 [liba] add NAN as constant
Change-Id: Ie8b18fe4b8423d118697ebee1ac121b356e53a69
2016-12-05 12:01:22 +01:00
Romain Goyet
8bff8a97aa [liba] Implement isnan and isinf as specified by the C99 standard
Change-Id: Ie767503568b7391d421a46052a1fc4a85b4006c7
2016-10-26 10:01:57 +02:00
Romain Goyet
6ba4c55832 [liba] Use roundf from OpenBSD
Change-Id: I00fbcadffcc54b2af820de203be6c5880f12a884
2016-10-25 11:38:13 +02:00
Romain Goyet
5befa0f0a8 [liba] Add isinff and isnanf
Change-Id: I7141c6aef7dc8fed3538f157f9c1fcec76d951d1
2016-10-25 11:01:21 +02:00
Romain Goyet
183efe9257 [liba] Import trigonometric function from OpenBSD's libm
Change-Id: Ib192451a0063388e0438bdef5e7ae776ed058e19
2016-10-07 20:10:57 +02:00
Romain Goyet
e991ea07c2 [liba] Use OpenBSD's libm
It has support for single-precision float functions

Change-Id: Ibf59c0fd790445773b24d4832a4b30a1eb15006d
2016-10-07 19:45:09 +02:00
Romain Goyet
39f6990f76 [liba] Add powf from FreeBSD and its dependencies
Change-Id: I8cfe65edfb95232e6a6bc66dcc2f908a3135ed14
2016-10-07 17:11:52 +02:00
Romain Goyet
9fd2d9e68c [liba] Use log10f from FreeBSD's msun library
Change-Id: Ief92bbab53377e093a381aed5e92ab00c894b9d0
2016-10-07 13:54:56 +02:00
Romain Goyet
3c795a8763 Fix the guardian
Change-Id: I14af6937fecfbe90ab053594e1269fcbc3681b1c
2016-03-18 17:03:18 +01:00
Romain Goyet
fd0c6eaba3 Add a (fake) implementation of powf in liba
Change-Id: I14af6937fecfbe90ab053594e1269fcbc3681b1c
2016-03-18 16:52:02 +01:00