Home
last modified time | relevance | path

Searched refs:uint32_num (Results 1 – 3 of 3) sorted by relevance

/third_party/jerryscript/jerry-core/ecma/base/
Decma-helpers-conversion.c789 uint32_t uint32_num = (uint32_t) num_in_uint32_range; in ecma_number_to_uint32() local
791 const uint32_t ret = sign ? -uint32_num : uint32_num; in ecma_number_to_uint32()
795 && uint32_num != 0) in ecma_number_to_uint32()
797 JERRY_ASSERT (ret == uint64_2_pow_32 - uint32_num); in ecma_number_to_uint32()
801 JERRY_ASSERT (ret == uint32_num); in ecma_number_to_uint32()
819 uint32_t uint32_num = ecma_number_to_uint32 (num); in ecma_number_to_int32() local
829 if (uint32_num >= uint32_2_pow_31) in ecma_number_to_int32()
831 ret = (int32_t) (uint32_num - int64_2_pow_32); in ecma_number_to_int32()
835 ret = (int32_t) uint32_num; in ecma_number_to_int32()
839 int64_t int64_num = uint32_num; in ecma_number_to_int32()
Decma-helpers-string.c580 uint32_t uint32_num = ecma_number_to_uint32 (num); in ecma_new_ecma_string_from_number() local
581 if (num == ((ecma_number_t) uint32_num)) in ecma_new_ecma_string_from_number()
583 return ecma_new_ecma_string_from_uint32 (uint32_num); in ecma_new_ecma_string_from_number()
/third_party/jerryscript/tests/unit-core/
Dtest-number-to-int32.cpp28 uint32_t uint32_num; member
87 … TEST_ASSERT (ecma_number_to_uint32 (test_cases_uint32[i].num) == test_cases_uint32[i].uint32_num);