diff options
author | 2017-12-01 13:16:15 -0800 | |
---|---|---|
committer | 2017-12-01 13:16:15 -0800 | |
commit | 185e788c84a95cb024cff98988bdeb09e619cd62 (patch) | |
tree | 631ef70bbd4d47cf18ddcb7699b27eb74ce03bc8 /include/linux | |
parent | RISC-V: __io_writes should respect the length argument (diff) | |
parent | move libgcc.h to include/linux (diff) | |
download | wireguard-linux-185e788c84a95cb024cff98988bdeb09e619cd62.tar.xz wireguard-linux-185e788c84a95cb024cff98988bdeb09e619cd62.zip |
move libgcc.h to include/linux
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/libgcc.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/include/linux/libgcc.h b/include/linux/libgcc.h new file mode 100644 index 000000000000..32e1e0f4b2d0 --- /dev/null +++ b/include/linux/libgcc.h @@ -0,0 +1,43 @@ +/* + * include/lib/libgcc.h + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see the file COPYING, or write + * to the Free Software Foundation, Inc. + */ + +#ifndef __LIB_LIBGCC_H +#define __LIB_LIBGCC_H + +#include <asm/byteorder.h> + +typedef int word_type __attribute__ ((mode (__word__))); + +#ifdef __BIG_ENDIAN +struct DWstruct { + int high, low; +}; +#elif defined(__LITTLE_ENDIAN) +struct DWstruct { + int low, high; +}; +#else +#error I feel sick. +#endif + +typedef union { + struct DWstruct s; + long long ll; +} DWunion; + +#endif /* __ASM_LIBGCC_H */ |