A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita
audio
rust
zig
deno
mpris
rockbox
mpd
1/*
2 * xrick/system/basic_funcs.c
3 *
4 * Copyright (C) 2008-2014 Pierluigi Vicinanza. All rights reserved.
5 *
6 * The use and distribution terms for this software are contained in the file
7 * named README, which can be found in the root of this distribution. By
8 * using this software in any fashion, you are agreeing to be bound by the
9 * terms of this license.
10 *
11 * You must not remove this notice, or any other, from this software.
12 */
13
14#include "xrick/system/basic_funcs.h"
15
16#ifdef USE_DEFAULT_ENDIANNESS_FUNCTIONS
17
18extern inline uint16_t swap16(uint16_t x);
19extern inline uint32_t swap32(uint32_t x);
20
21extern inline uint16_t htobe16(uint16_t host);
22extern inline uint16_t htole16(uint16_t host);
23extern inline uint16_t betoh16(uint16_t big_endian);
24extern inline uint16_t letoh16(uint16_t little_endian);
25
26extern inline uint32_t htobe32(uint32_t host);
27extern inline uint32_t htole32(uint32_t host);
28extern inline uint32_t betoh32(uint32_t big_endian);
29extern inline uint32_t letoh32(uint32_t little_endian);
30
31#endif /* USE_DEFAULT_ENDIANNESS_FUNCTIONS */
32
33/* eof */