diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-09-26 00:15:52 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-09-26 12:36:06 +0000 |
commit | c7365b14f31926b6fd95e0efe9e8fefbbf265d24 (patch) | |
tree | 582eb484d82023b56fa3666842c32d379786905a /toxcore/state.c | |
parent | a94d032586ff80a9cd25023281544bb4f3e945e9 (diff) |
Remove a function-like macro and replace it with a function.
No use making this a macro. LTO will inline this anyway, if we care about
performance. Generally, we avoid function-like macros that can be functions.
Diffstat (limited to 'toxcore/state.c')
-rw-r--r-- | toxcore/state.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/toxcore/state.c b/toxcore/state.c index aa01b32a..29b4af88 100644 --- a/toxcore/state.c +++ b/toxcore/state.c | |||
@@ -79,6 +79,11 @@ uint16_t lendian_to_host16(uint16_t lendian) | |||
79 | #endif | 79 | #endif |
80 | } | 80 | } |
81 | 81 | ||
82 | uint16_t host_tolendian16(uint16_t host) | ||
83 | { | ||
84 | return lendian_to_host16(host); | ||
85 | } | ||
86 | |||
82 | void host_to_lendian32(uint8_t *dest, uint32_t num) | 87 | void host_to_lendian32(uint8_t *dest, uint32_t num) |
83 | { | 88 | { |
84 | #ifdef WORDS_BIGENDIAN | 89 | #ifdef WORDS_BIGENDIAN |