summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/byteswap.h
blob: a94fd6f94eeb3dfeb9f99c2223de9ea275eb66fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Copyright (c) 2020, the SerenityOS developers.
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#include <sys/cdefs.h>

#pragma once

__BEGIN_DECLS

#define bswap_16(x) (__builtin_bswap16(x))
#define bswap_32(x) (__builtin_bswap32(x))
#define bswap_64(x) (__builtin_bswap64(x))

__END_DECLS