Small refactorings
Modifications: * eliminate unnecessary variables, functions * use ECMA_NUMBER macros where it is possible * simplify code * minor style fix (comments, increase-decrease operators) JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
This commit is contained in:
@@ -579,6 +579,11 @@ typedef double ecma_number_t;
|
||||
*/
|
||||
#define ECMA_NUMBER_HALF ((ecma_number_t) 0.5f)
|
||||
|
||||
/**
|
||||
* Value '-1' of ecma_number_t
|
||||
*/
|
||||
#define ECMA_NUMBER_MINUS_ONE ((ecma_number_t) -1)
|
||||
|
||||
/**
|
||||
* Minimum positive and maximum value of ecma-number
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user