This file contains functions for RFC 1982 serial number arithmetic. More...
Functions | |
int | compare_1982 (uint32_t a, uint32_t b) |
RFC 1982 comparison, uses unsigned integers, and tries to avoid compiler optimization (eg. More... | |
uint32_t | subtract_1982 (uint32_t a, uint32_t b) |
RFC 1982 subtraction, uses unsigned integers, and tries to avoid compiler optimization (eg. More... | |
This file contains functions for RFC 1982 serial number arithmetic.
int compare_1982 | ( | uint32_t | a, |
uint32_t | b | ||
) |
RFC 1982 comparison, uses unsigned integers, and tries to avoid compiler optimization (eg.
by avoiding a-b<0 comparisons).
a | value to compare. |
b | value to compare. |
Referenced by check_dates().
uint32_t subtract_1982 | ( | uint32_t | a, |
uint32_t | b | ||
) |
RFC 1982 subtraction, uses unsigned integers, and tries to avoid compiler optimization (eg.
by avoiding a-b<0 comparisons).
a | value to subtract from. |
b | value to subtract. |