|
moreinttypes 1.9.0
Minimal library of enhanced integer types for C
|
Encapsulates a 32-bit integer. More...
Data Fields | |
| const int32_t | value |
| The underlying value of this Int32. | |
| void(* | add )(struct Int32 *const restrict, int32_t) |
| Adds the given amount to the value of this Int32. | |
| void(* | sub )(struct Int32 *const restrict, int32_t) |
| Subtracts the given amount from the value of this Int32. | |
| void(* | mul )(struct Int32 *const restrict, int32_t) |
| Multiplies the value of this Int32 by the given amount. | |
| void(* | div )(struct Int32 *const restrict, int32_t) |
| Divides the value of this Int32 by the given amount. | |
| void(* | parse )(struct Int32 *const restrict, const char *, int) |
| Attempts to set the value of this Int32 by parsing a numeric string. | |
| long double(* | n_bang )(struct Int32 *const restrict) |
| Returns the factorial of this Int32's value. | |
| const char *(* | to_bin )(struct Int32 *const restrict) |
| Returns the base-2 representation of this Int32's value as a string. | |
Encapsulates a 32-bit integer.