/freebsd/contrib/ntp/sntp/libopts/ |
H A D | intprops.h | 124 /* Range overflow checks. 128 arithmetic overflow. They do not rely on undefined or 138 printf ("multiply would overflow"); 158 /* Return 1 if A + B would overflow in [MIN,MAX] arithmetic. 165 /* Return 1 if A - B would overflow in [MIN,MAX] arithmetic. 172 /* Return 1 if - A would overflow in [MIN,MAX] arithmetic. 179 /* Return 1 if A * B would overflow in [MIN,MAX] arithmetic. 196 /* Return 1 if A / B would overflow in [MIN,MAX] arithmetic. 201 /* Return 1 if A % B would overflow in [MIN,MAX] arithmetic. 203 Mathematically, % should never overflow, but on x86-like hosts [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | APFixedPoint.cpp | 33 bool *Overflow) const { in convert() 36 if (Overflow) in convert() 37 *Overflow = false; in convert() 51 // Found overflow in the bits above the sign in convert() 54 else if (Overflow) in convert() 55 *Overflow = true; in convert() 61 // Found negative overflow for unsigned result in convert() 64 else if (Overflow) in convert() 65 *Overflow = true; in convert() 188 bool *Overflow) const { in add() [all …]
|
H A D | SlowDynamicAPInt.cpp | 155 /// Bring a and b to have the same width and then call op(a, b, overflow). 156 /// If the overflow bit becomes set, resize a and b to double the width and 157 /// call op(a, b, overflow), returning its result. The operation with double 158 /// widths should not also overflow. 161 function_ref<APInt(const APInt &, const APInt &, bool &Overflow)> Op) { in runOpWithExpandOnOverflow() 162 bool Overflow; in runOpWithExpandOnOverflow() local 164 APInt Ret = Op(A.sext(Width), B.sext(Width), Overflow); in runOpWithExpandOnOverflow() 165 if (!Overflow) in runOpWithExpandOnOverflow() 169 Ret = Op(A.sext(Width), B.sext(Width), Overflow); in runOpWithExpandOnOverflow() 170 assert(!Overflow && "double width should be sufficient to avoid overflow!"); in runOpWithExpandOnOverflow() [all …]
|
/freebsd/contrib/one-true-awk/testdir/ |
H A D | T.overflow | 1 echo T.overflow: test some overflow conditions 11 cmp -s foo1 foo2 || echo 'BAD: T.overflow record 1' 19 cmp -s foo1 foo2 || echo 'BAD: T.overflow abcdef' 31 cmp -s foo1 foo2 || echo 'BAD: T.overflow -mr -mf set $1' 44 cmp -s foo1 foo2 || echo 'BAD: T.overflow -mr -mf NF' 53 test -r core && echo 1>&2 "BAD: T.overflow too long char class dropped core" 64 cmp -s foo1 foo2 || echo 'BAD: T.overflow huge sprintfs' 78 cmp -s foo1 foo2 || echo 'BAD: T.overflow big array' 82 grep "out of range field" foo >/dev/null || echo 1>&2 "BAD: T.overflow \$400000" 86 ls /tmp/awktestfoo* | grep '1000' >/dev/null || echo 1>&2 "BAD: T.overflow openfiles"
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | APFixedPoint.h | 180 // Convert this number to match the semantics provided. If the overflow 182 // operation results in an overflow. 184 bool *Overflow = nullptr) const; 189 // explanation of the Overflow parameter. 190 APFixedPoint add(const APFixedPoint &Other, bool *Overflow = nullptr) const; 191 APFixedPoint sub(const APFixedPoint &Other, bool *Overflow = nullptr) const; 192 APFixedPoint mul(const APFixedPoint &Other, bool *Overflow = nullptr) const; 193 APFixedPoint div(const APFixedPoint &Other, bool *Overflow = nullptr) const; 198 APFixedPoint shl(unsigned Amt, bool *Overflow = nullptr) const; 199 APFixedPoint shr(unsigned Amt, bool *Overflow = nullptr) const { [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/ |
H A D | ubsan_checks.inc | 23 UBSAN_CHECK(NullptrWithOffset, "nullptr-with-offset", "pointer-overflow") 25 "pointer-overflow") 27 "pointer-overflow") 28 UBSAN_CHECK(PointerOverflow, "pointer-overflow", "pointer-overflow") 32 UBSAN_CHECK(SignedIntegerOverflow, "signed-integer-overflow", 33 "signed-integer-overflow") 34 UBSAN_CHECK(UnsignedIntegerOverflow, "unsigned-integer-overflow", 35 "unsigned-integer-overflow") 59 UBSAN_CHECK(FloatCastOverflow, "float-cast-overflow", "float-cast-overflow")
|
/freebsd/contrib/diff/lib/ |
H A D | c-stack.c | 1 /* Stack overflow handling. 26 the overflow until the program uses the array, and this module may 27 incorrectly report a program error instead of a stack overflow. 104 or stack overflow occurs. */ 107 /* Translated messages for program errors and stack overflow. Do not 114 appears to have been a stack overflow, or with a core dump 173 /* Clear SIGNO if it seems to have been a stack overflow. */ in segv_handler() 177 /* We can't easily determine whether it is a stack overflow; so in segv_handler() 179 this segmentation violation is a stack overflow. */ in segv_handler() 184 overflow. */ in segv_handler() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | CheckedArithmetic.h | 32 bool Overflow; variable 33 llvm::APInt Out = (ALHS.*Op)(ARHS, Overflow); 34 if (Overflow) 43 /// \return Optional of sum if no signed overflow occurred, 52 /// \return Optional of sum if no signed overflow occurred, 61 /// \return Optional of product if no signed overflow occurred, 70 /// \return Optional of result if no signed overflow occurred, 81 /// \return Optional of sum if no unsigned overflow occurred, 90 /// \return Optional of product if no unsigned overflow occurred, 99 /// \return Optional of result if no unsigned overflow occurred,
|
/freebsd/lib/libc/db/hash/ |
H A D | hash.h | 46 BUFHEAD *ovfl; /* Overflow page buffer header */ 70 int32_t ovfl_point; /* Where overflow pages are being 72 int32_t last_freed; /* Last overflow page freed */ 83 int32_t spares[NCACHED];/* spare pages for overflow */ 84 u_int16_t bitmaps[NCACHED]; /* address of overflow page 153 /* Overflow management */ 155 * Overflow page numbers are allocated per split point. At each doubling of 156 * the table, we can allocate extra pages. So, an overflow page number has 183 * the address of an overflow page. The format of 196 * OVFL_PAGENO - page number of the next overflow page [all …]
|
/freebsd/contrib/jemalloc/include/jemalloc/internal/ |
H A D | prof_inlines_a.h | 11 bool overflow; in prof_accum_add() local 16 * enough), extreme overflow here (a1 >= prof_interval * 2) can cause in prof_accum_add() 25 overflow = (a1 >= prof_interval); in prof_accum_add() 26 if (overflow) { in prof_accum_add() 35 overflow = (a1 >= prof_interval); in prof_accum_add() 36 if (overflow) { in prof_accum_add() 42 return overflow; in prof_accum_add()
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | overflow.h | 26 * overflow checkers only almost work for _Bool, but that's 51 static inline bool __must_check __must_check_overflow(bool overflow) in __must_check_overflow() argument 53 return unlikely(overflow); in __must_check_overflow() 57 * check_add_overflow() - Calculate addition with overflow checking 72 * check_sub_overflow() - Calculate subtraction with overflow checking 87 * check_mul_overflow() - Calculate multiplication with overflow checking 102 * check_shl_overflow() - Calculate a left-shifted value and check overflow 157 * Returns: true if overflow can occur, false otherwise. 171 * first argument. If this value would not overflow into an assignment 186 * with any overflow causing the return value to be SIZE_MAX. The [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/ |
H A D | int_mulo_impl.inc | 17 // Effects: sets *overflow to 1 if a * b overflows 19 static __inline fixint_t __muloXi4(fixint_t a, fixint_t b, int *overflow) { 23 *overflow = 0; 27 *overflow = 1; 32 *overflow = 1; 43 *overflow = 1; 46 *overflow = 1;
|
/freebsd/contrib/llvm-project/libcxx/include/__numeric/ |
H A D | saturation_arithmetic.h | 34 // Handle overflow in __add_sat() 38 // Signed addition overflow in __add_sat() 52 // Handle overflow in __sub_sat() 57 // Signed subtration overflow in __sub_sat() 71 // Handle overflow in __mul_sat() 75 // Signed multiplication overflow in __mul_sat() 89 // Handle signed division overflow in __div_sat() 101 // Handle overflow in __saturate_cast() 106 // No overflow in __saturate_cast()
|
/freebsd/contrib/netbsd-tests/bin/expr/ |
H A D | t_expr.sh | 52 atf_test_case overflow 54 atf_set "descr" "Test overflow cases" 60 …"expr: integer overflow or underflow occurred for operation '4611686018427387904 + 461168601842738… 62 …"expr: integer overflow or underflow occurred for operation '4611686018427387904 - -46116860184273… 66 …"expr: integer overflow or underflow occurred for operation '-4611686018427387904 - 46116860184273… 71 "expr: integer overflow or underflow occurred for operation '-4611686018427387904 * 3'" 73 "expr: integer overflow or underflow occurred for operation '-4611686018427387904 * -2'" 76 "expr: integer overflow or underflow occurred for operation '4611686018427387904 * 2'" 78 "expr: integer overflow or underflow occurred for operation '4611686018427387904 * 3'" 218 atf_add_test_case overflow
|
/freebsd/lib/libpmc/pmu-events/arch/powerpc/power8/ |
H A D | pmc.json | 5 "BriefDescription": "Overflow from counter 1", 11 "BriefDescription": "Overflow from counter 2", 29 "BriefDescription": "Overflow from counter 3", 35 "BriefDescription": "Overflow from counter 4", 53 "BriefDescription": "Overflow from counter 5", 59 "BriefDescription": "Overflow from counter 6",
|
/freebsd/contrib/llvm-project/libcxx/src/filesystem/ |
H A D | int128_builtins.cpp | 22 __muloti4(__int128_t a, __int128_t b, int* overflow) { in __muloti4() argument 26 *overflow = 0; in __muloti4() 30 *overflow = 1; in __muloti4() 35 *overflow = 1; in __muloti4() 46 *overflow = 1; in __muloti4() 49 *overflow = 1; in __muloti4()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan_minimal/ |
H A D | ubsan_minimal_handlers.cpp | 122 HANDLER(add_overflow, "add-overflow") 123 HANDLER(sub_overflow, "sub-overflow") 124 HANDLER(mul_overflow, "mul-overflow") 125 HANDLER(negate_overflow, "negate-overflow") 126 HANDLER(divrem_overflow, "divrem-overflow") 132 HANDLER(float_cast_overflow, "float-cast-overflow") 142 HANDLER(pointer_overflow, "pointer-overflow")
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/InstrumentationRuntime/Utility/ |
H A D | ReportRetriever.cpp | 152 .Case("heap-buffer-overflow", "Heap buffer overflow") in FormatDescription() 155 .Case("stack-buffer-overflow", "Stack buffer overflow") in FormatDescription() 158 .Case("container-overflow", "Container overflow") in FormatDescription() 160 .Case("global-buffer-overflow", "Global buffer overflow") in FormatDescription() 162 .Case("stack-overflow", "Stack space exhausted") in FormatDescription()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | OverflowInstAnalysis.h | 1 //===-- OverflowInstAnalysis.h - Utils to fold overflow insts ----*- C++ -*-==// 9 // This file holds routines to help analyse overflow instructions 10 // and fold them into constants or other overflow instructions 23 /// %Agg = call { i4, i1 } @llvm.[us]mul.with.overflow.i4(i4 %X, i4 %Y) 28 /// %Agg = call { i4, i1 } @llvm.[us]mul.with.overflow.i4(i4 %X, i4 %Y)
|
/freebsd/lib/msun/man/ |
H A D | ieee.3 | 42 Overflow and underflow: 44 Overflow goes by default to a signed \*(If. 130 Overflow \(+-\*(If 166 Range: Overflow threshold = 2.0**128 = 3.4e38 201 Range: Overflow threshold = 2.0**1024 = 1.8e308 232 Range: Overflow threshold = 2.0**16384 = 1.2e4932 263 Range: Overflow threshold = 2.0**16384 = 1.2e4932 409 Overflow is signaled only when 411 the exact result would be finite but beyond the overflow threshold.
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/InstrumentationRuntime/ASan/ |
H A D | InstrumentationRuntimeASan.cpp |
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | OverflowInstAnalysis.cpp | 1 //==-- OverflowInstAnalysis.cpp - Utils to fold overflow insts ----*- C++ -*-=// 9 // This file holds routines to help analyse overflow instructions 10 // and fold them into constants or other overflow instructions 31 /// %Agg = call { i4, i1 } @llvm.[us]mul.with.overflow.i4(i4 %X, i4 %???) in isCheckForZeroAndMulWithOverflow() 35 // We should only be extracting the overflow bit. in isCheckForZeroAndMulWithOverflow()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_allocator_report.cpp | 46 ScopedAllocatorErrorReport report("calloc-overflow", stack); in ReportCallocOverflow() 47 Report("ERROR: %s: calloc parameters overflow: count * size (%zd * %zd) " in ReportCallocOverflow() 57 ScopedAllocatorErrorReport report("reallocarray-overflow", stack); in ReportReallocArrayOverflow() 59 "ERROR: %s: reallocarray parameters overflow: count * size (%zd * %zd) " in ReportReallocArrayOverflow() 68 ScopedAllocatorErrorReport report("pvalloc-overflow", stack); in ReportPvallocOverflow() 69 Report("ERROR: %s: pvalloc parameters overflow: size 0x%zx rounded up to " in ReportPvallocOverflow()
|
/freebsd/sys/contrib/device-tree/Bindings/perf/ |
H A D | arm,cmn.yaml | 30 - description: Overflow interrupt for DTC0 31 - description: Overflow interrupt for DTC1 32 - description: Overflow interrupt for DTC2 33 - description: Overflow interrupt for DTC3
|
/freebsd/sys/contrib/ck/src/ |
H A D | ck_ec_timeutil.h | 14 * overflow. 34 * return value to TIME_MAX, NSEC_MAX on overflow. 76 * Clamps the return value to TIME_MAX, NSEC_MAX on overflow. 94 /* Detect overflow early. */ in timespec_add() 100 /* This sum can't overflow if the inputs are valid.*/ in timespec_add()
|