/civetweb-2.7.6/src/third_party/duktape-1.8.0/src-separate/ |
D | duk_hstring.h | 49 #define DUK_HSTRING_HAS_ASCII(x) DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HSTR… argument 50 #define DUK_HSTRING_HAS_ARRIDX(x) DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HSTR… argument 51 #define DUK_HSTRING_HAS_INTERNAL(x) DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HSTR… argument 52 #define DUK_HSTRING_HAS_RESERVED_WORD(x) DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HSTR… argument 53 #define DUK_HSTRING_HAS_STRICT_RESERVED_WORD(x) DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HSTR… argument 54 #define DUK_HSTRING_HAS_EVAL_OR_ARGUMENTS(x) DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HSTR… argument 55 #define DUK_HSTRING_HAS_EXTDATA(x) DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HSTR… argument 57 #define DUK_HSTRING_SET_ASCII(x) DUK_HEAPHDR_SET_FLAG_BITS(&(x)->hdr, DUK_HSTRIN… argument 58 #define DUK_HSTRING_SET_ARRIDX(x) DUK_HEAPHDR_SET_FLAG_BITS(&(x)->hdr, DUK_HSTRIN… argument 59 #define DUK_HSTRING_SET_INTERNAL(x) DUK_HEAPHDR_SET_FLAG_BITS(&(x)->hdr, DUK_HSTRIN… argument [all …]
|
D | duk_hbuffer.h | 26 #define DUK_HBUFFER_HAS_DYNAMIC(x) DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HBUFFE… argument 27 #define DUK_HBUFFER_HAS_EXTERNAL(x) DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HBUFFE… argument 29 #define DUK_HBUFFER_SET_DYNAMIC(x) DUK_HEAPHDR_SET_FLAG_BITS(&(x)->hdr, DUK_HBUFFER_… argument 30 #define DUK_HBUFFER_SET_EXTERNAL(x) DUK_HEAPHDR_SET_FLAG_BITS(&(x)->hdr, DUK_HBUFFER_… argument 32 #define DUK_HBUFFER_CLEAR_DYNAMIC(x) DUK_HEAPHDR_CLEAR_FLAG_BITS(&(x)->hdr, DUK_HBUFFE… argument 33 #define DUK_HBUFFER_CLEAR_EXTERNAL(x) DUK_HEAPHDR_CLEAR_FLAG_BITS(&(x)->hdr, DUK_HBUFFE… argument 63 #define DUK_HBUFFER_GET_SIZE(x) ((x)->hdr.h_flags >> 16) argument 64 #define DUK_HBUFFER_SET_SIZE(x,v) do { \ argument 68 (x)->hdr.h_flags = ((x)->hdr.h_flags & 0x0000ffffUL) | (((duk_uint32_t) duk__v) << 16); \ 70 #define DUK_HBUFFER_ADD_SIZE(x,dv) do { \ argument [all …]
|
D | duk_lexer.c | 83 #define DUK__ISDIGIT(x) ((x) >= DUK_ASC_0 && (x) <= DUK_ASC_9) argument 84 #define DUK__ISHEXDIGIT(x) duk__is_hex_digit((x)) argument 85 #define DUK__ISOCTDIGIT(x) ((x) >= DUK_ASC_0 && (x) <= DUK_ASC_7) argument 86 #define DUK__ISDIGIT03(x) ((x) >= DUK_ASC_0 && (x) <= DUK_ASC_3) argument 87 #define DUK__ISDIGIT47(x) ((x) >= DUK_ASC_4 && (x) <= DUK_ASC_7) argument 94 #define DUK__APPENDBUFFER(lex_ctx,x) duk__appendbuffer((lex_ctx), (duk_codepoint_t) (x)) argument 179 duk_ucodepoint_t x; in duk__fill_lexer_buffer() local 210 x = (duk_ucodepoint_t) (*p++); in duk__fill_lexer_buffer() 214 if (DUK_LIKELY(x < 0x80UL)) { in duk__fill_lexer_buffer() 215 DUK_ASSERT(x != 0x2028UL && x != 0x2029UL); /* not LS/PS */ in duk__fill_lexer_buffer() [all …]
|
D | duk_bi_math.c | 52 DUK_LOCAL double duk__fmin_fixed(double x, double y) { in duk__fmin_fixed() argument 56 if (x == 0 && y == 0) { in duk__fmin_fixed() 58 if (DUK_SIGNBIT(x) != 0 || DUK_SIGNBIT(y) != 0) { in duk__fmin_fixed() 65 return DUK_FMIN(x, y); in duk__fmin_fixed() 67 return (x < y ? x : y); in duk__fmin_fixed() 71 DUK_LOCAL double duk__fmax_fixed(double x, double y) { in duk__fmax_fixed() argument 75 if (x == 0 && y == 0) { in duk__fmax_fixed() 76 if (DUK_SIGNBIT(x) == 0 || DUK_SIGNBIT(y) == 0) { in duk__fmax_fixed() 83 return DUK_FMAX(x, y); in duk__fmax_fixed() 85 return (x > y ? x : y); in duk__fmax_fixed() [all …]
|
D | duk_numconv.c | 18 #define DUK__DIGITCHAR(x) duk_lc_digits[(x)] argument 68 * x <- y * z --> duk__bi_mul(x, y, z); 77 #define DUK__BI_PRINT(name,x) duk__bi_print((name),(x)) argument 79 #define DUK__BI_PRINT(name,x) argument 89 DUK_LOCAL void duk__bi_print(const char *name, duk__bigint *x) { in duk__bi_print() argument 96 p += DUK_SPRINTF(p, "%p n=%ld", (void *) x, (long) x->n); in duk__bi_print() 97 if (x->n == 0) { in duk__bi_print() 100 for (i = x->n - 1; i >= 0; i--) { in duk__bi_print() 101 p += DUK_SPRINTF(p, " %08lx", (unsigned long) x->v[i]); in duk__bi_print() 109 DUK_LOCAL duk_small_int_t duk__bi_is_valid(duk__bigint *x) { in duk__bi_is_valid() argument [all …]
|
D | duk_unicode_support.c | 34 duk_uint_fast32_t x = (duk_uint_fast32_t) cp; in duk_unicode_get_xutf8_length() local 35 if (x < 0x80UL) { in duk_unicode_get_xutf8_length() 38 } else if (x < 0x800UL) { in duk_unicode_get_xutf8_length() 41 } else if (x < 0x10000UL) { in duk_unicode_get_xutf8_length() 44 } else if (x < 0x200000UL) { in duk_unicode_get_xutf8_length() 47 } else if (x < 0x4000000UL) { in duk_unicode_get_xutf8_length() 50 } else if (x < (duk_ucodepoint_t) 0x80000000UL) { in duk_unicode_get_xutf8_length() 61 duk_uint_fast32_t x = (duk_uint_fast32_t) cp; in duk_unicode_get_cesu8_length() local 62 if (x < 0x80UL) { in duk_unicode_get_cesu8_length() 65 } else if (x < 0x800UL) { in duk_unicode_get_cesu8_length() [all …]
|
D | duk_js_ops.c | 258 DUK_INTERNAL duk_double_t duk_js_tointeger_number(duk_double_t x) { in duk_js_tointeger_number() argument 259 duk_small_int_t c = (duk_small_int_t) DUK_FPCLASSIFY(x); in duk_js_tointeger_number() 267 return x; in duk_js_tointeger_number() 269 duk_small_int_t s = (duk_small_int_t) DUK_SIGNBIT(x); in duk_js_tointeger_number() 270 x = DUK_FLOOR(DUK_FABS(x)); /* truncate towards zero */ in duk_js_tointeger_number() 272 x = -x; in duk_js_tointeger_number() 274 return x; in duk_js_tointeger_number() 289 DUK_LOCAL duk_double_t duk__toint32_touint32_helper(duk_double_t x, duk_bool_t is_toint32) { in duk__toint32_touint32_helper() argument 290 duk_small_int_t c = (duk_small_int_t) DUK_FPCLASSIFY(x); in duk__toint32_touint32_helper() 298 /* x = sign(x) * floor(abs(x)), i.e. truncate towards zero, keep sign */ in duk__toint32_touint32_helper() [all …]
|
D | duk_api_codec.c | 84 duk_uint_fast8_t x, y; in duk__base64_encode_helper() local 112 x = (duk_uint_fast8_t) ((t >> 18) & 0x3f); in duk__base64_encode_helper() 120 } else if (x <= 25) { in duk__base64_encode_helper() 121 y = x + 'A'; in duk__base64_encode_helper() 122 } else if (x <= 51) { in duk__base64_encode_helper() 123 y = x - 26 + 'a'; in duk__base64_encode_helper() 124 } else if (x <= 61) { in duk__base64_encode_helper() 125 y = x - 52 + '0'; in duk__base64_encode_helper() 126 } else if (x == 62) { in duk__base64_encode_helper() 140 duk_int_t x; in duk__base64_decode_helper() local [all …]
|
/civetweb-2.7.6/src/third_party/duktape-1.5.2/src-separate/ |
D | duk_hstring.h | 49 #define DUK_HSTRING_HAS_ASCII(x) DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HSTR… argument 50 #define DUK_HSTRING_HAS_ARRIDX(x) DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HSTR… argument 51 #define DUK_HSTRING_HAS_INTERNAL(x) DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HSTR… argument 52 #define DUK_HSTRING_HAS_RESERVED_WORD(x) DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HSTR… argument 53 #define DUK_HSTRING_HAS_STRICT_RESERVED_WORD(x) DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HSTR… argument 54 #define DUK_HSTRING_HAS_EVAL_OR_ARGUMENTS(x) DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HSTR… argument 55 #define DUK_HSTRING_HAS_EXTDATA(x) DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HSTR… argument 57 #define DUK_HSTRING_SET_ASCII(x) DUK_HEAPHDR_SET_FLAG_BITS(&(x)->hdr, DUK_HSTRIN… argument 58 #define DUK_HSTRING_SET_ARRIDX(x) DUK_HEAPHDR_SET_FLAG_BITS(&(x)->hdr, DUK_HSTRIN… argument 59 #define DUK_HSTRING_SET_INTERNAL(x) DUK_HEAPHDR_SET_FLAG_BITS(&(x)->hdr, DUK_HSTRIN… argument [all …]
|
D | duk_hbuffer.h | 26 #define DUK_HBUFFER_HAS_DYNAMIC(x) DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HBUFFE… argument 27 #define DUK_HBUFFER_HAS_EXTERNAL(x) DUK_HEAPHDR_CHECK_FLAG_BITS(&(x)->hdr, DUK_HBUFFE… argument 29 #define DUK_HBUFFER_SET_DYNAMIC(x) DUK_HEAPHDR_SET_FLAG_BITS(&(x)->hdr, DUK_HBUFFER_… argument 30 #define DUK_HBUFFER_SET_EXTERNAL(x) DUK_HEAPHDR_SET_FLAG_BITS(&(x)->hdr, DUK_HBUFFER_… argument 32 #define DUK_HBUFFER_CLEAR_DYNAMIC(x) DUK_HEAPHDR_CLEAR_FLAG_BITS(&(x)->hdr, DUK_HBUFFE… argument 33 #define DUK_HBUFFER_CLEAR_EXTERNAL(x) DUK_HEAPHDR_CLEAR_FLAG_BITS(&(x)->hdr, DUK_HBUFFE… argument 63 #define DUK_HBUFFER_GET_SIZE(x) ((x)->hdr.h_flags >> 16) argument 64 #define DUK_HBUFFER_SET_SIZE(x,v) do { \ argument 68 (x)->hdr.h_flags = ((x)->hdr.h_flags & 0x0000ffffUL) | (((duk_uint32_t) duk__v) << 16); \ 70 #define DUK_HBUFFER_ADD_SIZE(x,dv) do { \ argument [all …]
|
D | duk_lexer.c | 83 #define DUK__ISDIGIT(x) ((x) >= DUK_ASC_0 && (x) <= DUK_ASC_9) argument 84 #define DUK__ISHEXDIGIT(x) duk__is_hex_digit((x)) argument 85 #define DUK__ISOCTDIGIT(x) ((x) >= DUK_ASC_0 && (x) <= DUK_ASC_7) argument 86 #define DUK__ISDIGIT03(x) ((x) >= DUK_ASC_0 && (x) <= DUK_ASC_3) argument 87 #define DUK__ISDIGIT47(x) ((x) >= DUK_ASC_4 && (x) <= DUK_ASC_7) argument 94 #define DUK__APPENDBUFFER(lex_ctx,x) duk__appendbuffer((lex_ctx), (duk_codepoint_t) (x)) argument 179 duk_ucodepoint_t x; in duk__fill_lexer_buffer() local 210 x = (duk_ucodepoint_t) (*p++); in duk__fill_lexer_buffer() 214 if (DUK_LIKELY(x < 0x80UL)) { in duk__fill_lexer_buffer() 215 DUK_ASSERT(x != 0x2028UL && x != 0x2029UL); /* not LS/PS */ in duk__fill_lexer_buffer() [all …]
|
D | duk_bi_math.c | 52 DUK_LOCAL double duk__fmin_fixed(double x, double y) { in duk__fmin_fixed() argument 56 if (x == 0 && y == 0) { in duk__fmin_fixed() 58 if (DUK_SIGNBIT(x) != 0 || DUK_SIGNBIT(y) != 0) { in duk__fmin_fixed() 65 return DUK_FMIN(x, y); in duk__fmin_fixed() 67 return (x < y ? x : y); in duk__fmin_fixed() 71 DUK_LOCAL double duk__fmax_fixed(double x, double y) { in duk__fmax_fixed() argument 75 if (x == 0 && y == 0) { in duk__fmax_fixed() 76 if (DUK_SIGNBIT(x) == 0 || DUK_SIGNBIT(y) == 0) { in duk__fmax_fixed() 83 return DUK_FMAX(x, y); in duk__fmax_fixed() 85 return (x > y ? x : y); in duk__fmax_fixed() [all …]
|
D | duk_numconv.c | 18 #define DUK__DIGITCHAR(x) duk_lc_digits[(x)] argument 68 * x <- y * z --> duk__bi_mul(x, y, z); 77 #define DUK__BI_PRINT(name,x) duk__bi_print((name),(x)) argument 79 #define DUK__BI_PRINT(name,x) argument 89 DUK_LOCAL void duk__bi_print(const char *name, duk__bigint *x) { in duk__bi_print() argument 96 p += DUK_SPRINTF(p, "%p n=%ld", (void *) x, (long) x->n); in duk__bi_print() 97 if (x->n == 0) { in duk__bi_print() 100 for (i = x->n - 1; i >= 0; i--) { in duk__bi_print() 101 p += DUK_SPRINTF(p, " %08lx", (unsigned long) x->v[i]); in duk__bi_print() 109 DUK_LOCAL duk_small_int_t duk__bi_is_valid(duk__bigint *x) { in duk__bi_is_valid() argument [all …]
|
D | duk_unicode_support.c | 34 duk_uint_fast32_t x = (duk_uint_fast32_t) cp; in duk_unicode_get_xutf8_length() local 35 if (x < 0x80UL) { in duk_unicode_get_xutf8_length() 38 } else if (x < 0x800UL) { in duk_unicode_get_xutf8_length() 41 } else if (x < 0x10000UL) { in duk_unicode_get_xutf8_length() 44 } else if (x < 0x200000UL) { in duk_unicode_get_xutf8_length() 47 } else if (x < 0x4000000UL) { in duk_unicode_get_xutf8_length() 50 } else if (x < (duk_ucodepoint_t) 0x80000000UL) { in duk_unicode_get_xutf8_length() 61 duk_uint_fast32_t x = (duk_uint_fast32_t) cp; in duk_unicode_get_cesu8_length() local 62 if (x < 0x80UL) { in duk_unicode_get_cesu8_length() 65 } else if (x < 0x800UL) { in duk_unicode_get_cesu8_length() [all …]
|
D | duk_js_ops.c | 258 DUK_INTERNAL duk_double_t duk_js_tointeger_number(duk_double_t x) { in duk_js_tointeger_number() argument 259 duk_small_int_t c = (duk_small_int_t) DUK_FPCLASSIFY(x); in duk_js_tointeger_number() 267 return x; in duk_js_tointeger_number() 269 duk_small_int_t s = (duk_small_int_t) DUK_SIGNBIT(x); in duk_js_tointeger_number() 270 x = DUK_FLOOR(DUK_FABS(x)); /* truncate towards zero */ in duk_js_tointeger_number() 272 x = -x; in duk_js_tointeger_number() 274 return x; in duk_js_tointeger_number() 289 DUK_LOCAL duk_double_t duk__toint32_touint32_helper(duk_double_t x, duk_bool_t is_toint32) { in duk__toint32_touint32_helper() argument 290 duk_small_int_t c = (duk_small_int_t) DUK_FPCLASSIFY(x); in duk__toint32_touint32_helper() 298 /* x = sign(x) * floor(abs(x)), i.e. truncate towards zero, keep sign */ in duk__toint32_touint32_helper() [all …]
|
D | duk_api_codec.c | 84 duk_uint_fast8_t x, y; in duk__base64_encode_helper() local 112 x = (duk_uint_fast8_t) ((t >> 18) & 0x3f); in duk__base64_encode_helper() 120 } else if (x <= 25) { in duk__base64_encode_helper() 121 y = x + 'A'; in duk__base64_encode_helper() 122 } else if (x <= 51) { in duk__base64_encode_helper() 123 y = x - 26 + 'a'; in duk__base64_encode_helper() 124 } else if (x <= 61) { in duk__base64_encode_helper() 125 y = x - 52 + '0'; in duk__base64_encode_helper() 126 } else if (x == 62) { in duk__base64_encode_helper() 140 duk_int_t x; in duk__base64_decode_helper() local [all …]
|
/civetweb-2.7.6/test/ |
D | page_shared.lua | 17 x = shared.count 18 mg.write("Previous count was " .. tostring(x) .. " (type " .. type(x) .. ")\n") 19 x = x or 0 20 x = x + 1 21 shared.count = x 22 mg.write("Store new count " .. tostring(x) .. " (type " .. type(x) .. ")\n") 23 x = shared.count 24 mg.write("New count is " .. tostring(x) .. " (type " .. type(x) .. ")\n") 28 x = shared.name 29 mg.write("Previous name was " .. tostring(x) .. " (type " .. type(x) .. ")\n") [all …]
|
/civetweb-2.7.6/src/third_party/lua-5.1.5/test/ |
D | sort.lua | 5 function qsort(x,l,u,f) 8 x[l],x[m]=x[m],x[l] -- swap pivot to first position 9 local t=x[l] -- pivot value 13 -- invariant: x[l+1..m] < t <= x[m+1..i-1] 14 if f(x[i],t) then 16 x[m],x[i]=x[i],x[m] -- swap x[i] and x[m] 20 x[l],x[m]=x[m],x[l] -- swap pivot to a valid place 21 -- x[l+1..m-1] < x[m] <= x[m+1..u] 22 qsort(x,l,m-1,f) 23 qsort(x,m+1,u,f) [all …]
|
/civetweb-2.7.6/src/third_party/lua-5.1.5/src/ |
D | lgc.h | 27 #define resetbits(x,m) ((x) &= cast(lu_byte, ~(m))) argument 28 #define setbits(x,m) ((x) |= (m)) argument 29 #define testbits(x,m) ((x) & (m)) argument 32 #define l_setbit(x,b) setbits(x, bitmask(b)) argument 33 #define resetbit(x,b) resetbits(x, bitmask(b)) argument 34 #define testbit(x,b) testbits(x, bitmask(b)) argument 35 #define set2bits(x,b1,b2) setbits(x, (bit2mask(b1, b2))) argument 36 #define reset2bits(x,b1,b2) resetbits(x, (bit2mask(b1, b2))) argument 37 #define test2bits(x,b1,b2) testbits(x, (bit2mask(b1, b2))) argument 65 #define iswhite(x) test2bits((x)->gch.marked, WHITE0BIT, WHITE1BIT) argument [all …]
|
D | lobject.h | 119 #define setnvalue(obj,x) \ argument 120 { TValue *i_o=(obj); i_o->value.n=(x); i_o->tt=LUA_TNUMBER; } 122 #define setpvalue(obj,x) \ argument 123 { TValue *i_o=(obj); i_o->value.p=(x); i_o->tt=LUA_TLIGHTUSERDATA; } 125 #define setbvalue(obj,x) \ argument 126 { TValue *i_o=(obj); i_o->value.b=(x); i_o->tt=LUA_TBOOLEAN; } 128 #define setsvalue(L,obj,x) \ argument 130 i_o->value.gc=cast(GCObject *, (x)); i_o->tt=LUA_TSTRING; \ 133 #define setuvalue(L,obj,x) \ argument 135 i_o->value.gc=cast(GCObject *, (x)); i_o->tt=LUA_TUSERDATA; \ [all …]
|
/civetweb-2.7.6/test/canvasdir/ |
D | canvas.js | 51 x: 0, property in mouse 57 var Point = function (x, y) { argument 59 this.x = x; 61 this.px = x; 75 var diff_x = this.x - mouse.x, 82 this.px = this.x - (mouse.x - mouse.px) * 1.8; 92 nx = this.x + ((this.x - this.px) * .99) + ((this.vx / 2) * delta); 95 this.px = this.x; 98 this.x = nx; 116 this.x = this.pin_x; [all …]
|
/civetweb-2.7.6/src/third_party/lua-5.2.4/src/ |
D | lgc.h | 76 #define resetbits(x,m) ((x) &= cast(lu_byte, ~(m))) argument 77 #define setbits(x,m) ((x) |= (m)) argument 78 #define testbits(x,m) ((x) & (m)) argument 81 #define l_setbit(x,b) setbits(x, bitmask(b)) argument 82 #define resetbit(x,b) resetbits(x, bitmask(b)) argument 83 #define testbit(x,b) testbits(x, bitmask(b)) argument 99 #define iswhite(x) testbits((x)->gch.marked, WHITEBITS) argument 100 #define isblack(x) testbit((x)->gch.marked, BLACKBIT) argument 101 #define isgray(x) /* neither white nor black */ \ argument 102 (!testbits((x)->gch.marked, WHITEBITS | bitmask(BLACKBIT))) [all …]
|
/civetweb-2.7.6/src/third_party/lua-5.3.5/src/ |
D | lgc.h | 67 #define resetbits(x,m) ((x) &= cast(lu_byte, ~(m))) argument 68 #define setbits(x,m) ((x) |= (m)) argument 69 #define testbits(x,m) ((x) & (m)) argument 72 #define l_setbit(x,b) setbits(x, bitmask(b)) argument 73 #define resetbit(x,b) resetbits(x, bitmask(b)) argument 74 #define testbit(x,b) testbits(x, bitmask(b)) argument 87 #define iswhite(x) testbits((x)->marked, WHITEBITS) argument 88 #define isblack(x) testbit((x)->marked, BLACKBIT) argument 89 #define isgray(x) /* neither white nor black */ \ argument 90 (!testbits((x)->marked, WHITEBITS | bitmask(BLACKBIT))) [all …]
|
D | lobject.c | 41 int luaO_int2fb (unsigned int x) { in luaO_int2fb() argument 43 if (x < 8) return x; in luaO_int2fb() 44 while (x >= (8 << 4)) { /* coarse steps */ in luaO_int2fb() 45 x = (x + 0xf) >> 4; /* x = ceil(x / 16) */ in luaO_int2fb() 48 while (x >= (8 << 1)) { /* fine steps */ in luaO_int2fb() 49 x = (x + 1) >> 1; /* x = ceil(x / 2) */ in luaO_int2fb() 52 return ((e+1) << 3) | (cast_int(x) - 8); in luaO_int2fb() 57 int luaO_fb2int (int x) { in luaO_fb2int() argument 58 return (x < 8) ? x : ((x & 7) + 8) << ((x >> 3) - 1); in luaO_fb2int() 63 ** Computes ceil(log2(x)) [all …]
|
D | lobject.h | 130 #define novariant(x) ((x) & 0x0F) argument 198 #define setfltvalue(obj,x) \ argument 199 { TValue *io=(obj); val_(io).n=(x); settt_(io, LUA_TNUMFLT); } 201 #define chgfltvalue(obj,x) \ argument 202 { TValue *io=(obj); lua_assert(ttisfloat(io)); val_(io).n=(x); } 204 #define setivalue(obj,x) \ argument 205 { TValue *io=(obj); val_(io).i=(x); settt_(io, LUA_TNUMINT); } 207 #define chgivalue(obj,x) \ argument 208 { TValue *io=(obj); lua_assert(ttisinteger(io)); val_(io).i=(x); } 212 #define setfvalue(obj,x) \ argument [all …]
|