|
N64FlashcartMenu
|
Utility macros for alignment, min/max, and size conversions. More...
Go to the source code of this file.
Macros | |
| #define | ALIGN(x, a) |
| Align a value to the specified alignment boundary. | |
| #define | MAX(a, b) |
| Return the maximum of two values. | |
| #define | MIN(a, b) |
| Return the minimum of two values. | |
| #define | KiB(x) |
| Convert a value to kibibytes. | |
| #define | MiB(x) |
| Convert a value to mebibytes. | |
Utility macros for alignment, min/max, and size conversions.
| #define ALIGN | ( | x, | |
| a ) |
Align a value to the specified alignment boundary.
This macro aligns the given value x to the specified alignment a.
| x | The value to align. |
| a | The alignment boundary (must be a power of two). |
| #define MAX | ( | a, | |
| b ) |
Return the maximum of two values.
This macro returns the maximum of the two provided values a and b.
| a | The first value. |
| b | The second value. |
a and b. | #define MIN | ( | a, | |
| b ) |
Return the minimum of two values.
This macro returns the minimum of the two provided values a and b.
| a | The first value. |
| b | The second value. |
a and b. | #define KiB | ( | x | ) |
Convert a value to kibibytes.
This macro converts the given value x to kibibytes (multiplying by 1024).
| x | The value to convert. |
| #define MiB | ( | x | ) |
Convert a value to mebibytes.
This macro converts the given value x to mebibytes (multiplying by 1024*1024).
| x | The value to convert. |