#include <limits.h>
#include <stdbool.h>
#include "../../include/utils/safe_math.h"
Go to the source code of this file.
|
int | safe_add_int (int x, int y, bool *passed) |
|
int | safe_sub_int (int x, int y, bool *passed) |
|
int | safe_div_int (int x, int y, bool *passed) |
|
int | safe_mod_int (int x, int y, bool *passed) |
|
unsigned int | safe_sub_uint (unsigned int x, unsigned int y, bool *passed) |
|
unsigned int | safe_add_uint (unsigned int x, unsigned int y, bool *passed) |
|
unsigned int | safe_div_uint (unsigned int x, unsigned int y, bool *passed) |
|
unsigned int | safe_mod_uint (unsigned int x, unsigned int y, bool *passed) |
|
unsigned int | safe_mul_uint (unsigned int x, unsigned int y, bool *passed) |
|
◆ safe_add_int()
int safe_add_int |
( |
int |
x, |
|
|
int |
y, |
|
|
bool * |
passed |
|
) |
| |
◆ safe_add_uint()
unsigned int safe_add_uint |
( |
unsigned int |
x, |
|
|
unsigned int |
y, |
|
|
bool * |
passed |
|
) |
| |
◆ safe_div_int()
int safe_div_int |
( |
int |
x, |
|
|
int |
y, |
|
|
bool * |
passed |
|
) |
| |
◆ safe_div_uint()
unsigned int safe_div_uint |
( |
unsigned int |
x, |
|
|
unsigned int |
y, |
|
|
bool * |
passed |
|
) |
| |
◆ safe_mod_int()
int safe_mod_int |
( |
int |
x, |
|
|
int |
y, |
|
|
bool * |
passed |
|
) |
| |
◆ safe_mod_uint()
unsigned int safe_mod_uint |
( |
unsigned int |
x, |
|
|
unsigned int |
y, |
|
|
bool * |
passed |
|
) |
| |
◆ safe_mul_uint()
unsigned int safe_mul_uint |
( |
unsigned int |
x, |
|
|
unsigned int |
y, |
|
|
bool * |
passed |
|
) |
| |
◆ safe_sub_int()
int safe_sub_int |
( |
int |
x, |
|
|
int |
y, |
|
|
bool * |
passed |
|
) |
| |
◆ safe_sub_uint()
unsigned int safe_sub_uint |
( |
unsigned int |
x, |
|
|
unsigned int |
y, |
|
|
bool * |
passed |
|
) |
| |