Remove trivial ecma_number arithmetic functions (#2123)

The affected function calls have been replaced with the appropriate arithmetic operands.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
Robert Fancsik
2017-12-07 13:41:02 +01:00
committed by László Langó
parent 8b109510fd
commit 90f2473f08
9 changed files with 29 additions and 115 deletions
@@ -273,7 +273,7 @@ ecma_builtin_helper_array_index_normalize (ecma_number_t index, /**< index */
{
if (ecma_number_is_negative (index))
{
ecma_number_t index_neg = ecma_number_negate (index);
ecma_number_t index_neg = -index;
if (index_neg > length)
{
@@ -295,7 +295,7 @@ ecma_builtin_math_dispatch_routine (uint16_t builtin_routine_id, /**< built-in w
else if (ecma_number_is_negative (x)
&& x >= -ECMA_NUMBER_HALF)
{
x = ecma_number_negate (ECMA_NUMBER_ZERO);
x = -ECMA_NUMBER_ZERO;
}
else
{