Searched refs:trunc (Results 1 - 25 of 227) sorted by relevance

12345678910

/external/v8/test/mjsunit/es6/
H A Dmath-trunc.js28 assertEquals("Infinity", String(1/Math.trunc(0)));
29 assertEquals("-Infinity", String(1/Math.trunc(-0)));
30 assertEquals("Infinity", String(1/Math.trunc(Math.PI/4)));
31 assertEquals("-Infinity", String(1/Math.trunc(-Math.sqrt(2)/2)));
32 assertEquals(100, Math.trunc(100));
33 assertEquals(-199, Math.trunc(-199));
34 assertEquals(100, Math.trunc(100.1));
35 assertTrue(isNaN(Math.trunc("abc")));
36 assertTrue(isNaN(Math.trunc({})));
37 assertEquals(0, Math.trunc([]));
[all...]
/external/llvm/unittests/ADT/
H A DAPSIntTest.cpp108 EXPECT_TRUE(APSInt::compareValues(S(7).trunc(32), S(8)) < 0);
109 EXPECT_TRUE(APSInt::compareValues(S(8).trunc(32), S(7)) > 0);
110 EXPECT_TRUE(APSInt::compareValues(S(7).trunc(32), S(7)) == 0);
111 EXPECT_TRUE(APSInt::compareValues(S(-7).trunc(32), S(8)) < 0);
112 EXPECT_TRUE(APSInt::compareValues(S(8).trunc(32), S(-7)) > 0);
113 EXPECT_TRUE(APSInt::compareValues(S(-7).trunc(32), S(-7)) == 0);
114 EXPECT_TRUE(APSInt::compareValues(S(-7).trunc(32), S(-8)) > 0);
115 EXPECT_TRUE(APSInt::compareValues(S(-8).trunc(32), S(-7)) < 0);
116 EXPECT_TRUE(APSInt::compareValues(S(-7).trunc(32), S(-7)) == 0);
117 EXPECT_TRUE(APSInt::compareValues(S(7), S(8).trunc(3
[all...]
/external/tcpdump/
H A Dprint-ip6opts.c86 goto trunc;
89 goto trunc;
97 printf(", padn: trunc");
98 goto trunc;
104 printf(", ui: trunc");
105 goto trunc;
111 printf(", altcoa: trunc");
112 goto trunc;
118 printf(", auth: trunc");
119 goto trunc;
[all...]
H A Dprint-mpcp.c155 goto trunc;
174 goto trunc;
185 goto trunc;
195 goto trunc;
202 goto trunc;
209 goto trunc;
220 goto trunc;
234 goto trunc;
243 goto trunc;
255 goto trunc;
[all...]
H A Dprint-cdp.c102 goto trunc;
111 goto trunc;
118 goto trunc;
140 goto trunc;
168 goto trunc;
211 goto trunc;
234 trunc:
267 goto trunc;
274 goto trunc;
287 goto trunc;
[all...]
H A Dprint-dtp.c55 goto trunc;
60 goto trunc;
78 goto trunc;
114 trunc:
H A Dprint-rt6.c82 goto trunc;
87 goto trunc;
97 goto trunc;
101 trunc:
H A Dprint-dvmrp.c98 goto trunc;
106 goto trunc;
117 goto trunc;
136 goto trunc;
142 goto trunc;
148 goto trunc;
154 goto trunc;
163 trunc:
221 trunc:
254 trunc
[all...]
H A Dprint-gre.c133 goto trunc;
140 goto trunc;
147 goto trunc;
155 goto trunc;
163 goto trunc;
176 goto trunc;
189 goto trunc;
236 trunc:
255 goto trunc;
265 goto trunc;
[all...]
H A Dprint-ripng.c69 int trunc; local
93 trunc = ((i / sizeof(*ni)) * sizeof(*ni) != i);
109 trunc = ((i / sizeof(*ni)) * sizeof(*ni) != i);
118 if (trunc)
H A Dprint-udld.c92 goto trunc;
97 goto trunc;
123 goto trunc;
164 trunc:
H A Dprint-msdp.c48 goto trunc; /* not really truncated, but still not decodable */
57 goto trunc;
99 trunc:
H A Dprint-lwres.c204 goto trunc;
213 trunc:
224 goto trunc;
228 goto trunc;
231 trunc:
244 goto trunc;
247 goto trunc;
253 trunc:
293 trunc:
393 goto trunc;
[all...]
H A Dprint-mobility.c104 goto trunc;
107 goto trunc;
115 printf("(padn: trunc)");
116 goto trunc;
122 printf("(refresh: trunc)");
123 goto trunc;
131 printf("(altcoa: trunc)");
132 goto trunc;
138 printf("(ni: trunc)");
139 goto trunc;
[all...]
H A Dprint-domain.c119 trunc:
615 goto trunc;
618 goto trunc;
625 goto trunc;
629 goto trunc;
633 goto trunc;
639 goto trunc;
643 goto trunc;
647 goto trunc;
651 goto trunc;
[all...]
H A Dprint-bgp.c513 trunc:
566 trunc:
602 trunc:
661 trunc:
742 trunc:
780 trunc:
828 trunc:
933 trunc:
1042 goto trunc;
1045 trunc
[all...]
/external/libcxx/test/std/input.output/iostreams.base/ios.base/ios.types/ios_openmode/
H A Dopenmode.pass.cpp19 // static const openmode trunc;
31 assert(std::ios_base::trunc);
40 & std::ios_base::trunc) == 0
/external/libcxx/test/std/input.output/file.streams/fstreams/fstream.assign/
H A Dmove_assign.pass.cpp27 | std::ios_base::trunc);
39 | std::ios_base::trunc);
H A Dmember_swap.pass.cpp27 | std::ios_base::trunc);
29 | std::ios_base::trunc);
50 | std::ios_base::trunc);
52 | std::ios_base::trunc);
H A Dnonmember_swap.pass.cpp28 | std::ios_base::trunc);
30 | std::ios_base::trunc);
51 | std::ios_base::trunc);
53 | std::ios_base::trunc);
/external/libcxx/test/std/input.output/file.streams/fstreams/fstream.cons/
H A Dmove.pass.cpp27 | std::ios_base::trunc);
38 | std::ios_base::trunc);
H A Dpointer.pass.cpp26 | std::ios_base::trunc);
36 | std::ios_base::trunc);
H A Dstring.pass.cpp27 | std::ios_base::trunc);
38 | std::ios_base::trunc);
/external/libcxx/test/std/input.output/file.streams/fstreams/fstream.members/
H A Dopen_pointer.pass.cpp28 | std::ios_base::trunc);
41 | std::ios_base::trunc);
H A Dopen_string.pass.cpp28 | std::ios_base::trunc);
41 | std::ios_base::trunc);

Completed in 353 milliseconds

12345678910