/external/webkit/JavaScriptCore/tests/mozilla/ecma/Math/ |
D | 15.8.2.9.js | 55 …ew TestCase( SECTION, "Math.floor.length", 1, Math.floor.length ); 57 …] = new TestCase( SECTION, "Math.floor()", Number.NaN, Math.floor() ); 58 …w TestCase( SECTION, "Math.floor(void 0)", Number.NaN, Math.floor(void 0) ); 59 …new TestCase( SECTION, "Math.floor(null)", 0, Math.floor(null) ); 60 …new TestCase( SECTION, "Math.floor(true)", 1, Math.floor(true) ); 61 …ew TestCase( SECTION, "Math.floor(false)", 0, Math.floor(false) ); 63 …ew TestCase( SECTION, "Math.floor('1.1')", 1, Math.floor("1.1") ); 64 …w TestCase( SECTION, "Math.floor('-1.1')", -2, Math.floor("-1.1") ); 65 …ew TestCase( SECTION, "Math.floor('0.1')", 0, Math.floor("0.1") ); 66 …w TestCase( SECTION, "Math.floor('-0.1')", -1, Math.floor("-0.1") ); [all …]
|
D | 15.8.2.6.js | 83 …array[item++] = new TestCase( SECTION, "Math.ceil(Infinity)", -Math.floor(-Infinity), Math.ce… 84 …array[item++] = new TestCase( SECTION, "Math.ceil(-Infinity)", -Math.floor(Infinity), Math.ce… 85 …array[item++] = new TestCase( SECTION, "Math.ceil(-Number.MIN_VALUE)", -Math.floor(Number.MIN_VA… 86 …array[item++] = new TestCase( SECTION, "Math.ceil(1)", -Math.floor(-1), Math.ceil(… 87 …array[item++] = new TestCase( SECTION, "Math.ceil(-1)", -Math.floor(1), Math.ceil(… 88 …array[item++] = new TestCase( SECTION, "Math.ceil(-0.9)", -Math.floor(0.9), Math.ceil(… 89 …array[item++] = new TestCase( SECTION, "Math.ceil(0.9 )", -Math.floor(-0.9), Math.ceil(… 90 …array[item++] = new TestCase( SECTION, "Math.ceil(-1.1)", -Math.floor(1.1), Math.ceil(… 91 …array[item++] = new TestCase( SECTION, "Math.ceil( 1.1)", -Math.floor(-1.1), Math.ceil(…
|
/external/tesseract/ccstruct/ |
D | rect.h | 142 bot_left.set_x ((inT16) floor (bot_left.x () + vec.x ())); in move() 144 bot_left.set_y ((inT16) floor (bot_left.y () + vec.y ())); in move() 154 bot_left.set_x ((inT16) floor (bot_left.x () * f)); // round left in scale() 155 bot_left.set_y ((inT16) floor (bot_left.y () * f)); // round down in scale() 161 bot_left.set_x ((inT16) floor (bot_left.x () * vec.x ())); in scale() 162 bot_left.set_y ((inT16) floor (bot_left.y () * vec.y ())); in scale() 256 bot_left = ICOORD ((inT16) floor (pt.x ()), (inT16) floor (pt.y ())); in TBOX()
|
D | poutline.cpp | 281 start.set_x ((inT16) floor (start.x () + vec.x () + 0.5)); in move() 283 start.set_y ((inT16) floor (start.y () + vec.y () + 0.5)); in move() 312 start.set_x ((inT16) floor (start.x () * f + 0.5)); in scale() 314 start.set_y ((inT16) floor (start.y () * f + 0.5)); in scale() 344 start.set_x ((inT16) floor (start.x () * vector.x () + 0.5)); in scale() 346 start.set_y ((inT16) floor (start.y () * vector.y () + 0.5)); in scale()
|
/external/webkit/JavaScriptCore/tests/mozilla/ecma/ |
D | shell.js | 300 return ( Math.floor(t/msPerDay ) ); 322 return ( Math.floor( t / msPerDay ) ); 338 Math.floor((y-1969)/4) - 339 Math.floor((y-1901)/100) + 340 Math.floor((y-1601)/400) ); 475 var h = Math.floor( t / msPerHour ) % HoursPerDay; 479 var min = Math.floor( t / msPerMinute ) % MinutesPerHour; 483 var sec = Math.floor( t / msPerSecond ) % SecondsPerMinute; 608 var result5 = year + Math.floor( month/12 ); 693 return ( sign * Math.floor( Math.abs( t ) ) );
|
D | jsref.js | 259 return ( Math.floor(t/msPerDay ) ); 281 return ( Math.floor( t / msPerDay ) ); 297 Math.floor((y-1969)/4) - 298 Math.floor((y-1901)/100) + 299 Math.floor((y-1601)/400) ); 434 var h = Math.floor( t / msPerHour ) % HoursPerDay; 438 var min = Math.floor( t / msPerMinute ) % MinutesPerHour; 442 var sec = Math.floor( t / msPerSecond ) % SecondsPerMinute; 565 var result5 = year + Math.floor( month/12 ); 650 return ( sign * Math.floor( Math.abs( t ) ) );
|
/external/webkit/JavaScriptCore/tests/mozilla/ecma_3/Date/ |
D | shell.js | 253 return ( Math.floor( t/msPerDay ) ); 278 return ( Math.floor( t / msPerDay ) ); 302 return ( 365*(y-1970) + Math.floor((y-1969)/4) - Math.floor((y-1901)/100) 303 + Math.floor((y-1601)/400) ); 405 var h = Math.floor( t / msPerHour )%HoursPerDay; 412 var min = Math.floor( t / msPerMinute )%MinutesPerHour; 419 var sec = Math.floor( t / msPerSecond )%SecondsPerMinute; 556 var result5 = year + Math.floor( month/12 ); 649 return ( sign * Math.floor( Math.abs( t ) ) );
|
/external/webkit/JavaScriptCore/wtf/ |
D | DateMath.cpp | 130 const double yearsToAddBy4Rule = floor(yearMinusOne / 4.0) - leapDaysBefore1971By4Rule; in daysFrom1970ToYear() 131 …const double yearsToExcludeBy100Rule = floor(yearMinusOne / 100.0) - excludedLeapDaysBefore1971By1… in daysFrom1970ToYear() 132 const double yearsToAddBy400Rule = floor(yearMinusOne / 400.0) - leapDaysBefore1971By400Rule; in daysFrom1970ToYear() 139 return floor(ms / msPerDay); in msToDays() 144 int approxYear = static_cast<int>(floor(ms / (msPerDay * 365.2425)) + 1970); in msToYear() 177 double result = fmod(floor(ms / msPerSecond), secondsPerMinute); in msToSeconds() 185 double result = fmod(floor(ms / msPerMinute), minutesPerHour); in msToMinutes() 193 double result = fmod(floor(ms/msPerHour), hoursPerDay); in msToHours() 290 int yearday = static_cast<int>(floor(daysFrom1970ToYear(year))); in dateToDayInYear() 298 return floor(getCurrentUTCTimeWithMicroseconds()); in getCurrentUTCTime() [all …]
|
/external/webkit/JavaScriptCore/tests/mozilla/ecma_2/ |
D | jsref.js | 219 return ( Math.floor(t/msPerDay ) ); 241 return ( Math.floor( t / msPerDay ) ); 257 Math.floor((y-1969)/4) - 258 Math.floor((y-1901)/100) + 259 Math.floor((y-1601)/400) ); 394 var h = Math.floor( t / msPerHour ) % HoursPerDay; 398 var min = Math.floor( t / msPerMinute ) % MinutesPerHour; 402 var sec = Math.floor( t / msPerSecond ) % SecondsPerMinute; 526 var result5 = year + Math.floor( month/12 ); 611 return ( sign * Math.floor( Math.abs( t ) ) );
|
/external/webkit/SunSpider/tests/ |
D | date-format-tofte.js | 62 var beat = Math.floor(theSeconds/86.4); 151 var h = ""+Math.floor(os/60); 220 return 1 + Math.floor( ( z() + nyDay ) / 7 ); 223 return 1 + Math.floor( ( z() - ( 7 - nyDay ) ) / 7 ); 262 return Math.floor(diff/1000/60/60/24);
|
D | string-validate-input.js | 67 var l = Math.floor(26*Math.random()); 78 var l = Math.floor(9*Math.random());
|
/external/webkit/JavaScriptCore/tests/mozilla/ecma/Expressions/ |
D | 11.4.8.js | 89 return ( sign * Math.floor(Math.abs(n)) ); 99 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32); 111 n = sign * Math.floor( Math.abs(n) ) 128 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16);
|
D | 11.7.1.js | 96 return ( sign * Math.floor(Math.abs(n)) ); 106 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32); 118 n = sign * Math.floor( Math.abs(n) ) 135 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16);
|
D | 11.7.3.js | 101 return ( sign * Math.floor(Math.abs(n)) ); 111 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32); 123 n = sign * Math.floor( Math.abs(n) ) 140 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16);
|
D | 11.7.2.js | 110 return ( sign * Math.floor(Math.abs(n)) ); 120 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32); 132 n = sign * Math.floor( Math.abs(n) ) 149 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16);
|
D | 11.10-1.js | 98 return ( sign * Math.floor(Math.abs(n)) ); 108 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32); 120 n = sign * Math.floor( Math.abs(n) ) 137 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16);
|
D | 11.10-2.js | 97 return ( sign * Math.floor(Math.abs(n)) ); 107 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32); 119 n = sign * Math.floor( Math.abs(n) ) 136 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16);
|
D | 11.10-3.js | 97 return ( sign * Math.floor(Math.abs(n)) ); 107 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32); 119 n = sign * Math.floor( Math.abs(n) ) 136 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16);
|
/external/webkit/V8Binding/v8/src/ |
D | conversions-inl.h | 65 return (x >= 0) ? floor(x) : ceil(x); in DoubleToInteger() 88 x = (x >= 0) ? floor(x) : ceil(x) + two32; in DoubleToInt32()
|
/external/tremor/Tremor/ |
D | mapping0.c | 92 info->submaplist[i].floor=oggpack_read(opb,8); in mapping_info_unpack() 93 if(info->submaplist[i].floor>=ci->floors)goto err_out; in mapping_info_unpack() 128 floorno=info->submaplist[submap].floor; in mapping_inverse() 217 floorno=info->submaplist[submap].floor; in mapping_inverse()
|
/external/tesseract/textord/ |
D | tospace.cpp | 278 block_non_space_gap_width = (inT16) floor (all_gap_stats.median ()); in block_spacing_stats() 343 MAX ((inT16) floor (space_gap_stats.median ()), in block_spacing_stats() 387 block_space_gap_width = inT16 (floor (row->xheight / 2)); in row_spacing_stats() 392 inT16 (floor (0.5 + in row_spacing_stats() 472 inT32 (floor ((row->space_size + row->kern_size) / 2)); in row_spacing_stats() 521 inT32 (floor ((row->space_size + row->kern_size) / 2)); in row_spacing_stats() 524 sane_threshold = inT32 (floor (tosp_max_sane_kn_thresh * in row_spacing_stats() 540 sane_threshold = inT32 (floor ((sane_space + row->kern_size) / 2)); in row_spacing_stats() 626 row->max_nonspace = (inT32) floor (0.5 + row->kern_size + in row_spacing_stats() 697 inT32 (floor (0.5 + row->kern_size + in old_to_method() [all …]
|
/external/webkit/V8Binding/v8/test/mjsunit/ |
D | parse-int-float.js | 56 assertEquals(Math.floor(x), parseInt(x)); 60 assertEquals(Math.floor(x), parseInt(x));
|
D | div-mod.js | 62 divmod(div_func, mod_func, Math.floor(0x1fffffff / 3), divisor); 63 divmod(div_func, mod_func, Math.floor(-0x20000000 / 3), divisor);
|
/external/webkit/JavaScriptCore/runtime/ |
D | NumberPrototype.cpp | 165 double integerPart = floor(x); in numberProtoFuncToString() 248 double n = floor(x * tenToTheF); in numberProtoFuncToFixed() 327 double logx = floor(log10(fabs(x))); in numberProtoFuncToExponential() 330 double fx = floor(x * tenToTheF) / tenToTheF; in numberProtoFuncToExponential() 405 double n = floor(x / tens); in numberProtoFuncToPrecision() 409 n = floor(x / tens); in numberProtoFuncToPrecision()
|
/external/webkit/WebCore/inspector/front-end/ |
D | FontView.js | 91 var realLineHeight = Math.floor(height / lineCount); 94 var finalFontSize = Math.floor(realLineHeight * widthRatio * fontSizeLineRatio) - 1;
|