/external/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.buffer/ |
overflow.pass.cpp | 14 // int_type overflow(int_type c = traits::eof()); 38 virtual int_type overflow(int_type c = traits_type::eof()) {return base::overflow(c);} function in struct:test_buf 44 std::ofstream bs("overflow.dat"); 49 assert(f.overflow(L'a') == L'a'); 55 std::ifstream bs("overflow.dat"); 59 std::remove("overflow.dat"); 61 std::ofstream bs("overflow.dat"); 67 assert(f.overflow('a') == 'a'); 73 std::ifstream bs("overflow.dat") [all...] |
/external/linux-kselftest/tools/testing/selftests/powerpc/pmu/ebb/ |
trace.h | 27 bool overflow; member in struct:trace_buffer
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/ |
1-5.c | 99 /* The overflow function is used to test the stack overflow */ 100 void *overflow(void *arg) function 111 current = overflow(¤t); 113 /* Terminate the overflow thread */ 146 return overflow(arg); 207 ("Overflow into the guard area did not fail"); 235 ret = pthread_create(&th, &scenarii[sc].ta, overflow, NULL); /* Create a new thread with the same attributes */
|
3-2.c | 107 /* The overflow function is used to test the stack overflow */ 108 void *overflow(void *arg) function 130 current = overflow(¤t); 141 /* Terminate the overflow thread */ 165 return overflow(arg); 248 ret = pthread_create(&th, ta, overflow, NULL); /* Create a new thread with the same attributes */ 298 "The overflow function returned an unexpected value"); 449 ("We were able to overflow the stack, but the guard area is unknow or null\n");
|
/external/python/cpython2/Modules/ |
fpetestmodule.c | 50 static double overflow(double); 65 fprintf(stderr,"overflow"); 66 r = overflow(1.e160); 166 static double overflow(double b) function 169 PyFPE_START_PROTECT("Overflow", return 3.1416)
|
/external/clang/test/Sema/ |
integer-overflow.c | 14 static const uint64_t overflow = 1 * 4608 * 1024 * 1024; // expected-warning {{overflow in expression; result is 536870912 with type 'int'}} variable 17 // expected-warning@+1 {{overflow in expression; result is 536870912 with type 'int'}} 18 uint64_t overflow = 4608 * 1024 * 1024, local 19 // expected-warning@+1 {{overflow in expression; result is 536870912 with type 'int'}} 21 // expected-warning@+1 {{overflow in expression; result is 536870912 with type 'int'}} 23 // expected-warning@+1 {{overflow in expression; result is 536870912 with type 'int'}} 25 // expected-warning@+1 2{{overflow in expression; result is 536870912 with type 'int'}} 28 // expected-warning@+1 {{overflow in expression; result is 536870912 with type 'int'}} 29 overflow += overflow2 = overflow3 = (uint64_t)(4608 * 1024 * 1024) [all...] |
/external/dng_sdk/source/ |
dng_safe_arithmetic.cpp | 11 // https://www.securecoding.cert.org/confluence/display/c/INT32-C.+Ensure+that+operations+on+signed+integers+do+not+result+in+overflow 36 ThrowProgramError("Arithmetic overflow"); 49 ThrowProgramError("Arithmetic overflow"); 105 ThrowProgramError("Arithmetic overflow"); 115 ThrowProgramError("Arithmetic overflow"); 171 ThrowProgramError("Arithmetic overflow"); 183 bool overflow = true; local 187 overflow = (arg1 > std::numeric_limits<std::int64_t>::max() / arg2); 189 overflow = (arg2 < std::numeric_limits<std::int64_t>::min() / arg1); 193 overflow = (arg1 < std::numeric_limits<std::int64_t>::min() / arg2) [all...] |
/external/kmod/testsuite/ |
test-util.c | 212 bool overflow; local 214 overflow = addu64_overflow(UINT64_MAX - 1, 1, &res); 215 assert_return(!overflow, EXIT_FAILURE); 218 overflow = addu64_overflow(UINT64_MAX, 1, &res); 219 assert_return(overflow, EXIT_FAILURE);
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
gen6_queryobj.c | 149 bool overflow = false; local 155 overflow = true; 160 return overflow; 447 /* calculate overflow here */
|
/external/python/cpython3/Modules/_decimal/libmpdec/ |
memory.c | 58 mpd_size_t overflow; local 68 &overflow); 69 if (overflow) { 84 /* malloc with overflow checking */ 88 mpd_size_t req, overflow; local 90 req = mul_size_t_overflow(nmemb, size, &overflow); 91 if (overflow) { 98 /* calloc with overflow checking */ 102 mpd_size_t overflow; local 104 (void)mul_size_t_overflow(nmemb, size, &overflow); 117 mpd_size_t req, overflow; local 138 mpd_size_t req, overflow; local [all...] |
/external/zlib/src/contrib/iostream3/ |
zfstream.cc | 214 gzfilebuf::overflow(int_type c) function in class:gzfilebuf 230 // Overflow doesn't fail if nothing is to be written 301 return traits_type::eq_int_type(this->overflow(), traits_type::eof()) ? -1 : 0; 322 // so that overflow(c) can safely add the extra character c to the sequence.
|
/art/runtime/ |
lock_word.h | 269 // Make sure adding the overflow causes an overflow. 270 constexpr uint64_t overflow = static_cast<uint64_t>(kStateForwardingAddressShifted) + local 272 constexpr bool is_larger = overflow > static_cast<uint64_t>(0xFFFFFFFF);
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/ |
BitInputStream.java | 143 long overflow = 0L; local 145 // bitsCachedSize >= 57 and left-shifting it 8 bits would cause an overflow 155 overflow = (nextByte >>> bitsToAddCount) & MASKS[overflowBits]; 160 overflow = nextByte & MASKS[overflowBits]; 163 bitsCached = overflow;
|
/external/guava/guava/src/com/google/common/primitives/ |
UnsignedLongs.java | 320 * unsigned long. This is useful for detecting overflow while parsing a string representation of 388 BigInteger overflow = new BigInteger("10000000000000000", 16); external variable declarations 392 maxSafeDigits[i] = overflow.toString(i).length() - 1;
|
/external/icu/icu4c/source/i18n/ |
double-conversion.cpp | 586 int overflow = static_cast<int>(number >> kSignificandSize); local 587 if (overflow != 0) { 588 // Overflow occurred. Need to determine which direction to round the 591 while (overflow > 1) { 593 overflow >>= 1; 624 // Rounding up may cause overflow. 905 // Check overflow. [all...] |
numparse_decimal.cpp | 362 bool overflow = false; local 369 overflow = true; 372 overflow = true; 375 overflow = true; 377 if (overflow) {
|
/external/libcxx/src/ |
strstream.cpp | 154 strstreambuf::overflow(int_type __c) function in class:strstreambuf 174 _LIBCPP_ASSERT(eback(), "overflow copying from NULL");
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
BooleanArrayList.java | 213 int overflow = Integer.MAX_VALUE - size; local 214 if (overflow < list.size) {
|
DoubleArrayList.java | 214 int overflow = Integer.MAX_VALUE - size; local 215 if (overflow < list.size) {
|
FloatArrayList.java | 212 int overflow = Integer.MAX_VALUE - size; local 213 if (overflow < list.size) {
|
IntArrayList.java | 212 int overflow = Integer.MAX_VALUE - size; local 213 if (overflow < list.size) {
|
LongArrayList.java | 212 int overflow = Integer.MAX_VALUE - size; local 213 if (overflow < list.size) {
|
/external/v8/src/builtins/ |
builtins-math-gen.cc | 43 Node* overflow = Projection(1, pair); local 44 GotoIf(overflow, &if_overflow);
|
/external/v8/src/ |
ostreams.cc | 35 OFStreamBase::int_type OFStreamBase::overflow(int_type c) { function in class:v8::internal::OFStreamBase
|
/external/vixl/src/aarch32/ |
instructions-aarch32.cc | 630 uint32_t overflow = imm << (8 + shift); local 631 if ((imm8 <= 0xff) && ((imm8 & 0x80) != 0) && (overflow == 0)) { 656 * avoid overflow (underflow is always a successful case) */ 707 * avoid overflow (underflow is always a successful case) */
|