Lines Matching defs:in
6 * You may not use this file except in compliance with the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
27 #include <netinet/in.h>
44 htonll(uint64_t in)
46 return ((uint64_t)htonl((in >> 32) & 0xffffffff) |
47 ((uint64_t)htonl(in & 0xffffffff) << 32));
51 ntohll(uint64_t in)
53 return ((uint64_t)ntohl((in >> 32) & 0xffffffff) |
54 ((uint64_t)ntohl(in & 0xffffffff) << 32));
58 htonl(uint32_t in)
62 i = (uint32_t)((in & (uint32_t)0xff000000) >> 24) +
63 (uint32_t)((in & (uint32_t)0x00ff0000) >> 8) +
64 (uint32_t)((in & (uint32_t)0x0000ff00) << 8) +
65 (uint32_t)((in & (uint32_t)0x000000ff) << 24);
70 ntohl(uint32_t in)
72 return (htonl(in));
76 htons(uint16_t in)
78 register int arg = (int)in;
87 ntohs(uint16_t in)
89 return (htons(in));
96 htonll(uint64_t in)
98 return (in);
102 ntohll(uint64_t in)
104 return (in);
108 htonl(uint32_t in)
110 return (in);
114 ntohl(uint32_t in)
116 return (in);
120 htons(uint16_t in)
122 return (in);
126 ntohs(uint16_t in)
128 return (in);