ladybird/Userland/Libraries/LibC/byteswap.h

18 lines
297 B
C
Raw Normal View History

2020-04-06 12:09:01 +03:00
/*
* Copyright (c) 2020, the SerenityOS developers.
2020-04-06 12:09:01 +03:00
*
* SPDX-License-Identifier: BSD-2-Clause
2020-04-06 12:09:01 +03:00
*/
#pragma once
#include <sys/cdefs.h>
__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