remove __swap16_multi because endian.h provides swap16_multi without it
authordlg <dlg@openbsd.org>
Wed, 3 Jan 2018 06:27:42 +0000 (06:27 +0000)
committerdlg <dlg@openbsd.org>
Wed, 3 Jan 2018 06:27:42 +0000 (06:27 +0000)
ok guenther@

sys/sys/_endian.h

index 25366cc..e390cce 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: _endian.h,v 1.2 2017/04/21 19:04:22 millert Exp $     */
+/*     $OpenBSD: _endian.h,v 1.3 2018/01/03 06:27:42 dlg Exp $ */
 
 /*-
  * Copyright (c) 1997 Niklas Hallqvist.  All rights reserved.
 #define __swap64 __swap64gen
 #endif /* __HAVE_MD_SWAP */
 
-#define __swap16_multi(v, n) do {                                              \
-       __size_t __swap16_multi_n = (n);                                \
-       __uint16_t *__swap16_multi_v = (v);                             \
-                                                                       \
-       while (__swap16_multi_n) {                                      \
-               *__swap16_multi_v = swap16(*__swap16_multi_v);          \
-               __swap16_multi_v++;                                     \
-               __swap16_multi_n--;                                     \
-       }                                                               \
-} while (0)
-
-
 #if _BYTE_ORDER == _LITTLE_ENDIAN
 
 #define _QUAD_HIGHWORD 1