Searched refs:JERRY_MIN (Results 1 - 12 of 12) sorted by relevance
/third_party/jerryscript/jerry-core/ecma/builtin-objects/ |
H A D | ecma-builtin-number-prototype.c | 104 lit_utf8_size_t to_copy = JERRY_MIN (num_digits, to_num_digits); in ecma_builtin_number_prototype_helper_to_string() 105 to_copy = JERRY_MIN (to_copy, (lit_utf8_size_t) exponent); in ecma_builtin_number_prototype_helper_to_string() 131 lit_utf8_size_t to_copy = JERRY_MIN (num_digits, to_num_digits); in ecma_builtin_number_prototype_helper_to_string()
|
H A D | ecma-builtin-string-prototype.c | 867 const lit_utf8_byte_t *const compare_end_p = JERRY_MIN (string_end_p - separator_size + 1, in ecma_builtin_string_prototype_object_split() 953 start = (uint32_t) JERRY_MIN (JERRY_MAX (start_num, 0), len); in ecma_builtin_string_prototype_object_substring() 970 end = (uint32_t) JERRY_MIN (JERRY_MAX (end_num, 0), len); in ecma_builtin_string_prototype_object_substring() 1284 ecma_number_t to_num = JERRY_MIN (JERRY_MAX (length_num, 0), this_len - from); in ecma_builtin_string_prototype_object_substr()
|
H A D | ecma-builtin-array-prototype.c | 1693 len = JERRY_MIN (ext_obj_p->u.array.length, len); in ecma_builtin_array_prototype_object_index_of() 1774 from_idx = (uint32_t) (JERRY_MIN (idx, len - 1)); in ecma_builtin_array_prototype_object_last_index_of() 1799 len = JERRY_MIN (ext_obj_p->u.array.length, len); in ecma_builtin_array_prototype_object_last_index_of() 2497 uint32_t count = JERRY_MIN (end - start, len - target); in ecma_builtin_array_prototype_object_copy_within()
|
H A D | ecma-builtin-helpers.c | 348 : (uint32_t) JERRY_MIN (to_int, length)); in ecma_builtin_helper_array_index_normalize()
|
H A D | ecma-builtin-json.c | 1535 num_of_spaces = JERRY_MIN (10, num_of_spaces); in ecma_builtin_json_stringify()
|
/third_party/jerryscript/jerry-core/jrt/ |
H A D | jrt.h | 141 #define JERRY_MIN(v1, v2) (((v1) < (v2)) ? (v1) : (v2)) macro
|
/third_party/jerryscript/jerry-core/jcontext/ |
H A D | jcontext.h | 69 #define CONFIG_GC_LIMIT (JERRY_MIN (CONFIG_MEM_HEAP_SIZE / 32, CONFIG_MAX_GC_LIMIT))
|
/third_party/jerryscript/jerry-core/ecma/builtin-objects/typedarray/ |
H A D | ecma-builtin-typedarray-prototype.c | 1827 from_index = ((num_var >= 0) ? (uint32_t) JERRY_MIN (num_var, info.length - 1) in ecma_builtin_typedarray_prototype_last_index_of() 1915 uint32_t count = JERRY_MIN (distance, offset); in ecma_builtin_typedarray_prototype_copy_within()
|
/third_party/jerryscript/jerry-core/ecma/operations/ |
H A D | ecma-regexp-object.c | 3035 lit_utf8_size_t position = JERRY_MIN ((lit_utf8_size_t) JERRY_MAX (position_num, 0.0f), string_length); in ecma_regexp_replace_helper() 3102 source_position_p = JERRY_MIN (match_position_p + matched_str_size, string_end_p); in ecma_regexp_replace_helper() 3116 replace_ctx.index = JERRY_MIN (position + matched_str_length, string_length); in ecma_regexp_replace_helper()
|
/third_party/jerryscript/jerry-core/parser/regexp/ |
H A D | re-parser.c | 166 re_insert_byte (re_ctx_p, start_offset, (uint8_t) JERRY_MIN (qmin, 1)); in re_insert_assertion_lookahead()
|
/third_party/jerryscript/jerry-core/api/ |
H A D | jerry.c | 3773 jerry_length_t copy_count = JERRY_MIN (length - offset, buf_size); in jerry_arraybuffer_write() 3822 jerry_length_t copy_count = JERRY_MIN (length - offset, buf_size); in jerry_arraybuffer_read()
|
/third_party/jerryscript/jerry-core/parser/js/ |
H A D | js-parser.c | 1362 uint8_t last_register_index = (uint8_t) JERRY_MIN (context_p->register_count, in parser_post_processing()
|
Completed in 29 milliseconds