Home
last modified time | relevance | path

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

/external/rust/crates/num-traits/src/ops/
Dchecked.rs5 pub trait CheckedAdd: Sized + Add<Self, Output = Self> { interface
22 checked_impl!(CheckedAdd, checked_add, u8);
23 checked_impl!(CheckedAdd, checked_add, u16);
24 checked_impl!(CheckedAdd, checked_add, u32);
25 checked_impl!(CheckedAdd, checked_add, u64);
26 checked_impl!(CheckedAdd, checked_add, usize);
28 checked_impl!(CheckedAdd, checked_add, u128);
30 checked_impl!(CheckedAdd, checked_add, i8);
31 checked_impl!(CheckedAdd, checked_add, i16);
32 checked_impl!(CheckedAdd, checked_add, i32);
[all …]
/external/rust/crates/gdbstub/src/protocol/common/
Dhex.rs1 use num_traits::{CheckedAdd, CheckedMul, FromPrimitive, Zero};
17 I: FromPrimitive + Zero + CheckedAdd + CheckedMul, in decode_hex()
/external/abseil-cpp/absl/base/internal/
Dlow_level_alloc.cc436 static inline uintptr_t CheckedAdd(uintptr_t a, uintptr_t b) { in CheckedAdd() function
445 return CheckedAdd(addr, align - 1) & ~(align - 1); in RoundUp()
530 size_t req_rnd = RoundUp(CheckedAdd(request, sizeof (s->header)), in DoAllocWithArena()
585 if (CheckedAdd(req_rnd, arena->min_size) <= s->header.size) { in DoAllocWithArena()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/base/internal/
Dlow_level_alloc.cc436 static inline uintptr_t CheckedAdd(uintptr_t a, uintptr_t b) { in CheckedAdd() function
445 return CheckedAdd(addr, align - 1) & ~(align - 1); in RoundUp()
530 size_t req_rnd = RoundUp(CheckedAdd(request, sizeof (s->header)), in DoAllocWithArena()
585 if (CheckedAdd(req_rnd, arena->min_size) <= s->header.size) { in DoAllocWithArena()
/external/openscreen/third_party/abseil/src/absl/base/internal/
Dlow_level_alloc.cc436 static inline uintptr_t CheckedAdd(uintptr_t a, uintptr_t b) { in CheckedAdd() function
445 return CheckedAdd(addr, align - 1) & ~(align - 1); in RoundUp()
530 size_t req_rnd = RoundUp(CheckedAdd(request, sizeof (s->header)), in DoAllocWithArena()
585 if (CheckedAdd(req_rnd, arena->min_size) <= s->header.size) { in DoAllocWithArena()
/external/angle/third_party/abseil-cpp/absl/base/internal/
Dlow_level_alloc.cc436 static inline uintptr_t CheckedAdd(uintptr_t a, uintptr_t b) { in CheckedAdd() function
445 return CheckedAdd(addr, align - 1) & ~(align - 1); in RoundUp()
530 size_t req_rnd = RoundUp(CheckedAdd(request, sizeof (s->header)), in DoAllocWithArena()
585 if (CheckedAdd(req_rnd, arena->min_size) <= s->header.size) { in DoAllocWithArena()
/external/libtextclassifier/abseil-cpp/absl/base/internal/
Dlow_level_alloc.cc436 static inline uintptr_t CheckedAdd(uintptr_t a, uintptr_t b) { in CheckedAdd() function
445 return CheckedAdd(addr, align - 1) & ~(align - 1); in RoundUp()
530 size_t req_rnd = RoundUp(CheckedAdd(request, sizeof (s->header)), in DoAllocWithArena()
585 if (CheckedAdd(req_rnd, arena->min_size) <= s->header.size) { in DoAllocWithArena()
/external/webrtc/third_party/abseil-cpp/absl/base/internal/
Dlow_level_alloc.cc436 static inline uintptr_t CheckedAdd(uintptr_t a, uintptr_t b) { in CheckedAdd() function
445 return CheckedAdd(addr, align - 1) & ~(align - 1); in RoundUp()
530 size_t req_rnd = RoundUp(CheckedAdd(request, sizeof (s->header)), in DoAllocWithArena()
585 if (CheckedAdd(req_rnd, arena->min_size) <= s->header.size) { in DoAllocWithArena()
/external/rust/crates/num-traits/src/
Dint.rs49 + CheckedAdd<Output = Self>
Dlib.rs41 CheckedAdd, CheckedDiv, CheckedMul, CheckedNeg, CheckedRem, CheckedShl, CheckedShr, CheckedSub,
/external/llvm-project/llvm/unittests/Support/
DCheckedArithmeticTest.cpp8 TEST(CheckedArithmetic, CheckedAdd) { in TEST() argument
/external/tensorflow/tensorflow/compiler/xla/service/
Dwhile_loop_analysis.cc347 optional<int64> CheckedAdd(int64 a, int64 b) { in CheckedAdd() function
458 trips = CheckedAdd(*trips, 1); in PatternMatchLoopTripCount()
/external/angle/src/common/third_party/base/anglebase/numerics/
Dsafe_math_impl.h157 CheckedAdd(T x, T y, RangeConstraint *validity)