Merge tag 'pull-loongarch-20240712' of https://gitlab.com/gaosong/qemu into staging
[qemu/ar7.git] / include / user / tswap-target.h
blob4719330dbbc8f6ac1447c806178bb84492408a93
1 /*
2 * target-specific swap() definitions
4 * Copyright (c) 2003 Fabrice Bellard
6 * SPDX-License-Identifier: LGPL-2.1-or-later
7 */
8 #ifndef USER_TSWAP_H
9 #define USER_TSWAP_H
11 #include "exec/cpu-defs.h"
12 #include "exec/tswap.h"
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
22 #endif