blob: b8dc75f0c8308bd4c734ff48d82299548278f276 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001/* SPDX-License-Identifier: GPL-2.0-or-later */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * include/lib/libgcc.h
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00004 */
5
6#ifndef __LIB_LIBGCC_H
7#define __LIB_LIBGCC_H
8
9#include <asm/byteorder.h>
10
11typedef int word_type __attribute__ ((mode (__word__)));
12
13#ifdef __BIG_ENDIAN
14struct DWstruct {
15 int high, low;
16};
17#elif defined(__LITTLE_ENDIAN)
18struct DWstruct {
19 int low, high;
20};
21#else
22#error I feel sick.
23#endif
24
25typedef union {
26 struct DWstruct s;
27 long long ll;
28} DWunion;
29
30#endif /* __ASM_LIBGCC_H */