Provides safe math operations that won't overflow. More...
#include "qev.h"Go to the source code of this file.
Functions | |
| gboolean | qev_safe_uadd (guint64 a, guint64 b, guint64 *res) |
| Add two unsigned integers. More... | |
Provides safe math operations that won't overflow.
Returns an error if an overflow is possible.
| gboolean qev_safe_uadd | ( | guint64 | a, |
| guint64 | b, | ||
| guint64 * | res | ||
| ) |
Add two unsigned integers.
| a | The first uint |
| b | The second uint |
| res | Where the result should be placed |
1.8.6