Searched defs:trunc (Results 1 - 25 of 42) sorted by relevance

12

/external/iproute2/tc/
H A Dm_sample.c24 fprintf(stderr, "\tSAMPLE_PARAMS := rate RATE group GROUP [trunc SIZE] [SAMPLE_INDEX]\n");
48 __u32 trunc; local
83 } else if (matches(*argv, "trunc") == 0) {
85 if (get_unsigned(&trunc, *argv, 10) != 0) {
132 addattr32(n, MAX_MSG, TCA_SAMPLE_TRUNC_SIZE, trunc);
/external/toybox/toys/pending/
H A Ddd.c110 int trunc = O_TRUNC, conv = 0; local
161 if (conv&C_NOTRUNC) trunc = 0;
168 O_WRONLY|O_CREAT|(trunc*!TT.out.offset), 0666);
192 if (trunc && ftruncate(TT.out.fd, bs)) perror_exit("ftruncate");
/external/ltp/testcases/kernel/fs/doio/
H A Dwrite_log.c105 * The trunc flag is used to indicate whether or not the logfile should
114 int wlog_open(struct wlog_file *wfile, int trunc, int mode) argument
118 if (trunc)
119 trunc = O_TRUNC;
127 oflags = O_WRONLY | O_APPEND | O_CREAT | trunc;
/external/fsck_msdos/
H A Dfat.c434 tryclear(struct bootblock *boot, struct fatEntry *fat, cl_t head, cl_t *trunc) argument
440 *trunc = CLUST_EOF;
/external/icu/icu4c/source/samples/uresb/
H A Duresb.c58 static UBool trunc = FALSE; variable
137 trunc = TRUE;
144 trunc = FALSE;
240 if(trunc && len > truncsize) {
275 if(trunc && len > truncsize) {
/external/skia/samplecode/
H A DSampleColorFilter.cpp29 int trunc = x >> 3; local
39 return trunc + bias;
72 SkDebugf("--- %3d : trunc=%3d (%2d) round:%3d (%2d) \n"/*new:%d (%2d)\n"*/, i,
83 SkDebugf("--- trunc: %d %d round: %d %d new: %d %d\n", e0, ae0, e1, ae1, e2, ae2);
/external/skqp/samplecode/
H A DSampleColorFilter.cpp29 int trunc = x >> 3; local
39 return trunc + bias;
72 SkDebugf("--- %3d : trunc=%3d (%2d) round:%3d (%2d) \n"/*new:%d (%2d)\n"*/, i,
83 SkDebugf("--- trunc: %d %d round: %d %d new: %d %d\n", e0, ae0, e1, ae1, e2, ae2);
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
H A DAPSInt.h71 APSInt trunc(uint32_t width) const { function in class:llvm::APSInt
72 return APSInt(APInt::trunc(width), IsUnsigned);
/external/llvm/include/llvm/ADT/
H A DAPSInt.h81 APSInt LLVM_ATTRIBUTE_UNUSED_RESULT trunc(uint32_t width) const { function in class:llvm::APSInt
82 return APSInt(APInt::trunc(width), IsUnsigned);
/external/apache-commons-math/src/main/java/org/apache/commons/math/dfp/
H A DDfp.java149 private static final String TRUNC_TRAP = "trunc";
917 return trunc(DfpField.RoundingMode.ROUND_HALF_EVEN);
925 return trunc(DfpField.RoundingMode.ROUND_FLOOR);
933 return trunc(DfpField.RoundingMode.ROUND_CEIL);
957 protected Dfp trunc(final DfpField.RoundingMode rmode) { method in class:Dfp
/external/libcxx/src/
H A Dios.cpp123 const ios_base::openmode ios_base::trunc; member in class:ios_base
/external/mesa3d/src/compiler/glsl/
H A Dir_builder.cpp249 ir_expression *trunc(operand a) function in namespace:ir_builder
/external/python/cpython2/Lib/test/
H A Dtest_os.py210 def trunc(x): return int(x) function in function:StatAttributeTests.test_stat_attributes
212 def trunc(x): return x function in function:StatAttributeTests.test_stat_attributes
213 self.assertEqual(trunc(getattr(result, attr)),
/external/clang/lib/Headers/
H A Dtgmath.h1208 // trunc
1216 __tg_trunc(double __x) {return trunc(__x);}
1222 #undef trunc macro
1223 #define trunc(__x) __tg_trunc(__tg_promote1((__x))(__x)) macro
/external/dnsmasq/src/
H A Drfc1035.c1146 int nxdomain = 0, auth = 1, trunc = 0; local
1218 if (add_resource_record(header, limit, &trunc, nameoffset, &ansp,
1257 if (add_resource_record(header, limit, &trunc, nameoffset, &ansp,
1271 add_resource_record(header, limit, &trunc, nameoffset, &ansp,
1304 if (add_resource_record(header, limit, &trunc, nameoffset, &ansp,
1345 if (add_resource_record(header, limit, &trunc, nameoffset, &ansp,
1371 if (add_resource_record(header, limit, &trunc, nameoffset, &ansp,
1413 if (add_resource_record(header, limit, &trunc, nameoffset, &ansp,
1450 if (add_resource_record(header, limit, &trunc, nameoffset, &ansp,
1471 if (add_resource_record(header, limit, &trunc, nameoffse
[all...]
H A Drfc2131.c1422 unsigned char trunc = option_len(start); local
1425 for (daemon->namebuff[0]= 0, i = 0; i <= trunc - INADDRSZ; i += INADDRSZ)
1433 if (trunc > 13)
1434 trunc = 13;
1435 print_mac(daemon->namebuff, option_ptr(start, 0), trunc);
1441 trunc == 0 ? "" : " ",
1442 trunc == 0 ? "" : daemon->namebuff,
1443 trunc == option_len(start) ? "" : "...");
/external/libcxx/test/std/depr/depr.c.headers/
H A Dmath_h.pass.cpp98 Ambiguous trunc(Ambiguous){ return Ambiguous(); } function
1441 static_assert((std::is_same<decltype(trunc((float)0)), float>::value), "");
1442 static_assert((std::is_same<decltype(trunc((bool)0)), double>::value), "");
1443 static_assert((std::is_same<decltype(trunc((unsigned short)0)), double>::value), "");
1444 static_assert((std::is_same<decltype(trunc((int)0)), double>::value), "");
1445 static_assert((std::is_same<decltype(trunc((unsigned int)0)), double>::value), "");
1446 static_assert((std::is_same<decltype(trunc((long)0)), double>::value), "");
1447 static_assert((std::is_same<decltype(trunc((unsigned long)0)), double>::value), "");
1448 static_assert((std::is_same<decltype(trunc((long long)0)), double>::value), "");
1449 static_assert((std::is_same<decltype(trunc((unsigne
[all...]
/external/libcxx/test/std/numerics/c.math/
H A Dcmath.pass.cpp101 Ambiguous trunc(Ambiguous){ return Ambiguous(); } function
1498 static_assert((std::is_same<decltype(std::trunc((float)0)), float>::value), "");
1499 static_assert((std::is_same<decltype(std::trunc((bool)0)), double>::value), "");
1500 static_assert((std::is_same<decltype(std::trunc((unsigned short)0)), double>::value), "");
1501 static_assert((std::is_same<decltype(std::trunc((int)0)), double>::value), "");
1502 static_assert((std::is_same<decltype(std::trunc((unsigned int)0)), double>::value), "");
1503 static_assert((std::is_same<decltype(std::trunc((long)0)), double>::value), "");
1504 static_assert((std::is_same<decltype(std::trunc((unsigned long)0)), double>::value), "");
1505 static_assert((std::is_same<decltype(std::trunc((long long)0)), double>::value), "");
1506 static_assert((std::is_same<decltype(std::trunc((unsigne
[all...]
/external/python/cpython3/Modules/
H A Dmathmodule.c1530 PyObject *trunc, *result; local
1537 trunc = _PyObject_LookupSpecial(number, &PyId___trunc__);
1538 if (trunc == NULL) {
1545 result = PyObject_CallFunctionObjArgs(trunc, NULL);
1546 Py_DECREF(trunc);
1551 "trunc(x:Real) -> Integral\n"
2114 {"trunc", math_trunc, METH_O, math_trunc_doc},
/external/skia/tests/
H A DMathTest.cpp353 int trunc = (int)floorf(s); local
359 REPORTER_ASSERT(reporter, itrunc == trunc);
/external/skqp/tests/
H A DMathTest.cpp353 int trunc = (int)floorf(s); local
359 REPORTER_ASSERT(reporter, itrunc == trunc);
/external/eigen/unsupported/test/mpreal/
H A Dmpreal.h462 friend const mpreal trunc(const mpreal& v);
2411 /* R = rem(X,Y) if Y != 0, returns X - n * Y where n = trunc(X/Y). */
2530 inline const mpreal trunc(const mpreal& v) function in namespace:mpfr
/external/llvm/lib/Support/
H A DAPInt.cpp938 APInt APInt::trunc(unsigned width) const { function in class:APInt
1025 return trunc(width);
1033 return trunc(width);
/external/swiftshader/third_party/llvm-subzero/lib/Support/
H A DAPInt.cpp916 APInt APInt::trunc(unsigned width) const { function in class:APInt
1003 return trunc(width);
1011 return trunc(width);
/external/v8/src/compiler/
H A Djs-builtin-reducer.cc1395 // ES6 section 20.2.2.35 Math.trunc ( x )
1399 // Math.trunc(a:plain-primitive) -> NumberTrunc(ToNumber(a))
1428 Node* trunc = graph()->NewNode(simplified()->NumberTrunc(), input); local
1429 Node* diff = graph()->NewNode(simplified()->NumberSubtract(), input, trunc);

Completed in 964 milliseconds

12