Home
last modified time | relevance | path

Searched refs:floor (Results 1 – 25 of 639) sorted by relevance

12345678910>>...26

/external/chromium_org/v8/test/mjsunit/
Dmath-floor-of-div-nosudiv.js54 assertEquals(Math.floor(div(k, 1)), Math.floor(k / 1));
55 assertEquals(Math.floor(div(k, -1)), Math.floor(k / -1));
56 assertEquals(Math.floor(div(k, 2)), Math.floor(k / 2));
57 assertEquals(Math.floor(div(k, -2)), Math.floor(k / -2));
58 assertEquals(Math.floor(div(k, 3)), Math.floor(k / 3));
59 assertEquals(Math.floor(div(k, -3)), Math.floor(k / -3));
60 assertEquals(Math.floor(div(k, 4)), Math.floor(k / 4));
61 assertEquals(Math.floor(div(k, -4)), Math.floor(k / -4));
62 assertEquals(Math.floor(div(k, 5)), Math.floor(k / 5));
63 assertEquals(Math.floor(div(k, -5)), Math.floor(k / -5));
[all …]
Dmath-floor-of-div.js54 assertEquals(Math.floor(div(k, 1)), Math.floor(k / 1));
55 assertEquals(Math.floor(div(k, -1)), Math.floor(k / -1));
56 assertEquals(Math.floor(div(k, 2)), Math.floor(k / 2));
57 assertEquals(Math.floor(div(k, -2)), Math.floor(k / -2));
58 assertEquals(Math.floor(div(k, 3)), Math.floor(k / 3));
59 assertEquals(Math.floor(div(k, -3)), Math.floor(k / -3));
60 assertEquals(Math.floor(div(k, 4)), Math.floor(k / 4));
61 assertEquals(Math.floor(div(k, -4)), Math.floor(k / -4));
62 assertEquals(Math.floor(div(k, 5)), Math.floor(k / 5));
63 assertEquals(Math.floor(div(k, -5)), Math.floor(k / -5));
[all …]
Dconstant-folding-2.js185 assertEquals(1, Math.floor(1.5));
186 assertEquals(-2, Math.floor(-1.5));
187 assertEquals("Infinity", String(Math.floor(Infinity)));
188 assertEquals("-Infinity", String(Math.floor(-Infinity)));
189 assertEquals("Infinity", String(1 / Math.floor(0.0)));
190 assertEquals("-Infinity", String(1 / Math.floor(-0.0)));
191 assertEquals("NaN", String(Math.floor(NaN)));
192 assertEquals(Math.pow(2, 52) + 1, Math.floor(Math.pow(2, 52) + 1));
Dstring-index.js182 var index = Math.floor(i / 50);
192 var index = Math.floor(i / 50);
200 var keys = [0, Math.floor(2) * 0.5];
203 var index = Math.floor(i / 50);
214 var index = Math.floor(i / 50);
225 var index = Math.floor(i / 50);
236 var index = Math.floor(i / 50);
246 var index = Math.floor(i / 50);
Dmath-floor-negative.js33 return Math.floor(-100000000000.5) / 10;
38 return Math.floor(-100.2);
44 return Math.floor(-2147483648.1) / 10;
/external/icu4c/test/testdata/
Ddcfmtest.txt32 # floor
72 format 0.00 floor "32.045" "32.04"
81 format 0.00 floor "-32.045" "-32.05"
90 format @@@ floor "1235.00" "1230"
99 format @@@ floor "-1235.00" "-1240"
108 format 0.000E0 floor "12345" "1.234E4"
143 format 0.0 floor "-1.00" "-1.0"
150 format 0.0 floor "-0.99" "-1.0"
157 format 0.0 floor "-0.98" "-1.0"
164 format 0.0 floor "-0.97" "-1.0"
[all …]
/external/chromium-trace/trace-viewer/src/base/
Dcolor.js9 this.r = Math.floor(opt_r) || 0;
10 this.g = Math.floor(opt_g) || 0;
11 this.b = Math.floor(opt_b) || 0;
77 Math.min(255, this.r + Math.floor(this.r * k)),
78 Math.min(255, this.g + Math.floor(this.g * k)),
79 Math.min(255, this.b + Math.floor(this.b * k)));
87 Math.min(255, this.r - Math.floor(this.r * k)),
88 Math.min(255, this.g - Math.floor(this.g * k)),
89 Math.min(255, this.b - Math.floor(this.b * k)));
/external/mesa3d/src/glsl/builtins/ir/
Dfloor.ir1 ((function floor
5 ((return (expression float floor (var_ref arg0)))))
10 ((return (expression vec2 floor (var_ref arg0)))))
15 ((return (expression vec3 floor (var_ref arg0)))))
20 ((return (expression vec4 floor (var_ref arg0)))))
/external/chromium_org/third_party/mesa/src/src/glsl/builtins/ir/
Dfloor.ir1 ((function floor
5 ((return (expression float floor (var_ref arg0)))))
10 ((return (expression vec2 floor (var_ref arg0)))))
15 ((return (expression vec3 floor (var_ref arg0)))))
20 ((return (expression vec4 floor (var_ref arg0)))))
/external/chromium_org/third_party/WebKit/Source/platform/
DLayoutUnitTest.cpp234 ASSERT_EQ(LayoutUnit(0).floor(), 0); in TEST()
235 ASSERT_EQ(LayoutUnit(0.1).floor(), 0); in TEST()
236 ASSERT_EQ(LayoutUnit(0.5).floor(), 0); in TEST()
237 ASSERT_EQ(LayoutUnit(0.9).floor(), 0); in TEST()
238 ASSERT_EQ(LayoutUnit(1.0).floor(), 1); in TEST()
239 ASSERT_EQ(LayoutUnit(1.1).floor(), 1); in TEST()
241 ASSERT_EQ(LayoutUnit(-0.1).floor(), -1); in TEST()
242 ASSERT_EQ(LayoutUnit(-0.5).floor(), -1); in TEST()
243 ASSERT_EQ(LayoutUnit(-0.9).floor(), -1); in TEST()
244 ASSERT_EQ(LayoutUnit(-1.0).floor(), -1); in TEST()
[all …]
/external/v8/test/mjsunit/
Dstring-index.js182 var index = Math.floor(i / 50);
192 var index = Math.floor(i / 50);
200 var keys = [0, Math.floor(2) * 0.5];
203 var index = Math.floor(i / 50);
214 var index = Math.floor(i / 50);
225 var index = Math.floor(i / 50);
236 var index = Math.floor(i / 50);
246 var index = Math.floor(i / 50);
/external/libvorbis/doc/
D07-floor1.tex8 Vorbis floor type one uses a piecewise straight-line representation to
21 line segments. Synthesis constructs a floor curve using iterative
28 full range of the spectral floor to be computed.
35 \item floor computation produces two new line segments, one running from
42 the codec setup header at floor 1 initialization time. Computation
51 For the below example, we assume a floor setup with an [n] of 128.
56 -45, 0, -25, -10, 30 and -10. We compute the floor in the following
61 \captionof{figure}{graph of example floor}
69 \captionof{figure}{graph of example floor}
74 pattern should be clear; we complete the floor computation as follows:
[all …]
D04-codec.tex103 (placeholders in Vorbis I), floor configurations, residue
135 Vorbis uses two floor types; header decode is handed to the decode
140 \item For each \varname{[i]} of \varname{[vorbis_floor_count]} floor numbers:
142 \item read the floor type: vector \varname{[vorbis_floor_types]} element \varname{[i]} =
144 \item If the floor type is zero, decode the floor
147 configuration in slot \varname{[i]} of the floor configuration array \varname{[vorbis_floor_configu…
148 \item If the floor type is one,
149 decode the floor configuration as defined in \xref{vorbis:spec:floor1}; save this configuration in …
150 \item If the the floor type is greater than one, this stream is undecodable; ERROR CONDITION
229 …map \varname{[j]} of \varname{[vorbis_mapping_submaps]} submaps, read the floor and residue number…
[all …]
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/
DTimelineFrameOverview.js163 … for (var lastFrame = Math.min(Math.floor((barNumber + 1) * framesPerBar), frames.length);
200 var medianFrameLength = durations.qselect(Math.floor(durations.length / 2));
222 this._actualPadding = Math.min(Math.floor(this._actualOuterBarWidth / 3), maxPadding);
262 var y = height - Math.floor(1.0 / fps * scale) - 0.5;
299 var x = Math.floor(left) + 0.5;
300 width = Math.floor(width);
309 var y = Math.floor(bottomOffset - height) + 0.5;
315 this._context.fillRect(0, y, this._maxInnerBarWidth, Math.floor(height));
326 var y0 = Math.floor(windowHeight - frame.duration * scale) + 0.5;
349 var firstBar = Math.floor(Math.max(leftOffset, 0) / this._actualOuterBarWidth);
[all …]
/external/chromium_org/third_party/icu/source/test/testdata/
Ddcfmtest.txt33 # floor
72 format 0.00 floor "32.045" "32.04"
81 format 0.00 floor "-32.045" "-32.05"
90 format @@@ floor "1235.00" "1230"
99 format @@@ floor "-1235.00" "-1240"
108 format 0.000E0 floor "12345" "1.234E4"
/external/replicaisland/tools/
DExtractPoints.js119 var column = Math.floor(tile.centerX / tileSizeX);
120 var row = Math.floor(tile.centerY / tileSizeY);
128 var tileIndex = Math.floor(row * tilesPerRow + column);
176 outputString += x + ":" + Math.floor(edge.startX) + "," +
177 Math.floor(edge.startY) + ":" + Math.floor(edge.endX) + "," +
178 Math.floor(edge.endY) + ":" + edge.normalX + "," + edge.normalY +
221 var offsetX = Math.floor(x % tilesPerRow) * tileSizeX;
222 var offsetY = Math.floor(x / tilesPerRow) * tileSizeY;
/external/chromium/chrome/browser/resources/shared/js/cr/ui/
Dgrid.js91 return width ? Math.floor(this.clientWidth / width) : 0;
119 return Math.floor(index / this.columns) * this.getItemHeight_();
129 return Math.floor(index / this.columns);
219 var afterRows = Math.floor((this.dataModel.length - 1) / columns) -
220 Math.floor((lastIndex - 1) / columns);
/external/chromium_org/v8/test/webkit/
Dmath-expected.txt95 PASS Math.floor(NaN) is NaN
96 PASS Math.floor(0) is 0
97 PASS Math.floor(-0) is -0
98 PASS Math.floor(0.5) is 0
99 PASS Math.floor(1) is 1
100 PASS Math.floor(-1) is -1
101 PASS Math.floor(1.1) is 1
102 PASS Math.floor(-1.1) is -2
103 PASS Math.floor(Number.MIN_VALUE) is 0
104 PASS Math.floor(-Number.MIN_VALUE) is -1
[all …]
/external/jmonkeyengine/engine/src/test/jme3test/bullet/
DTestBrickWall.java157 Geometry floor = new Geometry("floor", floorBox); in initFloor() local
158 floor.setMaterial(mat3); in initFloor()
159 floor.setShadowMode(ShadowMode.Receive); in initFloor()
160 floor.setLocalTranslation(0, -0.1f, 0); in initFloor()
161floor.addControl(new RigidBodyControl(new BoxCollisionShape(new Vector3f(10f, 0.1f, 5f)), 0)); in initFloor()
162 this.rootNode.attachChild(floor); in initFloor()
163 this.getPhysicsSpace().add(floor); in initFloor()
DTestBrickTower.java184 Geometry floor = new Geometry("floor", floorBox); in initFloor() local
185 floor.setMaterial(mat3); in initFloor()
186 floor.setShadowMode(ShadowMode.Receive); in initFloor()
187 floor.setLocalTranslation(0, 0, 0); in initFloor()
188 floor.addControl(new RigidBodyControl(0)); in initFloor()
189 this.rootNode.attachChild(floor); in initFloor()
190 this.getPhysicsSpace().add(floor); in initFloor()
/external/chromium_org/webkit/data/test_shell/sort/
Dsort.js66 var r = Math.floor(Math.random() * this.numbers.length);
94 Math.floor((elapsed - this.processing_total) / this.num_iterations);
226 var step_avg = Math.floor(total / this.num_iterations);
228 var overhead_avg = Math.floor(overhead / this.num_iterations);
229 var processing_avg = Math.floor(this.processing_total / this.num_iterations);
245 var r = Math.floor(Math.random() * this.size);
261 var width = Math.max(1,Math.floor((graph.clientWidth-10) / len));
270 var height = Math.max(1, Math.floor(val * height_multiple));
/external/chromium_org/ui/webui/resources/js/cr/ui/
Dgrid.js106 var columns = Math.floor(this.clientWidthWithoutScrollbar_ / width);
114 return Math.floor(this.clientWidthWithScrollbar_ / width);
187 return Math.floor(index / this.columns) * this.getDefaultItemHeight_();
197 return Math.floor(index / this.columns);
307 var afterRows = Math.floor((this.dataModel.length - 1) / columns) -
308 Math.floor((lastIndex - 1) / columns);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DSimpleBigDecimal.java154 public BigInteger floor() in floor() method in SimpleBigDecimal
162 return add(oneHalf.adjustScale(scale)).floor(); in round()
167 return floor().intValue(); in intValue()
172 return floor().longValue(); in longValue()
197 BigInteger floorBigInt = floor(); in toString()
/external/llvm/test/CodeGen/PowerPC/
Dvec_rounding.ll9 declare <2 x double> @llvm.floor.v2f64(<2 x double> %p)
12 %t = call <2 x double> @llvm.floor.v2f64(<2 x double> %p)
19 declare <4 x double> @llvm.floor.v4f64(<4 x double> %p)
22 %t = call <4 x double> @llvm.floor.v4f64(<4 x double> %p)
98 declare <4 x float> @llvm.floor.v4f32(<4 x float> %p)
101 %t = call <4 x float> @llvm.floor.v4f32(<4 x float> %p)
107 declare <8 x float> @llvm.floor.v8f32(<8 x float> %p)
110 %t = call <8 x float> @llvm.floor.v8f32(<8 x float> %p)
/external/v8/test/mjsunit/compiler/
Dmath-floor-global.js31 var flo = Math.floor;
60 return 1 / Math.floor(x);
151 var ret = Math.floor(n);
153 ret += Math.floor(n);

12345678910>>...26