Home
last modified time | relevance | path

Searched refs:two_52 (Results 1 – 6 of 6) sorted by relevance

/external/v8/test/mjsunit/
Dmath-floor-part3.js87 var two_52 = (1 << 30) * (1 << 22);
89 testFloor(two_52, two_52);
90 testFloor(two_52, two_52 + 0.1);
91 assertEquals(two_52, two_52 + 0.5);
92 testFloor(two_52, two_52 + 0.5);
93 assertEquals(two_52 + 1, two_52 + 0.7);
94 testFloor(two_52 + 1, two_52 + 0.7);
96 testFloor(two_52 - 1, two_52 - 1);
97 testFloor(two_52 - 1, two_52 - 1 + 0.1);
98 testFloor(two_52 - 1, two_52 - 1 + 0.5);
[all …]
/external/v8/test/mjsunit/compiler/
Dmath-floor-global.js116 var two_52 = (1 << 30) * (1 << 22);
118 testFloor(two_52, two_52);
119 testFloor(two_52, two_52 + 0.1);
120 assertEquals(two_52, two_52 + 0.5);
121 testFloor(two_52, two_52 + 0.5);
122 assertEquals(two_52 + 1, two_52 + 0.7);
123 testFloor(two_52 + 1, two_52 + 0.7);
125 testFloor(two_52 - 1, two_52 - 1);
126 testFloor(two_52 - 1, two_52 - 1 + 0.1);
127 testFloor(two_52 - 1, two_52 - 1 + 0.5);
[all …]
Dmath-floor-local.js116 var two_52 = (1 << 30) * (1 << 22);
118 testFloor(two_52, two_52);
119 testFloor(two_52, two_52 + 0.1);
120 assertEquals(two_52, two_52 + 0.5);
121 testFloor(two_52, two_52 + 0.5);
122 assertEquals(two_52 + 1, two_52 + 0.7);
123 testFloor(two_52 + 1, two_52 + 0.7);
125 testFloor(two_52 - 1, two_52 - 1);
126 testFloor(two_52 - 1, two_52 - 1 + 0.1);
127 testFloor(two_52 - 1, two_52 - 1 + 0.5);
[all …]
/external/v8/src/
Dcode-stub-assembler.cc102 Node* two_52 = Float64Constant(4503599627370496.0E0); in Float64Ceil() local
117 GotoIf(Float64GreaterThanOrEqual(x, two_52), &return_x); in Float64Ceil()
120 var_x.Bind(Float64Sub(Float64Add(two_52, x), two_52)); in Float64Ceil()
134 var_x.Bind(Float64Sub(Float64Add(two_52, minus_x), two_52)); in Float64Ceil()
155 Node* two_52 = Float64Constant(4503599627370496.0E0); in Float64Floor() local
170 GotoIf(Float64GreaterThanOrEqual(x, two_52), &return_x); in Float64Floor()
173 var_x.Bind(Float64Sub(Float64Add(two_52, x), two_52)); in Float64Floor()
187 var_x.Bind(Float64Sub(Float64Add(two_52, minus_x), two_52)); in Float64Floor()
208 Node* two_52 = Float64Constant(4503599627370496.0E0); in Float64Trunc() local
226 GotoIf(Float64GreaterThanOrEqual(x, two_52), &return_x); in Float64Trunc()
[all …]
/external/v8/src/compiler/
Dsimplified-lowering.cc2423 Node* const two_52 = jsgraph()->Float64Constant(4503599627370496.0E0); in Float64Ceil() local
2466 graph()->NewNode(machine()->Float64LessThanOrEqual(), two_52, input); in Float64Ceil()
2477 graph()->NewNode(machine()->Float64Add(), two_52, input), two_52); in Float64Ceil()
2517 graph()->NewNode(machine()->Float64Add(), two_52, temp1), two_52); in Float64Ceil()
2547 Node* const two_52 = jsgraph()->Float64Constant(4503599627370496.0E0); in Float64Floor() local
2592 graph()->NewNode(machine()->Float64LessThanOrEqual(), two_52, input); in Float64Floor()
2603 graph()->NewNode(machine()->Float64Add(), two_52, input), two_52); in Float64Floor()
2643 graph()->NewNode(machine()->Float64Add(), two_52, temp1), two_52); in Float64Floor()
2687 Node* const two_52 = jsgraph()->Float64Constant(4503599627370496.0E0); in Float64Trunc() local
2730 graph()->NewNode(machine()->Float64LessThanOrEqual(), two_52, input); in Float64Trunc()
[all …]
/external/v8/test/cctest/compiler/
Dtest-run-machops.cc5651 static double two_52 = two_30 * (1 << 22); // 2^52 is a precision boundary. variable
5694 two_52,
5695 two_52 + 0.1,
5696 two_52 + 0.5,
5697 two_52 + 0.5,
5698 two_52 + 0.7,
5699 two_52 + 0.7,
5700 two_52 - 1,
5701 two_52 - 1 + 0.1,
5702 two_52 - 1 + 0.5,
[all …]