Lines Matching refs:n
60 * @param n u16_t in host byte order
61 * @return n in network byte order
64 lwip_htons(u16_t n)
66 return ((n & 0xff) << 8) | ((n & 0xff00) >> 8);
72 * @param n u16_t in network byte order
73 * @return n in host byte order
76 lwip_ntohs(u16_t n)
78 return lwip_htons(n);
84 * @param n u32_t in host byte order
85 * @return n in network byte order
88 lwip_htonl(u32_t n)
90 return ((n & 0xff) << 24) |
91 ((n & 0xff00) << 8) |
92 ((n & 0xff0000UL) >> 8) |
93 ((n & 0xff000000UL) >> 24);
99 * @param n u32_t in network byte order
100 * @return n in host byte order
103 lwip_ntohl(u32_t n)
105 return lwip_htonl(n);