From a334319f6530564d22e775935d9c91663623a1b4 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 22 Dec 2004 20:10:10 +0000 Subject: (CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4. --- include/arpa/nameser.h | 45 --------------------------------------------- 1 file changed, 45 deletions(-) (limited to 'include/arpa') diff --git a/include/arpa/nameser.h b/include/arpa/nameser.h index efbe956602..944fe732a6 100644 --- a/include/arpa/nameser.h +++ b/include/arpa/nameser.h @@ -1,46 +1 @@ #include - -/* If the machine allows unaligned access we can do better than using - the NS_GET16, NS_GET32, NS_PUT16, and NS_PUT32 macros from the - installed header. */ -#include -#include -#include - -extern struct _ns_flagdata _ns_flagdata[] attribute_hidden; - -#if _STRING_ARCH_unaligned - -# undef NS_GET16 -# define NS_GET16(s, cp) \ - do { \ - uint16_t *t_cp = (uint16_t *) (cp); \ - (s) = ntohs (*t_cp); \ - (cp) += NS_INT16SZ; \ - } while (0) - -# undef NS_GET32 -# define NS_GET32(l, cp) \ - do { \ - uint32_t *t_cp = (uint32_t *) (cp); \ - (l) = ntohl (*t_cp); \ - (cp) += NS_INT32SZ; \ - } while (0) - -# undef NS_PUT16 -# define NS_PUT16(s, cp) \ - do { \ - uint16_t *t_cp = (uint16_t *) (cp); \ - *t_cp = htons (s); \ - (cp) += NS_INT16SZ; \ - } while (0) - -# undef NS_PUT32 -# define NS_PUT32(l, cp) \ - do { \ - uint32_t *t_cp = (uint32_t *) (cp); \ - *t_cp = htonl (l); \ - (cp) += NS_INT32SZ; \ - } while (0) - -#endif -- cgit 1.4.1