blob: 4854690d944a7e6ae33395795a65e883a1f8715b [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __ASM_LIBGCC_H
3#define __ASM_LIBGCC_H
4
5#include <asm/byteorder.h>
6
7#ifdef __BIG_ENDIAN
8struct DWstruct {
9 int high, low;
10};
11#elif defined(__LITTLE_ENDIAN)
12struct DWstruct {
13 int low, high;
14};
15#else
16#error I feel sick.
17#endif
18
19typedef union {
20 struct DWstruct s;
21 long long ll;
22} DWunion;
23
24#endif /* __ASM_LIBGCC_H */