Home
last modified time | relevance | path

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

12345678910>>...19

/external/v8/test/mjsunit/
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 …]
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 …]
Dconstant-folding-2.js196 assertEquals(1, Math.floor(1.5));
197 assertEquals(-2, Math.floor(-1.5));
198 assertEquals("Infinity", String(Math.floor(Infinity)));
199 assertEquals("-Infinity", String(Math.floor(-Infinity)));
200 assertEquals("Infinity", String(1 / Math.floor(0.0)));
201 assertEquals("-Infinity", String(1 / Math.floor(-0.0)));
202 assertEquals("NaN", String(Math.floor(NaN)));
203 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/icu/icu4c/source/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/llvm/test/CodeGen/R600/
Dcvt_flr_i32_f32.ll6 declare float @llvm.floor.f32(float) #1
14 %floor = call float @llvm.floor.f32(float %x) #1
15 %cvt = fptosi float %floor to i32
27 %floor = call float @llvm.floor.f32(float %fadd) #1
28 %cvt = fptosi float %floor to i32
40 %floor = call float @llvm.floor.f32(float %x.fabs) #1
41 %cvt = fptosi float %floor to i32
53 %floor = call float @llvm.floor.f32(float %x.fneg) #1
54 %cvt = fptosi float %floor to i32
67 %floor = call float @llvm.floor.f32(float %x.fabs.fneg) #1
[all …]
Dcvt_rpi_i32_f32.ll6 declare float @llvm.floor.f32(float) #1
14 %floor = call float @llvm.floor.f32(float %fadd) #1
15 %cvt = fptosi float %floor to i32
27 %floor = call float @llvm.floor.f32(float %fadd) #1
28 %cvt = fptosi float %floor to i32
43 %floor = call float @llvm.floor.f32(float %fadd) #1
44 %cvt = fptosi float %floor to i32
62 %floor = call float @llvm.floor.f32(float %fadd) #1
63 %cvt = fptosi float %floor to i32
76 %floor = call float @llvm.floor.f32(float %fadd) #1
[all …]
Dffloor.f64.ll6 declare double @llvm.floor.f64(double) nounwind readnone
7 declare <2 x double> @llvm.floor.v2f64(<2 x double>) nounwind readnone
8 declare <3 x double> @llvm.floor.v3f64(<3 x double>) nounwind readnone
9 declare <4 x double> @llvm.floor.v4f64(<4 x double>) nounwind readnone
10 declare <8 x double> @llvm.floor.v8f64(<8 x double>) nounwind readnone
11 declare <16 x double> @llvm.floor.v16f64(<16 x double>) nounwind readnone
23 %y = call double @llvm.floor.f64(double %x) nounwind readnone
39 %y = call double @llvm.floor.f64(double %neg) nounwind readnone
56 %y = call double @llvm.floor.f64(double %neg) nounwind readnone
65 %y = call <2 x double> @llvm.floor.v2f64(<2 x double> %x) nounwind readnone
[all …]
Dffloor.ll9 %tmp = call float @llvm.floor.f32(float %in) #0
19 %tmp = call <2 x float> @llvm.floor.v2f32(<2 x float> %in) #0
35 %tmp = call <4 x float> @llvm.floor.v4f32(<4 x float> %in) #0
41 declare float @llvm.floor.f32(float) #0
44 declare <2 x float> @llvm.floor.v2f32(<2 x float>) #0
47 declare <4 x float> @llvm.floor.v4f32(<4 x float>) #0
/external/libxml2/test/XPath/expr/
Dfunctions6 floor(0.1)
7 floor(-0.1)
8 floor(-0)
9 floor(0)
10 floor(5.2)
11 floor(-5.2)
Dfloats40 1 div floor(0.1)
41 1 div floor(-0.1)
42 1 div floor(-0)
43 1 div floor(0)
/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/apache-commons-math/src/main/java/org/apache/commons/math/distribution/
DAbstractIntegerDistribution.java70 return cumulativeProbability((int) FastMath.floor(x)); in cumulativeProbability()
93 if (FastMath.floor(x0) < x0) { in cumulativeProbability()
94 return cumulativeProbability(((int) FastMath.floor(x0)) + 1, in cumulativeProbability()
95 (int) FastMath.floor(x1)); // don't want to count mass below x0 in cumulativeProbability()
97 return cumulativeProbability((int) FastMath.floor(x0), in cumulativeProbability()
98 (int) FastMath.floor(x1)); in cumulativeProbability()
126 double fl = FastMath.floor(x); in probability()
/external/libxml2/result/XPath/expr/
Dfunctions23 Expression: floor(0.1)
27 Expression: floor(-0.1)
31 Expression: floor(-0)
35 Expression: floor(0)
39 Expression: floor(5.2)
43 Expression: floor(-5.2)
/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/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/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/llvm/test/CodeGen/SystemZ/
Dfp-round-01.ll60 ; Test floor for f32.
61 declare float @llvm.floor.f32(float %f)
66 %res = call float @llvm.floor.f32(float %f)
70 ; Test floor for f64.
71 declare double @llvm.floor.f64(double %f)
74 ; CHECK: brasl %r14, floor@PLT
76 %res = call double @llvm.floor.f64(double %f)
80 ; Test floor for f128: omitted for now because we cannot handle
/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/skia/experimental/SkV8Example/js/
Dsnow.js26 x: Math.floor(Math.random()*W),
27 y: Math.floor(Math.random()*H),
28 r: Math.floor(Math.random()*7+1),
41 p.x += Math.floor(Math.sin(angle)*5.0);
/external/llvm/test/MC/X86/
Dx86-windows-itanium-libcalls.ll5 declare dllimport double @floor(double)
9 %call = tail call double @floor(double %conv)
15 ; CHECK: floor
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DSimpleBigDecimal.java148 public BigInteger floor() in floor() method in SimpleBigDecimal
156 return add(oneHalf.adjustScale(scale)).floor(); in round()
161 return floor().intValue(); in intValue()
166 return floor().longValue(); in longValue()
191 BigInteger floorBigInt = floor(); in toString()

12345678910>>...19