#include "lwip/arch.h"
#include "lwip/opt.h"
#define lwip_htonl |
( |
|
x | ) |
(x) |
#define lwip_htons |
( |
|
x | ) |
(x) |
#define LWIP_MAKE_U16 |
( |
|
a, |
|
|
|
b |
|
) |
| ((a << 8) | b) |
#define LWIP_MAX |
( |
|
x, |
|
|
|
y |
|
) |
| (((x) > (y)) ? (x) : (y)) |
#define LWIP_MIN |
( |
|
x, |
|
|
|
y |
|
) |
| (((x) < (y)) ? (x) : (y)) |
#define lwip_ntohl |
( |
|
x | ) |
(x) |
#define lwip_ntohs |
( |
|
x | ) |
(x) |
#define LWIP_PLATFORM_BYTESWAP 0 |
#define LWIP_U32_DIFF |
( |
|
a, |
|
|
|
b |
|
) |
| (((a) >= (b)) ? ((a) - (b)) : (((a) + ((b) ^ 0xFFFFFFFF) + 1))) |
Get the absolute difference between 2 u32_t values (correcting overflows) 'a' is expected to be 'higher' (without overflow) than 'b'.
#define PP_HTONL |
( |
|
x | ) |
(x) |
#define PP_HTONS |
( |
|
x | ) |
(x) |
#define PP_NTOHL |
( |
|
x | ) |
(x) |
#define PP_NTOHS |
( |
|
x | ) |
(x) |