diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2018-01-03 06:27:43 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2018-01-03 06:27:43 +0000 |
commit | 4f180db6c3869a33e12c709816ad8e6911467b6e (patch) | |
tree | 12fbc94f454a5a4ccf480d4fc1cfa9829d838072 | |
parent | bac0597483ef8cebee6a7d047ecb189d3565d94f (diff) |
remove __swap16_multi because endian.h provides swap16_multi without it
ok guenther@
-rw-r--r-- | sys/sys/_endian.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/sys/_endian.h b/sys/sys/_endian.h index 25366cc188a..e390cce0bb3 100644 --- a/sys/sys/_endian.h +++ b/sys/sys/_endian.h @@ -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. @@ -143,18 +143,6 @@ #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 |