Home
last modified time | relevance | path

Searched refs:val_b (Results 1 – 13 of 13) sorted by relevance

/external/ComputeLibrary/arm_compute/core/utils/math/
DSafeOps.h50 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
120 if((val_b > 0) && (val_a > (std::numeric_limits<T>::max() / val_b))) in safe_integer_mul()
[all …]
/external/ComputeLibrary/tests/validation/UNIT/
DSafeIntegerOps.cpp43 int32_t val_b = 0xFF; in TEST_SUITE() local
44 int32_t result = utils::math::safe_integer_add(val_a, val_b); in TEST_SUITE()
50 val_b = 0x80000024; in TEST_SUITE()
51 result = utils::math::safe_integer_add(val_a, val_b); in TEST_SUITE()
60 int32_t val_b = 0x8000FC24; in TEST_CASE() local
61 int32_t result = utils::math::safe_integer_sub(val_a, val_b); in TEST_CASE()
67 val_b = 0x7FFFFFFF; in TEST_CASE()
68 result = utils::math::safe_integer_sub(val_a, val_b); in TEST_CASE()
77 int32_t val_b = 0x80000000; 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/
Dgenerate_bignum_tests.py150 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/mbedtls/scripts/mbedtls_dev/
Dbignum_common.py103 def __init__(self, val_a: str, val_b: str = "0", bits_in_limb: int = 32) -> None:
105 self.val_b = val_b
109 self.int_b = hex_to_int(val_b)
156 return self.format_arg(self.val_b)
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)
Dbignum_core.py182 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 = ""
586 self.arg_b = val_b
587 self.int_b = bignum_common.hex_to_int(val_b)
812 return self.val_b
/external/llvm/test/Analysis/ScalarEvolution/
Doverflow-intrinsics.ll284 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/
Dcoding_path_sync.cc92 const int val_b = 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/
Dcollperf.cpp277 int val_b = 0; in q_random() local
279 while (*key_b != 0) {val_b += val_b*37 + *key_b++;} in q_random()
280 return val_a - val_b; in q_random()
/external/icu/icu4c/source/test/perf/collperf/
Dcollperf.cpp277 int val_b = 0; in q_random() local
279 while (*key_b != 0) {val_b += val_b*37 + *key_b++;} in q_random()
280 return val_a - val_b; in q_random()
/external/tensorflow/tensorflow/python/kernel_tests/data_structures/
Dpadding_fifo_queue_test.py1116 val_a, val_b = self.evaluate([cleanup_dequeue_a_t, cleanup_dequeue_b_t])
1118 self.assertEqual(elem_b, val_b)
Dfifo_queue_test.py1175 val_a, val_b = self.evaluate([cleanup_dequeue_a_t, cleanup_dequeue_b_t])
1177 self.assertEqual(elem_b, val_b)
/external/bcc/libbpf-tools/arm64/
Dvmlinux.h20303 uint16_t val_b; member
Dvmlinux_510.h20303 uint16_t val_b; member