Home
last modified time | relevance | path

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

12345678910>>...25

/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.js55 assertEquals(Math.floor(div(k, 1)), Math.floor(k / 1));
56 assertEquals(Math.floor(div(k, -1)), Math.floor(k / -1));
57 assertEquals(Math.floor(div(k, 2)), Math.floor(k / 2));
58 assertEquals(Math.floor(div(k, -2)), Math.floor(k / -2));
59 assertEquals(Math.floor(div(k, 3)), Math.floor(k / 3));
60 assertEquals(Math.floor(div(k, -3)), Math.floor(k / -3));
61 assertEquals(Math.floor(div(k, 4)), Math.floor(k / 4));
62 assertEquals(Math.floor(div(k, -4)), Math.floor(k / -4));
63 assertEquals(Math.floor(div(k, 5)), Math.floor(k / 5));
64 assertEquals(Math.floor(div(k, -5)), Math.floor(k / -5));
[all …]
Dstring-index.js184 var index = Math.floor(i / 50);
194 var index = Math.floor(i / 50);
202 var keys = [0, Math.floor(2) * 0.5];
205 var index = Math.floor(i / 50);
216 var index = Math.floor(i / 50);
227 var index = Math.floor(i / 50);
238 var index = Math.floor(i / 50);
248 var index = Math.floor(i / 50);
256 var num = Math.floor(4) * 0.5;
262 var index = Math.floor(i / 50);
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));
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/AMDGPU/
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/jemalloc/test/unit/
Drun_quantize.c60 size_t lrun_size, run_size, floor, ceil; in TEST_BEGIN() local
67 floor = run_quantize_floor(run_size); in TEST_BEGIN()
70 assert_zu_eq(run_size, floor, in TEST_BEGIN()
88 run_size_prev = floor; in TEST_BEGIN()
115 size_t run_size, floor, ceil; in TEST_BEGIN() local
118 floor = run_quantize_floor(run_size); in TEST_BEGIN()
121 assert_zu_le(floor, run_size, in TEST_BEGIN()
123 floor, run_size, ceil); in TEST_BEGIN()
126 floor, run_size, ceil); in TEST_BEGIN()
128 assert_zu_le(floor_prev, floor, "Floor should be monotonic " in TEST_BEGIN()
[all …]
/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/opencv3/3rdparty/openexr/IlmImf/
DImfRational.cpp55 return x - floor (x + e); in frac()
79 return floor (1 / x + e); in denom()
84 floor (1 / x + e) * denom (frac (1 / x, e), e / square (x)); in denom()
121 n = sign * (int) floor (x * d + 0.5); in Rational()
/external/chromium-trace/catapult/third_party/pipeline/pipeline/ui/
Dcommon.js52 var updatedDays = Math.floor(updatedDiff / 86400000.0);
54 var updatedHours = Math.floor(updatedDiff / 3600000.0);
56 var updatedMinutes = Math.floor(updatedDiff / 60000.0);
58 var updatedSeconds = Math.floor(updatedDiff / 1000.0);
60 var updatedMs = Math.floor(updatedDiff / 1.0);
/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/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DNavigableSetNavigationTester.java86 assertNull(navigableSet.floor(samples.e0)); in testEmptySetNearby()
107 assertEquals(a, navigableSet.floor(samples.e0)); in testSingletonSetNearby()
147 assertEquals(a, navigableSet.floor(a)); in testFloorHole()
148 assertEquals(a, navigableSet.floor(b)); in testFloorHole()
149 assertEquals(c, navigableSet.floor(c)); in testFloorHole()
182 assertEquals(a, navigableSet.floor(a)); in testFloor()
183 assertEquals(b, navigableSet.floor(b)); in testFloor()
184 assertEquals(c, navigableSet.floor(c)); in testFloor()
/external/v8/test/mjsunit/asm/
Dmath-floor.js8 var floor = stdlib.Math.floor;
13 return floor(a);
/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

12345678910>>...25