Add some compiler independant integer overflow functions
This commit is contained in:
@@ -13,8 +13,10 @@
|
||||
#include <time.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
bool overflow_check_int64_add (const u64 a, const u64 b);
|
||||
bool overflow_check_int64_mul (const u64 a, const u64 b);
|
||||
bool overflow_check_u32_add (const u32 a, const u32 b);
|
||||
bool overflow_check_u32_mul (const u32 a, const u32 b);
|
||||
bool overflow_check_u64_add (const u64 a, const u64 b);
|
||||
bool overflow_check_u64_mul (const u64 a, const u64 b);
|
||||
|
||||
bool is_power_of_2 (const u32 v);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user