| 1 |
|
| 2 | |
| 3 | * Byte swapping for NOLIBC
|
| 4 | * Copyright (C) 2026 Thomas Weißschuh <[email protected]>
|
| 5 |
|
| 6 |
|
| 7 |
|
| 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
|