Home
last modified time | relevance | path

Searched refs:floor (Results 1 - 25 of 458) sorted by relevance

12345678910>>...19

/third_party/node/deps/npm/node_modules/tiny-relative-date/lib/
H A Dfactory.js66 return translate('minutes', Math.floor(delta / minute));
68 case Math.floor(delta / hour) !== 1:
72 return translate('hours', Math.floor(delta / hour));
78 return translate('days', Math.floor(delta / day));
80 case Math.floor(delta / week) !== 1:
84 return translate('weeks', Math.floor(delta / week));
86 case Math.floor(delta / month) !== 1:
90 return translate('months', Math.floor(delta / month));
92 case Math.floor(delta / year) !== 1:
/third_party/node/lib/
H A Dpunycode.js40 const floor = Math.floor;
191 delta = firstTime ? floor(delta / damp) : delta >> 1;
192 delta += floor(delta / numPoints);
194 delta = floor(delta / baseMinusTMin);
196 return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
253 if (digit > floor((maxInt - i) / w)) {
265 if (w > floor(maxInt / baseMinusT)) {
278 if (floor(i / out) > maxInt - n) {
282 n += floor(
[all...]
/third_party/protobuf/js/binary/
H A Dencoder.js84 goog.asserts.assert(lowBits == Math.floor(lowBits));
85 goog.asserts.assert(highBits == Math.floor(highBits));
109 goog.asserts.assert(lowBits == Math.floor(lowBits));
110 goog.asserts.assert(highBits == Math.floor(highBits));
126 goog.asserts.assert(value == Math.floor(value));
145 goog.asserts.assert(value == Math.floor(value));
174 goog.asserts.assert(value == Math.floor(value));
190 goog.asserts.assert(value == Math.floor(value));
205 goog.asserts.assert(value == Math.floor(value));
219 goog.asserts.assert(value == Math.floor(valu
[all...]
/third_party/node/test/parallel/
H A Dtest-stream-readable-object-multi-push-async.js30 }, Math.floor(MAX / BATCH) + 2)
56 assert.strictEqual(i, (Math.floor(MAX / BATCH) + 1) * BATCH);
80 }, Math.floor(MAX / BATCH) + 2)
102 assert.strictEqual(i, (Math.floor(MAX / BATCH) + 1) * BATCH);
125 }, Math.floor(MAX / BATCH) + 1)
143 assert.strictEqual(i, (Math.floor(MAX / BATCH) + 1) * BATCH);
/third_party/skia/third_party/externals/angle2/src/common/
H A Dmathutil.cpp55 std::max<float>(-g_sharedexp_bias - 1, floor(log(max_c))) + 1 + g_sharedexp_bias; in convertRGBFloatsTo999E5()
57 floor((max_c / (pow(2.0f, exp_p - g_sharedexp_biased_mantissabits))) + 0.5f)); in convertRGBFloatsTo999E5()
63 output.R = static_cast<unsigned int>(floor((red_c / pow2_exp) + 0.5f)); in convertRGBFloatsTo999E5()
64 output.G = static_cast<unsigned int>(floor((green_c / pow2_exp) + 0.5f)); in convertRGBFloatsTo999E5()
65 output.B = static_cast<unsigned int>(floor((blue_c / pow2_exp) + 0.5f)); in convertRGBFloatsTo999E5()
/third_party/musl/src/math/
H A Dtgamma.c37 x = 2 * (x - floor(x)); in sinpi()
126 if (x == floor(x)) { in tgamma()
138 if (floor(x) * 0.5 == floor(x * 0.5)) in tgamma()
186 if (x == floor(x) && x <= 2) {
/third_party/musl/porting/liteos_a/kernel/src/math/
H A Dtgamma.c37 x = 2 * (x - floor(x)); in sinpi()
126 if (x == floor(x)) { in tgamma()
138 if (floor(x) * 0.5 == floor(x * 0.5)) in tgamma()
186 if (x == floor(x) && x <= 2) {
/third_party/skia/third_party/externals/swiftshader/tests/MathUnitTests/
H A Dunittests.cpp72 const float exp_p = fmax(-g_sharedexp_bias - 1, floor(log2(max_c))) + 1 + g_sharedexp_bias; in RGB9E5_reference()
73 const int max_s = static_cast<int>(floor((max_c / exp2(exp_p - g_sharedexp_bias - g_sharedexp_mantissabits)) + 0.5f)); in RGB9E5_reference()
76 unsigned int R = static_cast<unsigned int>(floor((red_c / exp2(exp_s - g_sharedexp_bias - g_sharedexp_mantissabits)) + 0.5f)); in RGB9E5_reference()
77 unsigned int G = static_cast<unsigned int>(floor((green_c / exp2(exp_s - g_sharedexp_bias - g_sharedexp_mantissabits)) + 0.5f)); in RGB9E5_reference()
78 unsigned int B = static_cast<unsigned int>(floor((blue_c / exp2(exp_s - g_sharedexp_bias - g_sharedexp_mantissabits)) + 0.5f)); in RGB9E5_reference()
/third_party/skia/experimental/lowp-basic/
H A Dlerp-study.cpp43 Q15 qt(floor(t * 32768.f + 0.5f)); in saturating_lerp()
54 Q15 qt(floor(t * 32768.f + 0.5f)); in ssse3_lerp()
63 int32_t ft(floor(t * 65536.0f + 0.5f)); in full_res_lerp()
75 Q15 qt (floor(t * 65536.0f - 32768.0f + 0.5f)); in balanced_lerp()
91 int16_t golden = floor(l + 0.5f); in check_lerp()
H A Dbilerp-study.cpp58 int32_t ftx(floor(tx * 65536.0f + 0.5f)); in full_res_bilerp()
62 int64_t fty(floor(ty * 65536.0f + 0.5f)); in full_res_bilerp()
72 I16 qtx = floor(tx * 65536.0f - 32768.0f + 0.5f); in bilerp_1()
82 I16 qty = floor(ty * 65536.0f - 32768.0f + 0.5f); in bilerp_1()
106 int16_t golden = floor(l + 0.5); in check_bilerp()
108 //int16_t golden2 = floor(l + 0.5f); in check_bilerp()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
H A DIndianCalendar.java501 wjd = Math.floor(jd - 0.5) + 0.5; in jdToGregorian()
503 quadricent = Math.floor(depoch / 146097); in jdToGregorian()
505 cent = Math.floor(dqc / 36524); in jdToGregorian()
507 quad = Math.floor(dcent / 1461); in jdToGregorian()
509 yindex = Math.floor(dquad / 365); in jdToGregorian()
522 month = (int)Math.floor((((yearday + leapadj) * 12) + 373) / 367); in jdToGregorian()
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
H A Decma-builtin-helpers-date.c59 return (ecma_number_t) floor (time / ECMA_DATE_MS_PER_DAY); in ecma_date_day()
98 + floor ((year - 1969) / 4) in ecma_date_day_from_year()
99 - floor ((year - 1901) / 100) in ecma_date_day_from_year()
100 + floor ((year - 1601) / 400)); in ecma_date_day_from_year()
145 ecma_number_t year_boundary = (ecma_number_t) floor (lower_year_boundary + (year - lower_year_boundary) / 2); in ecma_date_year_from_time()
173 int mod_400 = (int) fmod (floor (year), 400); in ecma_date_in_leap_year()
362 ecma_number_t hour = (ecma_number_t) fmod (floor (time / ECMA_DATE_MS_PER_HOUR), in ecma_date_hour_from_time()
380 ecma_number_t min = (ecma_number_t) fmod (floor (time / ECMA_DATE_MS_PER_MINUTE), in ecma_date_min_from_time()
398 ecma_number_t sec = (ecma_number_t) fmod (floor (time / ECMA_DATE_MS_PER_SECOND), in ecma_date_sec_from_time()
487 ecma_number_t ym = y + (ecma_number_t) floor ( in ecma_date_make_day()
[all...]
/third_party/node/benchmark/
H A D_benchmark_progress.js19 const hours = pad(Math.floor(time / 3600), 2, '0');
20 const minutes = pad(Math.floor((time % 3600) / 60), 2, '0');
86 const completedFiles = Math.floor(completedRuns / runsPerFile);
99 const percent = pad(Math.floor(completedRate * 100), 3, ' ');
/third_party/node/deps/v8/tools/clusterfuzz/js_fuzzer/
H A Drandom.js14 return Math.floor(Math.random() * (max - min + 1)) + min;
75 const index = Math.floor(p * (high * factor + low));
83 const highIndex = Math.floor((index - low) / factor);
/third_party/musl/src/math/i386/
H A Dfloor.s13 .global floor
14 .type floor,@function
15 floor: label
/third_party/skia/modules/canvaskit/
H A Dcolor.js77 Math.floor(color[0]*255),
78 Math.floor(color[1]*255),
79 Math.floor(color[2]*255),
160 var count = Math.floor(arr.length / 4);
/third_party/typescript/tests/baselines/reference/
H A DconstEnum2.js11 e = 199 * Math.floor(Math.random() * 1000),
12 f = d - (100 * Math.floor(Math.random() % 8))
H A DenumNumbering1.js5 C = Math.floor(Math.random() * 1000),
16 Test[Test["C"] = Math.floor(Math.random() * 1000)] = "C";
/third_party/skia/docs/examples/
H A DRect_MakeSize.cpp10 SkISize floor = size.toFloor(); in REG_FIDDLE() local
11 rect = SkRect::MakeSize(SkSize::Make(floor)); in REG_FIDDLE()
12 SkDebugf("floor width: %g height: %g\n", rect.width(), rect.height()); in REG_FIDDLE()
/third_party/skia/third_party/externals/libpng/contrib/libtests/
H A Dtarith.c740 return (png_uint_32)floor(.5-log(x/255.)*L2INV); in png_log8bit()
748 return (png_uint_32)floor(.5-log(x/65535.)*L2INV); in png_log16bit()
755 return (png_uint_32)floor(.5 + exp(x * -LN2) * 0xffffffffU); in png_exp()
760 return (png_byte)floor(.5 + exp(log * -LN2) * 255); in png_exp8bit()
765 return (png_uint_16)floor(.5 + exp(log * -LN2) * 65535); in png_exp16bit()
800 i != 0 && png_log8bit(i) != floor(correct+.5)) in validation_gamma()
820 i != 0 && png_log16bit(i) != floor(correct+.5)) in validation_gamma()
894 png_fixed_point gfp = floor(g * PNG_FP_1 + .5); in validation_gamma()
908 if (out != floor(correct+.5)) in validation_gamma()
/third_party/node/test/fixtures/wpt/dom/events/non-cancelable-when-passive/resources/
H A Dscrolling.js24 const pos_x = Math.floor(window.innerWidth / 2);
25 const pos_y = Math.floor(window.innerHeight / 2);
/third_party/node/deps/npm/node_modules/qrcode-terminal/vendor/QRCode/
H A DQRBitBuffer.js9 var bufIndex = Math.floor(index / 8);
25 var bufIndex = Math.floor(this.length / 8);
/third_party/jerryscript/tests/unit-core/
H A Dtest-to-integer.cpp141 ecma_value_t floor = ecma_make_number_value (3.001f); in HWTEST_F() local
143 result = ecma_op_to_integer (floor, &num); in HWTEST_F()
145 ecma_free_value (floor); in HWTEST_F()
/third_party/skia/include/private/
H A DSkFloatingPoint.h161 #define sk_double_floor(x) floor(x)
162 #define sk_double_round(x) floor((x) + 0.5)
164 #define sk_double_floor2int(x) (int)floor(x)
165 #define sk_double_round2int(x) (int)floor((x) + 0.5)
/third_party/ffmpeg/libavutil/
H A Dlibm.h425 return x >= 0 ? floor(x + 0.5) : ceil(x - 0.5); in rint()
446 return (x > 0) ? floor(x + 0.5) : ceil(x - 0.5); in round()
453 return (x > 0) ? floor(x + 0.5) : ceil(x - 0.5); in roundf()
460 return (x > 0) ? floor(x) : ceil(x); in trunc()
467 return (x > 0) ? floor(x) : ceil(x); in truncf()

Completed in 10 milliseconds

12345678910>>...19