6 bool bt_safe_to_mul_int64(int64_t a
, int64_t b
)
8 if (a
== 0 || b
== 0) {
12 return a
< INT64_MAX
/ b
;
16 bool bt_safe_to_mul_uint64(uint64_t a
, uint64_t b
)
18 if (a
== 0 || b
== 0) {
22 return a
< UINT64_MAX
/ b
;
26 bool bt_safe_to_add_int64(int64_t a
, int64_t b
)
28 return a
<= INT64_MAX
- b
;
32 bool bt_safe_to_add_uint64(uint64_t a
, uint64_t b
)
34 return a
<= UINT64_MAX
- b
;
This page took 0.029158 seconds and 4 git commands to generate.