/external/ComputeLibrary/arm_compute/core/utils/math/ |
D | SafeOps.h | 50 T safe_integer_add(T val_a, T val_b) in safe_integer_add() argument 54 if((val_b > 0) && (val_a > std::numeric_limits<T>::max() - val_b)) in safe_integer_add() 58 else if((val_b < 0) && (val_a < std::numeric_limits<T>::min() - val_b)) in safe_integer_add() 64 result = val_a + val_b; in safe_integer_add() 82 T safe_integer_sub(T val_a, T val_b) in safe_integer_sub() argument 86 if((val_b < 0) && (val_a > std::numeric_limits<T>::max() + val_b)) in safe_integer_sub() 90 else if((val_b > 0) && (val_a < std::numeric_limits<T>::min() + val_b)) in safe_integer_sub() 96 result = val_a - val_b; in safe_integer_sub() 114 T safe_integer_mul(T val_a, T val_b) in safe_integer_mul() argument 118 if(val_a > 0) in safe_integer_mul() [all …]
|
/external/ComputeLibrary/tests/validation/UNIT/ |
D | SafeIntegerOps.cpp | 42 int32_t val_a = 0x7FFFFFFF; in TEST_SUITE() local 44 int32_t result = utils::math::safe_integer_add(val_a, val_b); in TEST_SUITE() 49 val_a = 0x8000FC24; in TEST_SUITE() 51 result = utils::math::safe_integer_add(val_a, val_b); in TEST_SUITE() 59 int32_t val_a = 0x7FFFFFFF; in TEST_CASE() local 61 int32_t result = utils::math::safe_integer_sub(val_a, val_b); in TEST_CASE() 66 val_a = 0x80000024; in TEST_CASE() 68 result = utils::math::safe_integer_sub(val_a, val_b); in TEST_CASE() 76 int32_t val_a = 0xFFFFFFFF; in TEST_CASE() local 78 int32_t result = utils::math::safe_integer_mul(val_a, val_b); in TEST_CASE() [all …]
|
/external/mbedtls/tests/scripts/ |
D | generate_bignum_tests.py | 150 def __init__(self, val_a, val_b) -> None: argument 151 super().__init__(val_a, val_b) 165 def __init__(self, val_a, val_b) -> None: argument 166 super().__init__(val_a.strip("-"), val_b.strip("-")) 182 def __init__(self, val_a: str, val_b: str) -> None: 183 super().__init__(val_a, val_b)
|
/external/tensorflow/tensorflow/core/kernels/ |
D | tensor_to_hash_bucket_op_gpu.cu.cc | 51 T val_a = val; in IntegerToString() local 53 val_a = val_a / 10; in IntegerToString() 55 } while (val_a != 0); in IntegerToString()
|
/external/mbedtls/scripts/mbedtls_dev/ |
D | bignum_common.py | 103 def __init__(self, val_a: str, val_b: str = "0", bits_in_limb: int = 32) -> None: 104 self.val_a = val_a 108 self.int_a = hex_to_int(val_a) 150 return self.format_arg(self.val_a) 246 def __init__(self, val_n: str, val_a: str, val_b: str = "0", 248 super().__init__(val_a=val_a, val_b=val_b, bits_in_limb=bits_in_limb)
|
D | bignum_core.py | 182 def __init__(self, val_a: str, val_b: str, val_s: str) -> None: 183 super().__init__(val_a, val_b) 581 self, val_a: str, val_b: str, val_n: str, case_description: str = "" 584 self.arg_a = val_a 585 self.int_a = bignum_common.hex_to_int(val_a)
|
/external/llvm/test/Analysis/ScalarEvolution/ |
D | overflow-intrinsics.ll | 284 define i32 @f_smul(i32 %val_a, i32 %val_b) { 286 %agg = tail call { i32, i1 } @llvm.smul.with.overflow.i32(i32 %val_a, i32 %val_b) 288 ; CHECK-NEXT: --> (%val_a * %val_b) U: full-set S: full-set 293 define i32 @f_umul(i32 %val_a, i32 %val_b) { 295 %agg = tail call { i32, i1 } @llvm.umul.with.overflow.i32(i32 %val_a, i32 %val_b) 297 ; CHECK-NEXT: --> (%val_a * %val_b) U: full-set S: full-set
|
/external/libaom/test/ |
D | coding_path_sync.cc | 91 const int val_a = rnd_.Rand8(); in ReadFrame() local 95 buf[i] = (i + phase) % period < period / 2 ? val_a : val_b; in ReadFrame()
|
/external/cronet/third_party/icu/source/test/perf/collperf/ |
D | collperf.cpp | 276 int val_a = 0; in q_random() local 278 while (*key_a != 0) {val_a += val_a*37 + *key_a++;} in q_random() 280 return val_a - val_b; in q_random()
|
/external/icu/icu4c/source/test/perf/collperf/ |
D | collperf.cpp | 276 int val_a = 0; in q_random() local 278 while (*key_a != 0) {val_a += val_a*37 + *key_a++;} in q_random() 280 return val_a - val_b; in q_random()
|
/external/tensorflow/tensorflow/python/kernel_tests/data_structures/ |
D | padding_fifo_queue_test.py | 1116 val_a, val_b = self.evaluate([cleanup_dequeue_a_t, cleanup_dequeue_b_t]) 1117 self.assertEqual(elem_a, val_a)
|
D | fifo_queue_test.py | 1175 val_a, val_b = self.evaluate([cleanup_dequeue_a_t, cleanup_dequeue_b_t]) 1176 self.assertEqual(elem_a, val_a)
|
/external/bcc/libbpf-tools/arm64/ |
D | vmlinux.h | 20302 uint16_t val_a; member
|
D | vmlinux_510.h | 20302 uint16_t val_a; member
|