Home
last modified time | relevance | path

Searched refs:duk_double_t (Results 1 – 25 of 93) sorted by relevance

1234

/civetweb-2.7.6/src/third_party/duktape-1.8.0/src-separate/
Dduk_bi_date.c20 DUK_LOCAL_DECL duk_double_t duk__push_this_get_timeval_tzoffset(duk_context *ctx, duk_small_uint_t …
21 DUK_LOCAL_DECL duk_double_t duk__push_this_get_timeval(duk_context *ctx, duk_small_uint_t flags);
23 DUK_LOCAL_DECL duk_ret_t duk__set_this_timeval_from_dparts(duk_context *ctx, duk_double_t *dparts, …
190 duk_double_t dparts[DUK_DATE_IDX_NUM_PARTS]; in duk__parse_string_iso8601_subset()
191 duk_double_t d; in duk__parse_string_iso8601_subset()
454 DUK_INTERNAL duk_bool_t duk_bi_date_timeval_in_valid_range(duk_double_t x) { in duk_bi_date_timeval_in_valid_range()
458 DUK_INTERNAL duk_bool_t duk_bi_date_timeval_in_leeway_range(duk_double_t x) { in duk_bi_date_timeval_in_leeway_range()
462 DUK_INTERNAL duk_bool_t duk_bi_date_year_in_valid_range(duk_double_t x) { in duk_bi_date_year_in_valid_range()
466 DUK_LOCAL duk_double_t duk__timeclip(duk_double_t x) { in duk__timeclip()
544 DUK_LOCAL duk_double_t duk__make_day(duk_double_t year, duk_double_t month, duk_double_t day) { in duk__make_day()
[all …]
Dduk_bi_protos.h24 DUK_INTERNAL_DECL void duk_bi_date_timeval_to_parts(duk_double_t d, duk_int_t *parts, duk_double_t
25 DUK_INTERNAL_DECL duk_double_t duk_bi_date_get_timeval_from_dparts(duk_double_t *dparts, duk_small_…
26 DUK_INTERNAL_DECL void duk_bi_date_format_timeval(duk_double_t timeval, duk_uint8_t *out_buf);
28 DUK_INTERNAL_DECL duk_bool_t duk_bi_date_timeval_in_valid_range(duk_double_t x);
29 DUK_INTERNAL_DECL duk_bool_t duk_bi_date_year_in_valid_range(duk_double_t year);
30 DUK_INTERNAL_DECL duk_bool_t duk_bi_date_timeval_in_leeway_range(duk_double_t x);
33 DUK_INTERNAL_DECL duk_double_t duk_bi_date_get_now_gettimeofday(duk_context *ctx);
36 DUK_INTERNAL_DECL duk_double_t duk_bi_date_get_now_time(duk_context *ctx);
39 DUK_INTERNAL_DECL duk_double_t duk_bi_date_get_now_windows(duk_context *ctx);
42 DUK_INTERNAL_DECL duk_int_t duk_bi_date_get_local_tzoffset_gmtime(duk_double_t d);
[all …]
Dduk_bi_date_unix.c19 DUK_INTERNAL duk_double_t duk_bi_date_get_now_gettimeofday(duk_context *ctx) { in duk_bi_date_get_now_gettimeofday()
22 duk_double_t d; in duk_bi_date_get_now_gettimeofday()
28 d = ((duk_double_t) tv.tv_sec) * 1000.0 + in duk_bi_date_get_now_gettimeofday()
29 ((duk_double_t) (tv.tv_usec / 1000)); in duk_bi_date_get_now_gettimeofday()
38 DUK_INTERNAL duk_double_t duk_bi_date_get_now_time(duk_context *ctx) { in duk_bi_date_get_now_time()
43 return ((duk_double_t) t) * 1000.0; in duk_bi_date_get_now_time()
49 DUK_INTERNAL duk_int_t duk_bi_date_get_local_tzoffset_gmtime(duk_double_t d) { in duk_bi_date_get_local_tzoffset_gmtime()
52 duk_double_t dparts[DUK_DATE_IDX_NUM_PARTS]; in duk_bi_date_get_local_tzoffset_gmtime()
220 duk_push_number(ctx, ((duk_double_t) t) * 1000.0); in duk_bi_date_parse_string_strptime()
247 duk_push_number(ctx, (duk_double_t) t); in duk_bi_date_parse_string_getdate()
Dduk_js_ops.c103 duk_double_t d; in duk_js_toboolean()
148 DUK_LOCAL duk_double_t duk__tonumber_string_raw(duk_hthread *thr) { in duk__tonumber_string_raw()
151 duk_double_t d; in duk__tonumber_string_raw()
175 DUK_INTERNAL duk_double_t duk_js_tonumber(duk_hthread *thr, duk_tval *tv) { in duk_js_tonumber()
208 duk_double_t d; in duk_js_tonumber()
240 return (duk_double_t) DUK_TVAL_GET_FASTINT(tv); in duk_js_tonumber()
258 DUK_INTERNAL duk_double_t duk_js_tointeger_number(duk_double_t x) { in duk_js_tointeger_number()
278 DUK_INTERNAL duk_double_t duk_js_tointeger(duk_hthread *thr, duk_tval *tv) { in duk_js_tointeger()
280 duk_double_t d = duk_js_tonumber(thr, tv); /* invalidates tv */ in duk_js_tointeger()
289 DUK_LOCAL duk_double_t duk__toint32_touint32_helper(duk_double_t x, duk_bool_t is_toint32) { in duk__toint32_touint32_helper()
[all …]
Dduk_tval.h152 duk_double_t duk__dblval; \
164 duk_double_t duk__d; \
173 duk_double_t duk__dblval; \
178 #define DUK_TVAL_SET_FASTINT(v,i) DUK_TVAL_SET_DOUBLE((v), (duk_double_t) (i)) /* XXX: f…
179 #define DUK_TVAL_SET_FASTINT_I32(v,i) DUK_TVAL_SET_DOUBLE((v), (duk_double_t) (i))
180 #define DUK_TVAL_SET_FASTINT_U32(v,i) DUK_TVAL_SET_DOUBLE((v), (duk_double_t) (i))
246 DUK_INTERNAL_DECL duk_double_t duk_tval_get_number_packed(duk_tval *tv);
270 duk_double_t d;
348 duk_double_t duk__d; \
359 DUK_TVAL_SET_NUMBER((tv), (duk_double_t) (val)) /* XXX: fast int-to-double */
[all …]
Dduk_bi_math.c21 DUK_LOCAL duk_ret_t duk__math_minmax(duk_context *ctx, duk_double_t initial, duk__two_arg_func min_… in duk__math_minmax()
24 duk_double_t res = initial; in duk__math_minmax()
25 duk_double_t t; in duk__math_minmax()
42 res = (duk_double_t) DUK_DOUBLE_NAN; in duk__math_minmax()
44 res = (duk_double_t) min_max(res, (double) t); in duk__math_minmax()
291 duk_push_number(ctx, (duk_double_t) fun((double) duk_to_number(ctx, 0))); in duk_bi_math_object_onearg_shared()
302 …duk_push_number(ctx, (duk_double_t) fun((double) duk_to_number(ctx, 0), (double) duk_to_number(ctx… in duk_bi_math_object_twoarg_shared()
315 duk_push_number(ctx, (duk_double_t) duk_util_tinyrandom_get_double((duk_hthread *) ctx)); in duk_bi_math_object_random()
Dduk_selftest.c149 duk_double_t du_diff; in duk__selftest_bswap_macros()
283 volatile duk_double_t d; in duk__selftest_64bit_arithmetic()
305 duk_double_t d1, d2; in duk__selftest_cast_double_to_small_uint()
308 duk_double_t d1v, d2v; in duk__selftest_cast_double_to_small_uint()
315 d2 = (duk_double_t) u; in duk__selftest_cast_double_to_small_uint()
325 d2v = (duk_double_t) uv; in duk__selftest_cast_double_to_small_uint()
340 duk_double_t dv; in duk__selftest_cast_double_to_uint32()
Dduk_util_tinyrandom.c36 DUK_INTERNAL duk_double_t duk_util_tinyrandom_get_double(duk_hthread *thr) { in duk_util_tinyrandom_get_double()
37 duk_double_t t; in duk_util_tinyrandom_get_double()
59 DUK_ASSERT(t >= (duk_double_t) 0.0); in duk_util_tinyrandom_get_double()
60 DUK_ASSERT(t < (duk_double_t) 1.0); in duk_util_tinyrandom_get_double()
Dduk_error_augment.c163 duk_double_t d; in duk__add_traceback()
223 d = (noblame_fileline ? ((duk_double_t) DUK_TB_FLAG_NOBLAME_FILELINE) * DUK_DOUBLE_2TO32 : 0.0) + in duk__add_traceback()
224 (duk_double_t) c_line; in duk__add_traceback()
267 …DUK_ASSERT((duk_double_t) pc < DUK_DOUBLE_2TO32); /* assume PC is at most 32 bits and non-negativ… in duk__add_traceback()
268 d = ((duk_double_t) thr_callstack->callstack[i].flags) * DUK_DOUBLE_2TO32 + (duk_double_t) pc; in duk__add_traceback()
354 …DUK_ASSERT((duk_double_t) pc < DUK_DOUBLE_2TO32); /* assume PC is at most 32 bits and non-negativ… in duk__add_fileline()
Dduk_tval.c22 DUK_INTERNAL DUK_ALWAYS_INLINE void duk_tval_set_number_chkfast(duk_tval *tv, duk_double_t x) { in duk_tval_set_number_chkfast()
70 DUK_INTERNAL DUK_ALWAYS_INLINE duk_double_t duk_tval_get_number_packed(duk_tval *tv) { in duk_tval_get_number_packed()
96 DUK_INTERNAL DUK_ALWAYS_INLINE duk_double_t duk_tval_get_number_unpacked(duk_tval *tv) {
120 DUK_INTERNAL DUK_ALWAYS_INLINE duk_double_t duk_tval_get_number_unpacked_fastint(duk_tval *tv) { in duk_tval_get_number_unpacked_fastint()
Dduk_bi_number.c7 DUK_LOCAL duk_double_t duk__push_this_number_plain(duk_context *ctx) { in duk__push_this_number_plain()
130 duk_double_t d; in duk_bi_number_prototype_to_fixed()
164 duk_double_t d; in duk_bi_number_prototype_to_exponential()
201 duk_double_t d; in duk_bi_number_prototype_to_precision()
Dduk_bi_date_windows.c39 DUK_INTERNAL duk_double_t duk_bi_date_get_now_windows(duk_context *ctx) { in duk_bi_date_get_now_windows()
55 return (duk_double_t) ((tmp1.QuadPart - tmp2.QuadPart) / 10000LL); in duk_bi_date_get_now_windows()
61 DUK_INTERNAL_DECL duk_int_t duk_bi_date_get_local_tzoffset_windows(duk_double_t d) { in duk_bi_date_get_local_tzoffset_windows()
Dduk_js.h25 DUK_INTERNAL_DECL duk_double_t duk_js_tonumber(duk_hthread *thr, duk_tval *tv);
26 DUK_INTERNAL_DECL duk_double_t duk_js_tointeger_number(duk_double_t x);
27 DUK_INTERNAL_DECL duk_double_t duk_js_tointeger(duk_hthread *thr, duk_tval *tv);
/civetweb-2.7.6/src/third_party/duktape-1.5.2/src-separate/
Dduk_bi_date.c20 DUK_LOCAL_DECL duk_double_t duk__push_this_get_timeval_tzoffset(duk_context *ctx, duk_small_uint_t …
21 DUK_LOCAL_DECL duk_double_t duk__push_this_get_timeval(duk_context *ctx, duk_small_uint_t flags);
23 DUK_LOCAL_DECL duk_ret_t duk__set_this_timeval_from_dparts(duk_context *ctx, duk_double_t *dparts, …
190 duk_double_t dparts[DUK_DATE_IDX_NUM_PARTS]; in duk__parse_string_iso8601_subset()
191 duk_double_t d; in duk__parse_string_iso8601_subset()
454 DUK_INTERNAL duk_bool_t duk_bi_date_timeval_in_valid_range(duk_double_t x) { in duk_bi_date_timeval_in_valid_range()
458 DUK_INTERNAL duk_bool_t duk_bi_date_timeval_in_leeway_range(duk_double_t x) { in duk_bi_date_timeval_in_leeway_range()
462 DUK_INTERNAL duk_bool_t duk_bi_date_year_in_valid_range(duk_double_t x) { in duk_bi_date_year_in_valid_range()
466 DUK_LOCAL duk_double_t duk__timeclip(duk_double_t x) { in duk__timeclip()
544 DUK_LOCAL duk_double_t duk__make_day(duk_double_t year, duk_double_t month, duk_double_t day) { in duk__make_day()
[all …]
Dduk_bi_protos.h24 DUK_INTERNAL_DECL void duk_bi_date_timeval_to_parts(duk_double_t d, duk_int_t *parts, duk_double_t
25 DUK_INTERNAL_DECL duk_double_t duk_bi_date_get_timeval_from_dparts(duk_double_t *dparts, duk_small_…
26 DUK_INTERNAL_DECL void duk_bi_date_format_timeval(duk_double_t timeval, duk_uint8_t *out_buf);
28 DUK_INTERNAL_DECL duk_bool_t duk_bi_date_timeval_in_valid_range(duk_double_t x);
29 DUK_INTERNAL_DECL duk_bool_t duk_bi_date_year_in_valid_range(duk_double_t year);
30 DUK_INTERNAL_DECL duk_bool_t duk_bi_date_timeval_in_leeway_range(duk_double_t x);
33 DUK_INTERNAL_DECL duk_double_t duk_bi_date_get_now_gettimeofday(duk_context *ctx);
36 DUK_INTERNAL_DECL duk_double_t duk_bi_date_get_now_time(duk_context *ctx);
39 DUK_INTERNAL_DECL duk_double_t duk_bi_date_get_now_windows(duk_context *ctx);
42 DUK_INTERNAL_DECL duk_int_t duk_bi_date_get_local_tzoffset_gmtime(duk_double_t d);
[all …]
Dduk_bi_date_unix.c19 DUK_INTERNAL duk_double_t duk_bi_date_get_now_gettimeofday(duk_context *ctx) { in duk_bi_date_get_now_gettimeofday()
22 duk_double_t d; in duk_bi_date_get_now_gettimeofday()
28 d = ((duk_double_t) tv.tv_sec) * 1000.0 + in duk_bi_date_get_now_gettimeofday()
29 ((duk_double_t) (tv.tv_usec / 1000)); in duk_bi_date_get_now_gettimeofday()
38 DUK_INTERNAL duk_double_t duk_bi_date_get_now_time(duk_context *ctx) { in duk_bi_date_get_now_time()
43 return ((duk_double_t) t) * 1000.0; in duk_bi_date_get_now_time()
49 DUK_INTERNAL duk_int_t duk_bi_date_get_local_tzoffset_gmtime(duk_double_t d) { in duk_bi_date_get_local_tzoffset_gmtime()
52 duk_double_t dparts[DUK_DATE_IDX_NUM_PARTS]; in duk_bi_date_get_local_tzoffset_gmtime()
220 duk_push_number(ctx, ((duk_double_t) t) * 1000.0); in duk_bi_date_parse_string_strptime()
247 duk_push_number(ctx, (duk_double_t) t); in duk_bi_date_parse_string_getdate()
Dduk_js_ops.c103 duk_double_t d; in duk_js_toboolean()
148 DUK_LOCAL duk_double_t duk__tonumber_string_raw(duk_hthread *thr) { in duk__tonumber_string_raw()
151 duk_double_t d; in duk__tonumber_string_raw()
175 DUK_INTERNAL duk_double_t duk_js_tonumber(duk_hthread *thr, duk_tval *tv) { in duk_js_tonumber()
208 duk_double_t d; in duk_js_tonumber()
240 return (duk_double_t) DUK_TVAL_GET_FASTINT(tv); in duk_js_tonumber()
258 DUK_INTERNAL duk_double_t duk_js_tointeger_number(duk_double_t x) { in duk_js_tointeger_number()
278 DUK_INTERNAL duk_double_t duk_js_tointeger(duk_hthread *thr, duk_tval *tv) { in duk_js_tointeger()
280 duk_double_t d = duk_js_tonumber(thr, tv); /* invalidates tv */ in duk_js_tointeger()
289 DUK_LOCAL duk_double_t duk__toint32_touint32_helper(duk_double_t x, duk_bool_t is_toint32) { in duk__toint32_touint32_helper()
[all …]
Dduk_tval.h152 duk_double_t duk__dblval; \
164 duk_double_t duk__d; \
173 duk_double_t duk__dblval; \
178 #define DUK_TVAL_SET_FASTINT(v,i) DUK_TVAL_SET_DOUBLE((v), (duk_double_t) (i)) /* XXX: f…
179 #define DUK_TVAL_SET_FASTINT_I32(v,i) DUK_TVAL_SET_DOUBLE((v), (duk_double_t) (i))
180 #define DUK_TVAL_SET_FASTINT_U32(v,i) DUK_TVAL_SET_DOUBLE((v), (duk_double_t) (i))
246 DUK_INTERNAL_DECL duk_double_t duk_tval_get_number_packed(duk_tval *tv);
270 duk_double_t d;
348 duk_double_t duk__d; \
359 DUK_TVAL_SET_NUMBER((tv), (duk_double_t) (val)) /* XXX: fast int-to-double */
[all …]
Dduk_bi_math.c21 DUK_LOCAL duk_ret_t duk__math_minmax(duk_context *ctx, duk_double_t initial, duk__two_arg_func min_… in duk__math_minmax()
24 duk_double_t res = initial; in duk__math_minmax()
25 duk_double_t t; in duk__math_minmax()
42 res = (duk_double_t) DUK_DOUBLE_NAN; in duk__math_minmax()
44 res = (duk_double_t) min_max(res, (double) t); in duk__math_minmax()
291 duk_push_number(ctx, (duk_double_t) fun((double) duk_to_number(ctx, 0))); in duk_bi_math_object_onearg_shared()
302 …duk_push_number(ctx, (duk_double_t) fun((double) duk_to_number(ctx, 0), (double) duk_to_number(ctx… in duk_bi_math_object_twoarg_shared()
315 duk_push_number(ctx, (duk_double_t) duk_util_tinyrandom_get_double((duk_hthread *) ctx)); in duk_bi_math_object_random()
Dduk_selftest.c149 duk_double_t du_diff; in duk__selftest_bswap_macros()
283 volatile duk_double_t d; in duk__selftest_64bit_arithmetic()
305 duk_double_t d1, d2; in duk__selftest_cast_double_to_small_uint()
308 duk_double_t d1v, d2v; in duk__selftest_cast_double_to_small_uint()
315 d2 = (duk_double_t) u; in duk__selftest_cast_double_to_small_uint()
325 d2v = (duk_double_t) uv; in duk__selftest_cast_double_to_small_uint()
340 duk_double_t dv; in duk__selftest_cast_double_to_uint32()
Dduk_util_tinyrandom.c36 DUK_INTERNAL duk_double_t duk_util_tinyrandom_get_double(duk_hthread *thr) { in duk_util_tinyrandom_get_double()
37 duk_double_t t; in duk_util_tinyrandom_get_double()
59 DUK_ASSERT(t >= (duk_double_t) 0.0); in duk_util_tinyrandom_get_double()
60 DUK_ASSERT(t < (duk_double_t) 1.0); in duk_util_tinyrandom_get_double()
Dduk_error_augment.c163 duk_double_t d; in duk__add_traceback()
223 d = (noblame_fileline ? ((duk_double_t) DUK_TB_FLAG_NOBLAME_FILELINE) * DUK_DOUBLE_2TO32 : 0.0) + in duk__add_traceback()
224 (duk_double_t) c_line; in duk__add_traceback()
267 …DUK_ASSERT((duk_double_t) pc < DUK_DOUBLE_2TO32); /* assume PC is at most 32 bits and non-negativ… in duk__add_traceback()
268 d = ((duk_double_t) thr_callstack->callstack[i].flags) * DUK_DOUBLE_2TO32 + (duk_double_t) pc; in duk__add_traceback()
354 …DUK_ASSERT((duk_double_t) pc < DUK_DOUBLE_2TO32); /* assume PC is at most 32 bits and non-negativ… in duk__add_fileline()
Dduk_tval.c22 DUK_INTERNAL DUK_ALWAYS_INLINE void duk_tval_set_number_chkfast(duk_tval *tv, duk_double_t x) { in duk_tval_set_number_chkfast()
70 DUK_INTERNAL DUK_ALWAYS_INLINE duk_double_t duk_tval_get_number_packed(duk_tval *tv) { in duk_tval_get_number_packed()
96 DUK_INTERNAL DUK_ALWAYS_INLINE duk_double_t duk_tval_get_number_unpacked(duk_tval *tv) {
120 DUK_INTERNAL DUK_ALWAYS_INLINE duk_double_t duk_tval_get_number_unpacked_fastint(duk_tval *tv) { in duk_tval_get_number_unpacked_fastint()
Dduk_bi_number.c7 DUK_LOCAL duk_double_t duk__push_this_number_plain(duk_context *ctx) { in duk__push_this_number_plain()
130 duk_double_t d; in duk_bi_number_prototype_to_fixed()
164 duk_double_t d; in duk_bi_number_prototype_to_exponential()
201 duk_double_t d; in duk_bi_number_prototype_to_precision()
Dduk_bi_date_windows.c39 DUK_INTERNAL duk_double_t duk_bi_date_get_now_windows(duk_context *ctx) { in duk_bi_date_get_now_windows()
55 return (duk_double_t) ((tmp1.QuadPart - tmp2.QuadPart) / 10000LL); in duk_bi_date_get_now_windows()
61 DUK_INTERNAL_DECL duk_int_t duk_bi_date_get_local_tzoffset_windows(duk_double_t d) { in duk_bi_date_get_local_tzoffset_windows()

1234