Home
last modified time | relevance | path

Searched refs:du (Results 1 – 24 of 24) sorted by relevance

/civetweb-2.7.6/src/third_party/duktape-1.5.2/src-separate/
Dduk_tval.c23 duk_double_union du; in duk_tval_set_number_chkfast() local
30 du.d = x; in duk_tval_set_number_chkfast()
31 i = (duk_int64_t) DUK_DBLUNION_GET_INT64(&du); in duk_tval_set_number_chkfast()
71 duk_double_union du; in duk_tval_get_number_packed() local
81 DUK_DBLUNION_SET_UINT64(&du, t); in duk_tval_get_number_packed()
82 return du.d + 4503599627370496.0; /* 1 << 52 */ in duk_tval_get_number_packed()
86 DUK_DBLUNION_SET_UINT64(&du, t); in duk_tval_get_number_packed()
87 return du.d - 4503599627370496.0; /* 1 << 52 */ in duk_tval_get_number_packed()
97 duk_double_union du;
105 DUK_DBLUNION_SET_UINT64(&du, t);
[all …]
Dduk_selftest.c148 duk_double_union du; in duk__selftest_bswap_macros() local
167 du.uc[0] = 0x40; du.uc[1] = 0x00; du.uc[2] = 0x11; du.uc[3] = 0x22; in duk__selftest_bswap_macros()
168 du.uc[4] = 0x33; du.uc[5] = 0x44; du.uc[6] = 0x55; du.uc[7] = 0x66; in duk__selftest_bswap_macros()
169 DUK_DBLUNION_DOUBLE_NTOH(&du); in duk__selftest_bswap_macros()
170 du_diff = du.d - 2.008366013071895; in duk__selftest_bswap_macros()
181 (unsigned int) du.uc[0], (unsigned int) du.uc[1], in duk__selftest_bswap_macros()
182 (unsigned int) du.uc[2], (unsigned int) du.uc[3], in duk__selftest_bswap_macros()
183 (unsigned int) du.uc[4], (unsigned int) du.uc[5], in duk__selftest_bswap_macros()
184 (unsigned int) du.uc[6], (unsigned int) du.uc[7]); in duk__selftest_bswap_macros()
Dduk_bi_buffer.c395 duk_double_union du; in duk_hbufferobject_push_validated_read() local
397 DUK_MEMCPY((void *) du.uc, (const void *) p, (size_t) elem_size); in duk_hbufferobject_push_validated_read()
404 duk_push_uint(ctx, (duk_uint_t) du.uc[0]); in duk_hbufferobject_push_validated_read()
409 duk_push_int(ctx, (duk_int_t) (duk_int8_t) du.uc[0]); in duk_hbufferobject_push_validated_read()
412 duk_push_uint(ctx, (duk_uint_t) du.us[0]); in duk_hbufferobject_push_validated_read()
415 duk_push_int(ctx, (duk_int_t) (duk_int16_t) du.us[0]); in duk_hbufferobject_push_validated_read()
418 duk_push_uint(ctx, (duk_uint_t) du.ui[0]); in duk_hbufferobject_push_validated_read()
421 duk_push_int(ctx, (duk_int_t) (duk_int32_t) du.ui[0]); in duk_hbufferobject_push_validated_read()
424 duk_push_number(ctx, (duk_double_t) du.f[0]); in duk_hbufferobject_push_validated_read()
427 duk_push_number(ctx, (duk_double_t) du.d); in duk_hbufferobject_push_validated_read()
[all …]
Dduk_util_bufwriter.c306 duk_double_union du; in duk_raw_read_double_be() local
314 du.ui[DUK_DBL_IDX_UI0] = u.x; in duk_raw_read_double_be()
317 du.ui[DUK_DBL_IDX_UI1] = u.x; in duk_raw_read_double_be()
320 return du.d; in duk_raw_read_double_be()
346 duk_double_union du; in duk_raw_write_double_be() local
352 du.d = val; in duk_raw_write_double_be()
353 u.x = du.ui[DUK_DBL_IDX_UI0]; in duk_raw_write_double_be()
356 u.x = du.ui[DUK_DBL_IDX_UI1]; in duk_raw_write_double_be()
Dduk_js_executor.c58 duk_double_union du; in duk__vm_arith_add() local
99 du.d = DUK_TVAL_GET_NUMBER(tv_x) + DUK_TVAL_GET_NUMBER(tv_y); in duk__vm_arith_add()
100 DUK_DBLUNION_NORMALIZE_NAN_CHECK(&du); in duk__vm_arith_add()
101 DUK_ASSERT(DUK_DBLUNION_IS_NORMALIZED(&du)); in duk__vm_arith_add()
104 DUK_TVAL_SET_NUMBER_UPDREF(thr, tv_z, du.d); /* side effects */ in duk__vm_arith_add()
137 du.d = d1 + d2; in duk__vm_arith_add()
138 DUK_DBLUNION_NORMALIZE_NAN_CHECK(&du); in duk__vm_arith_add()
139 DUK_ASSERT(DUK_DBLUNION_IS_NORMALIZED(&du)); in duk__vm_arith_add()
142 duk_push_number(ctx, du.d); in duk__vm_arith_add()
159 duk_double_union du; in duk__vm_arith_binary_op() local
[all …]
Dduk_js_ops.c184 duk_double_union du; in duk_js_tonumber() local
185 DUK_DBLUNION_SET_NAN(&du); in duk_js_tonumber()
186 DUK_ASSERT(DUK_DBLUNION_IS_NORMALIZED(&du)); in duk_js_tonumber()
187 return du.d; in duk_js_tonumber()
Dduk_hthread_builtins.c197 duk_double_union du; in duk__push_double() local
204 du.uc[i] = (duk_uint8_t) duk_bd_decode(bd, 8); in duk__push_double()
207 duk_push_number(ctx, du.d); /* push operation normalizes NaNs */ in duk__push_double()
Dduk_debugger.c420 duk_double_union du; in duk__debug_read_double_raw() local
422 DUK_ASSERT(sizeof(du.uc) == 8); in duk__debug_read_double_raw()
423 duk_debug_read_bytes(thr, (duk_uint8_t *) du.uc, sizeof(du.uc)); in duk__debug_read_double_raw()
424 DUK_DBLUNION_DOUBLE_NTOH(&du); in duk__debug_read_double_raw()
425 return du.d; in duk__debug_read_double_raw()
Dduk_api_stack.c3039 duk_double_union du; in duk_push_number() local
3044 du.d = val; in duk_push_number()
3045 DUK_DBLUNION_NORMALIZE_NAN_CHECK(&du); in duk_push_number()
3047 DUK_TVAL_SET_NUMBER(tv_slot, du.d); in duk_push_number()
3120 duk_double_union du; in duk_push_nan() local
3125 DUK_DBLUNION_SET_NAN(&du); in duk_push_nan()
3126 DUK_ASSERT(DUK_DBLUNION_IS_NORMALIZED(&du)); in duk_push_nan()
3128 DUK_TVAL_SET_NUMBER(tv_slot, du.d); in duk_push_nan()
Dduk_js_compiler.c2187 duk_double_union du; local
2188 du.d = d3;
2189 DUK_DBLUNION_NORMALIZE_NAN_CHECK(&du);
2190 d3 = du.d;
3601 duk_double_union du; local
3606 du.d = DUK_TVAL_GET_NUMBER(tv_num);
3607 du.d = -du.d;
3608 DUK_DBLUNION_NORMALIZE_NAN_CHECK(&du);
3609 DUK_TVAL_SET_NUMBER(tv_num, du.d);
/civetweb-2.7.6/src/third_party/duktape-1.8.0/src-separate/
Dduk_tval.c23 duk_double_union du; in duk_tval_set_number_chkfast() local
30 du.d = x; in duk_tval_set_number_chkfast()
31 i = (duk_int64_t) DUK_DBLUNION_GET_INT64(&du); in duk_tval_set_number_chkfast()
71 duk_double_union du; in duk_tval_get_number_packed() local
81 DUK_DBLUNION_SET_UINT64(&du, t); in duk_tval_get_number_packed()
82 return du.d + 4503599627370496.0; /* 1 << 52 */ in duk_tval_get_number_packed()
86 DUK_DBLUNION_SET_UINT64(&du, t); in duk_tval_get_number_packed()
87 return du.d - 4503599627370496.0; /* 1 << 52 */ in duk_tval_get_number_packed()
97 duk_double_union du;
105 DUK_DBLUNION_SET_UINT64(&du, t);
[all …]
Dduk_selftest.c148 duk_double_union du; in duk__selftest_bswap_macros() local
167 du.uc[0] = 0x40; du.uc[1] = 0x00; du.uc[2] = 0x11; du.uc[3] = 0x22; in duk__selftest_bswap_macros()
168 du.uc[4] = 0x33; du.uc[5] = 0x44; du.uc[6] = 0x55; du.uc[7] = 0x66; in duk__selftest_bswap_macros()
169 DUK_DBLUNION_DOUBLE_NTOH(&du); in duk__selftest_bswap_macros()
170 du_diff = du.d - 2.008366013071895; in duk__selftest_bswap_macros()
181 (unsigned int) du.uc[0], (unsigned int) du.uc[1], in duk__selftest_bswap_macros()
182 (unsigned int) du.uc[2], (unsigned int) du.uc[3], in duk__selftest_bswap_macros()
183 (unsigned int) du.uc[4], (unsigned int) du.uc[5], in duk__selftest_bswap_macros()
184 (unsigned int) du.uc[6], (unsigned int) du.uc[7]); in duk__selftest_bswap_macros()
Dduk_bi_buffer.c395 duk_double_union du; in duk_hbufferobject_push_validated_read() local
397 DUK_MEMCPY((void *) du.uc, (const void *) p, (size_t) elem_size); in duk_hbufferobject_push_validated_read()
404 duk_push_uint(ctx, (duk_uint_t) du.uc[0]); in duk_hbufferobject_push_validated_read()
409 duk_push_int(ctx, (duk_int_t) (duk_int8_t) du.uc[0]); in duk_hbufferobject_push_validated_read()
412 duk_push_uint(ctx, (duk_uint_t) du.us[0]); in duk_hbufferobject_push_validated_read()
415 duk_push_int(ctx, (duk_int_t) (duk_int16_t) du.us[0]); in duk_hbufferobject_push_validated_read()
418 duk_push_uint(ctx, (duk_uint_t) du.ui[0]); in duk_hbufferobject_push_validated_read()
421 duk_push_int(ctx, (duk_int_t) (duk_int32_t) du.ui[0]); in duk_hbufferobject_push_validated_read()
424 duk_push_number(ctx, (duk_double_t) du.f[0]); in duk_hbufferobject_push_validated_read()
427 duk_push_number(ctx, (duk_double_t) du.d); in duk_hbufferobject_push_validated_read()
[all …]
Dduk_util_bufwriter.c306 duk_double_union du; in duk_raw_read_double_be() local
314 du.ui[DUK_DBL_IDX_UI0] = u.x; in duk_raw_read_double_be()
317 du.ui[DUK_DBL_IDX_UI1] = u.x; in duk_raw_read_double_be()
320 return du.d; in duk_raw_read_double_be()
346 duk_double_union du; in duk_raw_write_double_be() local
352 du.d = val; in duk_raw_write_double_be()
353 u.x = du.ui[DUK_DBL_IDX_UI0]; in duk_raw_write_double_be()
356 u.x = du.ui[DUK_DBL_IDX_UI1]; in duk_raw_write_double_be()
Dduk_js_executor.c58 duk_double_union du; in duk__vm_arith_add() local
99 du.d = DUK_TVAL_GET_NUMBER(tv_x) + DUK_TVAL_GET_NUMBER(tv_y); in duk__vm_arith_add()
100 DUK_DBLUNION_NORMALIZE_NAN_CHECK(&du); in duk__vm_arith_add()
101 DUK_ASSERT(DUK_DBLUNION_IS_NORMALIZED(&du)); in duk__vm_arith_add()
104 DUK_TVAL_SET_NUMBER_UPDREF(thr, tv_z, du.d); /* side effects */ in duk__vm_arith_add()
137 du.d = d1 + d2; in duk__vm_arith_add()
138 DUK_DBLUNION_NORMALIZE_NAN_CHECK(&du); in duk__vm_arith_add()
139 DUK_ASSERT(DUK_DBLUNION_IS_NORMALIZED(&du)); in duk__vm_arith_add()
142 duk_push_number(ctx, du.d); in duk__vm_arith_add()
159 duk_double_union du; in duk__vm_arith_binary_op() local
[all …]
Dduk_js_ops.c184 duk_double_union du; in duk_js_tonumber() local
185 DUK_DBLUNION_SET_NAN(&du); in duk_js_tonumber()
186 DUK_ASSERT(DUK_DBLUNION_IS_NORMALIZED(&du)); in duk_js_tonumber()
187 return du.d; in duk_js_tonumber()
Dduk_hthread_builtins.c196 duk_double_union du; in duk__push_double() local
203 du.uc[i] = (duk_uint8_t) duk_bd_decode(bd, 8); in duk__push_double()
206 duk_push_number(ctx, du.d); /* push operation normalizes NaNs */ in duk__push_double()
Dduk_debugger.c420 duk_double_union du; in duk__debug_read_double_raw() local
422 DUK_ASSERT(sizeof(du.uc) == 8); in duk__debug_read_double_raw()
423 duk_debug_read_bytes(thr, (duk_uint8_t *) du.uc, sizeof(du.uc)); in duk__debug_read_double_raw()
424 DUK_DBLUNION_DOUBLE_NTOH(&du); in duk__debug_read_double_raw()
425 return du.d; in duk__debug_read_double_raw()
Dduk_api_stack.c3072 duk_double_union du; in duk_push_number() local
3077 du.d = val; in duk_push_number()
3078 DUK_DBLUNION_NORMALIZE_NAN_CHECK(&du); in duk_push_number()
3080 DUK_TVAL_SET_NUMBER(tv_slot, du.d); in duk_push_number()
3153 duk_double_union du; in duk_push_nan() local
3158 DUK_DBLUNION_SET_NAN(&du); in duk_push_nan()
3159 DUK_ASSERT(DUK_DBLUNION_IS_NORMALIZED(&du)); in duk_push_nan()
3161 DUK_TVAL_SET_NUMBER(tv_slot, du.d); in duk_push_nan()
Dduk_js_compiler.c2187 duk_double_union du; local
2188 du.d = d3;
2189 DUK_DBLUNION_NORMALIZE_NAN_CHECK(&du);
2190 d3 = du.d;
3601 duk_double_union du; local
3606 du.d = DUK_TVAL_GET_NUMBER(tv_num);
3607 du.d = -du.d;
3608 DUK_DBLUNION_NORMALIZE_NAN_CHECK(&du);
3609 DUK_TVAL_SET_NUMBER(tv_num, du.d);
/civetweb-2.7.6/src/third_party/duktape-1.5.2/src-noline/
Dduktape.c17929 duk_double_union du; in duk_push_number() local
17934 du.d = val; in duk_push_number()
17935 DUK_DBLUNION_NORMALIZE_NAN_CHECK(&du); in duk_push_number()
17937 DUK_TVAL_SET_NUMBER(tv_slot, du.d); in duk_push_number()
18010 duk_double_union du; in duk_push_nan() local
18015 DUK_DBLUNION_SET_NAN(&du); in duk_push_nan()
18016 DUK_ASSERT(DUK_DBLUNION_IS_NORMALIZED(&du)); in duk_push_nan()
18018 DUK_TVAL_SET_NUMBER(tv_slot, du.d); in duk_push_nan()
21873 duk_double_union du; in duk_hbufferobject_push_validated_read() local
21875 DUK_MEMCPY((void *) du.uc, (const void *) p, (size_t) elem_size); in duk_hbufferobject_push_validated_read()
[all …]
/civetweb-2.7.6/src/third_party/duktape-1.8.0/src/
Dduktape.c18093 duk_double_union du; in duk_push_number() local
18098 du.d = val; in duk_push_number()
18099 DUK_DBLUNION_NORMALIZE_NAN_CHECK(&du); in duk_push_number()
18101 DUK_TVAL_SET_NUMBER(tv_slot, du.d); in duk_push_number()
18174 duk_double_union du; in duk_push_nan() local
18179 DUK_DBLUNION_SET_NAN(&du); in duk_push_nan()
18180 DUK_ASSERT(DUK_DBLUNION_IS_NORMALIZED(&du)); in duk_push_nan()
18182 DUK_TVAL_SET_NUMBER(tv_slot, du.d); in duk_push_nan()
22139 duk_double_union du; in duk_hbufferobject_push_validated_read() local
22141 DUK_MEMCPY((void *) du.uc, (const void *) p, (size_t) elem_size); in duk_hbufferobject_push_validated_read()
[all …]
/civetweb-2.7.6/src/third_party/duktape-1.5.2/src/
Dduktape.c17984 duk_double_union du; in duk_push_number() local
17989 du.d = val; in duk_push_number()
17990 DUK_DBLUNION_NORMALIZE_NAN_CHECK(&du); in duk_push_number()
17992 DUK_TVAL_SET_NUMBER(tv_slot, du.d); in duk_push_number()
18065 duk_double_union du; in duk_push_nan() local
18070 DUK_DBLUNION_SET_NAN(&du); in duk_push_nan()
18071 DUK_ASSERT(DUK_DBLUNION_IS_NORMALIZED(&du)); in duk_push_nan()
18073 DUK_TVAL_SET_NUMBER(tv_slot, du.d); in duk_push_nan()
21933 duk_double_union du; in duk_hbufferobject_push_validated_read() local
21935 DUK_MEMCPY((void *) du.uc, (const void *) p, (size_t) elem_size); in duk_hbufferobject_push_validated_read()
[all …]
/civetweb-2.7.6/src/third_party/duktape-1.8.0/src-noline/
Dduktape.c18038 duk_double_union du; in duk_push_number() local
18043 du.d = val; in duk_push_number()
18044 DUK_DBLUNION_NORMALIZE_NAN_CHECK(&du); in duk_push_number()
18046 DUK_TVAL_SET_NUMBER(tv_slot, du.d); in duk_push_number()
18119 duk_double_union du; in duk_push_nan() local
18124 DUK_DBLUNION_SET_NAN(&du); in duk_push_nan()
18125 DUK_ASSERT(DUK_DBLUNION_IS_NORMALIZED(&du)); in duk_push_nan()
18127 DUK_TVAL_SET_NUMBER(tv_slot, du.d); in duk_push_nan()
22079 duk_double_union du; in duk_hbufferobject_push_validated_read() local
22081 DUK_MEMCPY((void *) du.uc, (const void *) p, (size_t) elem_size); in duk_hbufferobject_push_validated_read()
[all …]