File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- /* $NetBSD: bswap.h,v 1.3 2025/11/26 22:25:10 nia Exp $ */
1+ /* $NetBSD: bswap.h,v 1.4 2025/12/02 15:40:19 nia Exp $ */
22
33#ifndef _MACHINE_BSWAP_H_
44#define _MACHINE_BSWAP_H_
99 */
1010#if !defined(__clang__ )
1111#define __HAVE_SLOW_BSWAP_BUILTIN
12+ #else
13+ #define __BYTE_SWAP_U64_VARIABLE __builtin_bswap64
14+ #define __BYTE_SWAP_U32_VARIABLE __builtin_bswap32
15+ #define __BYTE_SWAP_U16_VARIABLE __builtin_bswap16
1216#endif
1317
1418#include <sys/bswap.h>
Original file line number Diff line number Diff line change 1- /* $NetBSD: bswap.h,v 1.3 2025/11/26 22:25:10 nia Exp $ */
1+ /* $NetBSD: bswap.h,v 1.4 2025/12/02 15:40:19 nia Exp $ */
22
33#ifndef _MACHINE_BSWAP_H_
44#define _MACHINE_BSWAP_H_
99 */
1010#if !defined(__clang__ )
1111#define __HAVE_SLOW_BSWAP_BUILTIN
12+ #else
13+ #define __BYTE_SWAP_U64_VARIABLE __builtin_bswap64
14+ #define __BYTE_SWAP_U32_VARIABLE __builtin_bswap32
15+ #define __BYTE_SWAP_U16_VARIABLE __builtin_bswap16
1216#endif
1317
1418#include <sys/bswap.h>
You can’t perform that action at this time.
0 commit comments