Lines Matching full:tgt
31 # define ua_htonl(src, tgt) (*(u_int32_t *)(tgt) = htonl(*(u_int32_t *)(src)))
32 # define ua_ntohl(src, tgt) (*(u_int32_t *)(tgt) = ntohl(*(u_int32_t *)(src)))
33 # define ua_htons(src, tgt) (*(u_int16_t *)(tgt) = htons(*(u_int16_t *)(src)))
34 # define ua_ntohs(src, tgt) (*(u_int16_t *)(tgt) = ntohs(*(u_int16_t *)(src)))
38 # define ua_htonl(src, tgt) \
42 *(u_char *)(tgt) = __oh >> 24; \
43 *((u_char *)(tgt) + 1) = (__oh >> 16) & 0xff; \
44 *((u_char *)(tgt) + 2) = (__oh >> 8) & 0xff; \
45 *((u_char *)(tgt) + 3) = __oh & 0xff; \
48 # define ua_ntohl(src, tgt) \
55 memcpy((tgt), &__nh, sizeof __nh); \
58 # define ua_htons(src, tgt) \
62 *(u_char *)(tgt) = __oh >> 8; \
63 *((u_char *)(tgt) + 1) = __oh & 0xff; \
66 # define ua_ntohs(src, tgt) \
71 memcpy((tgt), &__nh, sizeof __nh); \