Akos Kiss
9d4f7c917f
Fixing Math.pow
...
The Math.pow implementation relies on libm's pow. However, the ISO C
and ES5.1 standards differ on pow:
* `x ** NAN` is NAN in ES but `+1 ** y` is 1 in C
* `+-1 ** +-INF` is NAN in ES but 1 in C
This patch:
* Modifies the Math.pow implementation to handle the special cases
instead calling pow.
* Adds a test case to jerry-test-suite as it did not test
`Math.pow(1,NaN)`.
* Fixes jerry-libm's pow, as it was not standard conforming, which
helped hiding the error in Math.pow.
* Updates the unit test for libm.
JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
2016-08-11 22:49:36 +02:00
..
2016-08-05 09:11:33 +02:00
2016-06-16 01:42:55 -07:00
2016-08-05 09:11:33 +02:00
2016-06-16 01:42:55 -07:00
2016-08-05 09:11:33 +02:00
2016-06-16 01:42:55 -07:00
2016-08-05 09:11:33 +02:00
2016-06-16 01:42:55 -07:00
2016-08-05 09:11:33 +02:00
2016-08-05 09:11:33 +02:00
2016-08-05 09:11:33 +02:00
2016-06-16 01:42:55 -07:00
2016-08-05 09:11:33 +02:00
2016-06-16 01:42:55 -07:00
2016-08-05 09:11:33 +02:00
2016-06-16 01:42:55 -07:00
2016-08-05 09:11:33 +02:00
2016-06-16 01:42:55 -07:00
2016-08-05 09:11:33 +02:00
2016-06-16 01:42:55 -07:00
2016-07-13 23:36:27 -07:00
2016-06-16 01:42:55 -07:00
2016-02-17 13:52:51 +00:00
2016-06-16 01:42:55 -07:00
2016-08-05 09:11:33 +02:00
2016-08-05 09:11:33 +02:00
2016-08-05 09:11:33 +02:00
2016-08-05 09:11:33 +02:00
2016-05-20 16:01:33 +02:00
2016-07-13 23:36:27 -07:00
2016-08-05 09:11:33 +02:00
2016-08-05 13:16:53 +02:00
2016-08-05 09:11:33 +02:00
2016-06-16 01:42:55 -07:00
2016-08-11 22:49:36 +02:00
2016-06-16 01:42:55 -07:00
2016-08-05 09:11:33 +02:00
2016-06-16 01:42:55 -07:00
2016-08-05 09:11:33 +02:00
2016-06-16 01:42:55 -07:00
2016-03-09 11:44:32 +01:00
2016-06-16 01:42:55 -07:00
2016-06-14 08:45:14 +02:00
2016-06-16 01:42:55 -07:00
2016-08-05 09:11:33 +02:00
2016-06-16 01:42:55 -07:00
2016-08-05 09:11:33 +02:00
2016-06-16 01:42:55 -07:00
2016-08-05 09:11:33 +02:00
2016-06-16 01:42:55 -07:00
2016-08-05 09:11:33 +02:00
2016-06-16 01:42:55 -07:00
2016-08-05 09:11:33 +02:00
2016-08-05 09:11:33 +02:00
2016-08-05 09:11:33 +02:00
2016-06-16 01:42:55 -07:00
2016-08-05 09:11:33 +02:00
2016-08-05 09:11:33 +02:00
2016-08-05 09:11:33 +02:00
2016-06-16 01:42:55 -07:00
2016-08-05 09:11:33 +02:00
2016-06-16 01:42:55 -07:00
2016-08-05 09:11:33 +02:00
2016-06-16 01:42:55 -07:00
2016-03-09 11:44:32 +01:00
2016-06-16 01:42:55 -07:00
2016-08-05 09:11:33 +02:00
2016-06-16 01:42:55 -07:00
2016-08-05 09:11:33 +02:00
2016-06-16 01:42:55 -07:00
2016-08-05 09:11:33 +02:00
2016-06-16 01:42:55 -07:00
2016-08-05 09:11:33 +02:00
2016-06-16 01:42:55 -07:00
2016-06-21 06:12:17 -07:00
2016-08-05 13:16:53 +02:00
2016-08-01 04:25:32 -07:00
2016-08-05 09:11:33 +02:00