davidot
ab19d7c99d
LibJS: Enable commented out tests in Math.asin
2022-11-28 13:10:21 +01:00
davidot
bf1b2d63c6
LibJS: Add spec comments and check for edge cases in Math.tanh
2022-11-28 13:10:21 +01:00
davidot
8de8742b7c
LibJS: Add spec comments and check for edge cases in Math.sinh
2022-11-28 13:10:21 +01:00
davidot
4306462a95
LibJS: Add spec comments and check for edge cases in Math.log10
2022-11-28 13:10:21 +01:00
davidot
eda90b54d4
LibJS: Add spec comments and check for edge cases in Math.log2
2022-11-28 13:10:21 +01:00
davidot
4813385c9a
LibJS: Add spec comments and check for edge cases in Math.log
2022-11-28 13:10:21 +01:00
davidot
d4e5644df8
LibJS: Add spec comments and check for edge cases in Math.atanh
2022-11-28 13:10:21 +01:00
davidot
c565cbd30c
LibJS: Add spec comments and check for edge cases in Math.atanh
2022-11-28 13:10:21 +01:00
davidot
68aeeea5d2
LibJS: Add spec comments and check for edge cases in Math.asinh
2022-11-28 13:10:21 +01:00
davidot
6bdf021b0c
LibJS: Add spec comments and check for edge cases in Math.asin
2022-11-28 13:10:21 +01:00
davidot
cf4daa3941
LibJS: Add spec comments and check for edge cases in Math.acosh
2022-11-28 13:10:21 +01:00
davidot
b79f03182d
LibJS: Add special cases for Math.cosh and add spec comments
...
Although this already works in most cases in non-kvm serenity cases the
cosh and other math function tend to return incorrect values for
Infinity. This makes sure that whatever the underlying cosh function
returns Math.cosh conforms to the spec.
2022-08-20 23:53:55 +01:00
davidot
da8715a07c
LibJS: Add extreme value tests for cos and sin
...
These sometimes produce different NaN patterns which can mess up the
value encoding.
2022-08-15 17:11:25 +02:00
Linus Groh
0053816e9d
LibJS: Correctly handle mixing +0 and -0 in Math.{min,max}()
...
The native C++ < and > operators won't handle this correctly, so the
result was different depending on the order of arguments. This is now
fixed by explicitly checking for positive and negative zero values.
Fixes #6589 .
2021-04-23 20:51:48 +02:00
Andreas Kling
16a0e7a66d
LibJS: Improve correctness of rounding and bitwise operations
...
Patch from Anonymous
2021-02-05 09:38:45 +01:00
Andreas Kling
13d7c09125
Libraries: Move to Userland/Libraries/
2021-01-12 12:17:46 +01:00