Lines Matching refs:value
47 extern __inline__ uint16_t htons(uint16_t value)
50 __asm__("xchgb %h0, %b0" : "+Q" (value));
52 __asm__("xchgb %h0, %b0" : "+q" (value));
54 return (value);
57 extern __inline__ uint16_t ntohs(uint16_t value)
60 __asm__("xchgb %h0, %b0" : "+Q" (value));
62 __asm__("xchgb %h0, %b0" : "+q" (value));
64 return (value);
67 extern __inline__ uint32_t htonl(uint32_t value)
69 __asm__("bswap %0" : "+r" (value));
70 return (value);
73 extern __inline__ uint32_t ntohl(uint32_t value)
75 __asm__("bswap %0" : "+r" (value));
76 return (value);
80 extern __inline__ uint64_t htonll(uint64_t value)
82 __asm__("bswapq %0" : "+r" (value));
83 return (value);
86 extern __inline__ uint64_t ntohll(uint64_t value)
88 __asm__("bswapq %0" : "+r" (value));
89 return (value);
94 extern __inline__ uint64_t htonll(uint64_t value)
96 return (htonl(value >> 32) | ((uint64_t)htonl(value) << 32));
99 extern __inline__ uint64_t ntohll(uint64_t value)
101 return (ntohl(value >> 32) | (uint64_t)ntohl(value) << 32);