Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/tools/include/nolibc/byteswap.h
170891 views
1
/* SPDX-License-Identifier: LGPL-2.1 OR MIT */
2
/*
3
* Byte swapping for NOLIBC
4
* Copyright (C) 2026 Thomas Weißschuh <[email protected]>
5
*/
6
7
/* make sure to include all global symbols */
8
#include "nolibc.h"
9
10
#ifndef _NOLIBC_BYTESWAP_H
11
#define _NOLIBC_BYTESWAP_H
12
13
#include "stdint.h"
14
15
#include <linux/swab.h>
16
17
#define bswap_16(_x) __swab16(_x)
18
#define bswap_32(_x) __swab32(_x)
19
#define bswap_64(_x) __swab64(_x)
20
21
#endif /* _NOLIBC_BYTESWAP_H */
22
23