master
h 22 lines 400 Bytes
Raw
1 /*
2 * target-specific swap() definitions
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * SPDX-License-Identifier: LGPL-2.1-or-later
7 */
8 #ifndef USER_TSWAP_H
9 #define USER_TSWAP_H
10
11 #include "exec/cpu-defs.h"
12 #include "exec/tswap.h"
13
14 #if TARGET_LONG_SIZE == 4
15 #define tswapl(s) tswap32(s)
16 #define bswaptls(s) bswap32s(s)
17 #else
18 #define tswapl(s) tswap64(s)
19 #define bswaptls(s) bswap64s(s)
20 #endif
21
22 #endif