Go to the source code of this file.
|
static int | clamp_size_to_int (size_t size) |
|
static unsigned int | max_uint (unsigned int x, unsigned int y) |
|
static unsigned int | min_uint (unsigned int x, unsigned int y) |
|
static int | max_int (int x, int y) |
|
static int | min_int (int x, int y) |
|
static int | constrain_int (int x, int min, int max) |
|
static int | modulo_subtract (int x, int y, int mod) |
|
static int | modulo_add (int x, int y, int mod) |
|
static size_t | adjust_power_of_2 (size_t u) |
|
static int | index_verify (int index, int size, const char *file, int line) |
|
static size_t | round_down_size (size_t num, size_t multiple) |
| Rounds down num to the nearest multiple of multiple. More...
|
|
◆ htonll
Value: ((1==htonl(1)) ? (x) : \
((uint64_t)htonl((x) & 0xFFFFFFFF) << 32) | htonl((x) >> 32))
Definition at line 30 of file integer.h.
◆ ntohll
Value: ((1==ntohl(1)) ? (x) : \
((uint64_t)ntohl((x) & 0xFFFFFFFF) << 32) | ntohl((x) >> 32))
Definition at line 35 of file integer.h.
◆ adjust_power_of_2()
static size_t adjust_power_of_2 |
( |
size_t |
u | ) |
|
|
inlinestatic |
◆ clamp_size_to_int()
static int clamp_size_to_int |
( |
size_t |
size | ) |
|
|
inlinestatic |
◆ constrain_int()
static int constrain_int |
( |
int |
x, |
|
|
int |
min, |
|
|
int |
max |
|
) |
| |
|
inlinestatic |
◆ index_verify()
static int index_verify |
( |
int |
index, |
|
|
int |
size, |
|
|
const char * |
file, |
|
|
int |
line |
|
) |
| |
|
inlinestatic |
◆ max_int()
static int max_int |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
inlinestatic |
Definition at line 76 of file integer.h.
Referenced by add_option(), crypto_max_overhead(), do_init_crypto_tls(), frame_finalize_options(), get_server_poll_remaining_time(), io_wait_dowork(), multi_tcp_init(), process_incoming_link_part2(), process_outgoing_link(), shaper_wrote_bytes(), socket_restart_pause(), tls_init_control_channel_frame_parameters(), tv_to_ms_timeout(), verify_cert(), and write_outgoing_tls_ciphertext().
◆ max_uint()
static unsigned int max_uint |
( |
unsigned int |
x, |
|
|
unsigned int |
y |
|
) |
| |
|
inlinestatic |
◆ min_int()
static int min_int |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
inlinestatic |
Definition at line 89 of file integer.h.
Referenced by calc_control_channel_frame_overhead(), check_send_occ_msg_dowork(), do_deferred_options(), ipv6_send_icmp_unreachable(), man_write(), multi_tcp_init(), optimal_fragment_size(), reliable_ack_write(), reliable_send_timeout(), shaper_wrote_bytes(), socket_restart_pause(), tls_init_control_channel_frame_parameters(), we_init(), write_control_auth(), and write_outgoing_tls_ciphertext().
◆ min_uint()
static unsigned int min_uint |
( |
unsigned int |
x, |
|
|
unsigned int |
y |
|
) |
| |
|
inlinestatic |
◆ modulo_add()
static int modulo_add |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
mod |
|
) |
| |
|
inlinestatic |
◆ modulo_subtract()
static int modulo_subtract |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
mod |
|
) |
| |
|
inlinestatic |
◆ round_down_size()
static size_t round_down_size |
( |
size_t |
num, |
|
|
size_t |
multiple |
|
) |
| |
|
inlinestatic |