aboutsummaryrefslogtreecommitdiff
path: root/include/user/tswap-target.h
blob: 4719330dbbc8f6ac1447c806178bb84492408a93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * target-specific swap() definitions
 *
 *  Copyright (c) 2003 Fabrice Bellard
 *
 * SPDX-License-Identifier: LGPL-2.1-or-later
 */
#ifndef USER_TSWAP_H
#define USER_TSWAP_H

#include "exec/cpu-defs.h"
#include "exec/tswap.h"

#if TARGET_LONG_SIZE == 4
#define tswapl(s) tswap32(s)
#define bswaptls(s) bswap32s(s)
#else
#define tswapl(s) tswap64(s)
#define bswaptls(s) bswap64s(s)
#endif

#endif