18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * include/lib/libgcc.h 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#ifndef __LIB_LIBGCC_H 78c2ecf20Sopenharmony_ci#define __LIB_LIBGCC_H 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#include <asm/byteorder.h> 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_citypedef int word_type __attribute__ ((mode (__word__))); 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#ifdef __BIG_ENDIAN 148c2ecf20Sopenharmony_cistruct DWstruct { 158c2ecf20Sopenharmony_ci int high, low; 168c2ecf20Sopenharmony_ci}; 178c2ecf20Sopenharmony_ci#elif defined(__LITTLE_ENDIAN) 188c2ecf20Sopenharmony_cistruct DWstruct { 198c2ecf20Sopenharmony_ci int low, high; 208c2ecf20Sopenharmony_ci}; 218c2ecf20Sopenharmony_ci#else 228c2ecf20Sopenharmony_ci#error I feel sick. 238c2ecf20Sopenharmony_ci#endif 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_citypedef union { 268c2ecf20Sopenharmony_ci struct DWstruct s; 278c2ecf20Sopenharmony_ci long long ll; 288c2ecf20Sopenharmony_ci} DWunion; 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci#endif /* __ASM_LIBGCC_H */ 31