libgcc2.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539
  1. /* Header file for libgcc2.c. */
  2. /* Copyright (C) 2000-2022 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify it under
  5. the terms of the GNU General Public License as published by the Free
  6. Software Foundation; either version 3, or (at your option) any later
  7. version.
  8. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  9. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  11. for more details.
  12. Under Section 7 of GPL version 3, you are granted additional
  13. permissions described in the GCC Runtime Library Exception, version
  14. 3.1, as published by the Free Software Foundation.
  15. You should have received a copy of the GNU General Public License and
  16. a copy of the GCC Runtime Library Exception along with this program;
  17. see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  18. <http://www.gnu.org/licenses/>. */
  19. #ifndef GCC_LIBGCC2_H
  20. #define GCC_LIBGCC2_H
  21. #ifndef HIDE_EXPORTS
  22. #pragma GCC visibility push(default)
  23. #endif
  24. extern int __gcc_bcmp (const unsigned char *, const unsigned char *, size_t);
  25. extern void __clear_cache (void *, void *);
  26. extern void __eprintf (const char *, const char *, unsigned int, const char *)
  27. __attribute__ ((__noreturn__));
  28. #ifdef __LIBGCC_HAS_HF_MODE__
  29. #define LIBGCC2_HAS_HF_MODE 1
  30. #else
  31. #define LIBGCC2_HAS_HF_MODE 0
  32. #endif
  33. #ifdef __LIBGCC_HAS_SF_MODE__
  34. #define LIBGCC2_HAS_SF_MODE 1
  35. #else
  36. #define LIBGCC2_HAS_SF_MODE 0
  37. #endif
  38. #ifdef __LIBGCC_HAS_DF_MODE__
  39. #define LIBGCC2_HAS_DF_MODE 1
  40. #else
  41. #define LIBGCC2_HAS_DF_MODE 0
  42. #endif
  43. #ifdef __LIBGCC_HAS_XF_MODE__
  44. #define LIBGCC2_HAS_XF_MODE 1
  45. #else
  46. #define LIBGCC2_HAS_XF_MODE 0
  47. #endif
  48. #ifdef __LIBGCC_HAS_TF_MODE__
  49. #define LIBGCC2_HAS_TF_MODE 1
  50. #else
  51. #define LIBGCC2_HAS_TF_MODE 0
  52. #endif
  53. #ifndef __LIBGCC_SF_MANT_DIG__
  54. #if LIBGCC2_HAS_SF_MODE
  55. #error __LIBGCC_SF_MANT_DIG__ not defined
  56. #else
  57. #define __LIBGCC_SF_MANT_DIG__ 0
  58. #endif
  59. #endif
  60. #ifndef __LIBGCC_DF_MANT_DIG__
  61. #if LIBGCC2_HAS_DF_MODE
  62. #error __LIBGCC_DF_MANT_DIG__ not defined
  63. #else
  64. #define __LIBGCC_DF_MANT_DIG__ 0
  65. #endif
  66. #endif
  67. #ifndef __LIBGCC_XF_MANT_DIG__
  68. #if LIBGCC2_HAS_XF_MODE
  69. #error __LIBGCC_XF_MANT_DIG__ not defined
  70. #else
  71. #define __LIBGCC_XF_MANT_DIG__ 0
  72. #endif
  73. #endif
  74. #ifndef __LIBGCC_TF_MANT_DIG__
  75. #if LIBGCC2_HAS_TF_MODE
  76. #error __LIBGCC_TF_MANT_DIG__ not defined
  77. #else
  78. #define __LIBGCC_TF_MANT_DIG__ 0
  79. #endif
  80. #endif
  81. /* FIXME: This #ifdef probably should be removed, ie. enable the test
  82. for mips too. */
  83. /* Don't use IBM Extended Double TFmode for TI->SF calculations.
  84. The conversion from long double to float suffers from double
  85. rounding, because we convert via double. In other cases, going
  86. through the software fp routines is much slower than the fallback. */
  87. #ifdef __powerpc__
  88. #define AVOID_FP_TYPE_CONVERSION(SIZE) (SIZE == 106)
  89. #elif defined(WIDEST_HARDWARE_FP_SIZE)
  90. #define AVOID_FP_TYPE_CONVERSION(SIZE) (SIZE > WIDEST_HARDWARE_FP_SIZE)
  91. #else
  92. #define AVOID_FP_TYPE_CONVERSION(SIZE) 0
  93. #endif
  94. /* In the first part of this file, we are interfacing to calls generated
  95. by the compiler itself. These calls pass values into these routines
  96. which have very specific modes (rather than very specific types), and
  97. these compiler-generated calls also expect any return values to have
  98. very specific modes (rather than very specific types). Thus, we need
  99. to avoid using regular C language type names in this part of the file
  100. because the sizes for those types can be configured to be anything.
  101. Instead we use the following special type names. */
  102. typedef int QItype __attribute__ ((mode (QI)));
  103. typedef unsigned int UQItype __attribute__ ((mode (QI)));
  104. typedef int HItype __attribute__ ((mode (HI)));
  105. typedef unsigned int UHItype __attribute__ ((mode (HI)));
  106. #if MIN_UNITS_PER_WORD > 1
  107. /* These typedefs are usually forbidden on dsp's with UNITS_PER_WORD 1. */
  108. typedef int SItype __attribute__ ((mode (SI)));
  109. typedef unsigned int USItype __attribute__ ((mode (SI)));
  110. #if __SIZEOF_LONG_LONG__ > 4
  111. /* These typedefs are usually forbidden on archs with UNITS_PER_WORD 2. */
  112. typedef int DItype __attribute__ ((mode (DI)));
  113. typedef unsigned int UDItype __attribute__ ((mode (DI)));
  114. #if MIN_UNITS_PER_WORD > 4
  115. /* These typedefs are usually forbidden on archs with UNITS_PER_WORD 4. */
  116. typedef int TItype __attribute__ ((mode (TI)));
  117. typedef unsigned int UTItype __attribute__ ((mode (TI)));
  118. #endif
  119. #endif
  120. #endif
  121. #if LIBGCC2_HAS_HF_MODE
  122. typedef float HFtype __attribute__ ((mode (HF)));
  123. typedef _Complex float HCtype __attribute__ ((mode (HC)));
  124. #endif
  125. #if LIBGCC2_HAS_SF_MODE
  126. typedef float SFtype __attribute__ ((mode (SF)));
  127. typedef _Complex float SCtype __attribute__ ((mode (SC)));
  128. #endif
  129. #if LIBGCC2_HAS_DF_MODE
  130. typedef float DFtype __attribute__ ((mode (DF)));
  131. typedef _Complex float DCtype __attribute__ ((mode (DC)));
  132. #endif
  133. #if LIBGCC2_HAS_XF_MODE
  134. typedef float XFtype __attribute__ ((mode (XF)));
  135. typedef _Complex float XCtype __attribute__ ((mode (XC)));
  136. #endif
  137. #if LIBGCC2_HAS_TF_MODE
  138. typedef float TFtype __attribute__ ((mode (TF)));
  139. typedef _Complex float TCtype __attribute__ ((mode (TC)));
  140. #endif
  141. typedef int cmp_return_type __attribute__((mode (__libgcc_cmp_return__)));
  142. typedef int shift_count_type __attribute__((mode (__libgcc_shift_count__)));
  143. /* Make sure that we don't accidentally use any normal C language built-in
  144. type names in the first part of this file. Instead we want to use *only*
  145. the type names defined above. The following macro definitions insure
  146. that if we *do* accidentally use some normal C language built-in type name,
  147. we will get a syntax error. */
  148. #define char bogus_type
  149. #define short bogus_type
  150. #define int bogus_type
  151. #define long bogus_type
  152. #define unsigned bogus_type
  153. #define float bogus_type
  154. #define double bogus_type
  155. /* Versions prior to 3.4.4 were not taking into account the word size for
  156. the 5 trapping arithmetic functions absv, addv, subv, mulv and negv. As
  157. a consequence, the si and di variants were always and the only ones emitted.
  158. To maintain backward compatibility, COMPAT_SIMODE_TRAPPING_ARITHMETIC is
  159. defined on platforms where it makes sense to still have the si variants
  160. emitted. As a bonus, their implementation is now correct. Note that the
  161. same mechanism should have been implemented for the di variants, but it
  162. turns out that no platform would define COMPAT_DIMODE_TRAPPING_ARITHMETIC
  163. if it existed. */
  164. #if LIBGCC2_UNITS_PER_WORD == 8
  165. #define W_TYPE_SIZE (8 * __CHAR_BIT__)
  166. #define Wtype DItype
  167. #define UWtype UDItype
  168. #define HWtype DItype
  169. #define UHWtype UDItype
  170. #define DWtype TItype
  171. #define UDWtype UTItype
  172. #ifdef LIBGCC2_GNU_PREFIX
  173. #define __NW(a,b) __gnu_ ## a ## di ## b
  174. #define __NDW(a,b) __gnu_ ## a ## ti ## b
  175. #else
  176. #define __NW(a,b) __ ## a ## di ## b
  177. #define __NDW(a,b) __ ## a ## ti ## b
  178. #endif
  179. #define COMPAT_SIMODE_TRAPPING_ARITHMETIC
  180. #elif LIBGCC2_UNITS_PER_WORD == 4
  181. #define W_TYPE_SIZE (4 * __CHAR_BIT__)
  182. #define Wtype SItype
  183. #define UWtype USItype
  184. #define HWtype SItype
  185. #define UHWtype USItype
  186. #define DWtype DItype
  187. #define UDWtype UDItype
  188. #ifdef LIBGCC2_GNU_PREFIX
  189. #define __NW(a,b) __gnu_ ## a ## si ## b
  190. #define __NDW(a,b) __gnu_ ## a ## di ## b
  191. #else
  192. #define __NW(a,b) __ ## a ## si ## b
  193. #define __NDW(a,b) __ ## a ## di ## b
  194. #endif
  195. #elif LIBGCC2_UNITS_PER_WORD == 2
  196. #define W_TYPE_SIZE (2 * __CHAR_BIT__)
  197. #define Wtype HItype
  198. #define UWtype UHItype
  199. #define HWtype HItype
  200. #define UHWtype UHItype
  201. #define DWtype SItype
  202. #define UDWtype USItype
  203. #ifdef LIBGCC2_GNU_PREFIX
  204. #define __NW(a,b) __gnu_ ## a ## hi ## b
  205. #define __NDW(a,b) __gnu_ ## a ## si ## b
  206. #else
  207. #define __NW(a,b) __ ## a ## hi ## b
  208. #define __NDW(a,b) __ ## a ## si ## b
  209. #endif
  210. #else
  211. #define W_TYPE_SIZE __CHAR_BIT__
  212. #define Wtype QItype
  213. #define UWtype UQItype
  214. #define HWtype QItype
  215. #define UHWtype UQItype
  216. #define DWtype HItype
  217. #define UDWtype UHItype
  218. #ifdef LIBGCC2_GNU_PREFIX
  219. #define __NW(a,b) __gnu_ ## a ## qi ## b
  220. #define __NDW(a,b) __gnu_ ## a ## hi ## b
  221. #else
  222. #define __NW(a,b) __ ## a ## qi ## b
  223. #define __NDW(a,b) __ ## a ## hi ## b
  224. #endif
  225. #endif
  226. #ifdef LIBGCC2_GNU_PREFIX
  227. #define __N(a) __gnu_ ## a
  228. #else
  229. #define __N(a) __ ## a
  230. #endif
  231. #define Wtype_MAX ((Wtype)(((UWtype)1 << (W_TYPE_SIZE - 1)) - 1))
  232. #define Wtype_MIN (- Wtype_MAX - 1)
  233. #if W_TYPE_SIZE == 8
  234. # define Wtype_MAXp1_F 0x1p8f
  235. #elif W_TYPE_SIZE == 16
  236. # define Wtype_MAXp1_F 0x1p16f
  237. #elif W_TYPE_SIZE == 32
  238. # define Wtype_MAXp1_F 0x1p32f
  239. #elif W_TYPE_SIZE == 64
  240. # define Wtype_MAXp1_F 0x1p64f
  241. #else
  242. # error "expand the table"
  243. #endif
  244. #define __muldi3 __NDW(mul,3)
  245. #define __divdi3 __NDW(div,3)
  246. #define __udivdi3 __NDW(udiv,3)
  247. #define __moddi3 __NDW(mod,3)
  248. #define __umoddi3 __NDW(umod,3)
  249. #define __negdi2 __NDW(neg,2)
  250. #define __lshrdi3 __NDW(lshr,3)
  251. #define __ashldi3 __NDW(ashl,3)
  252. #define __ashrdi3 __NDW(ashr,3)
  253. #define __cmpdi2 __NDW(cmp,2)
  254. #define __ucmpdi2 __NDW(ucmp,2)
  255. #define __divmoddi4 __NDW(divmod,4)
  256. #define __udivmoddi4 __NDW(udivmod,4)
  257. #define __fixunstfDI __NDW(fixunstf,)
  258. #define __fixtfdi __NDW(fixtf,)
  259. #define __fixunsxfDI __NDW(fixunsxf,)
  260. #define __fixxfdi __NDW(fixxf,)
  261. #define __fixunsdfDI __NDW(fixunsdf,)
  262. #define __fixdfdi __NDW(fixdf,)
  263. #define __fixunssfDI __NDW(fixunssf,)
  264. #define __fixsfdi __NDW(fixsf,)
  265. #define __floatdixf __NDW(float,xf)
  266. #define __floatditf __NDW(float,tf)
  267. #define __floatdidf __NDW(float,df)
  268. #define __floatdisf __NDW(float,sf)
  269. #define __floatundixf __NDW(floatun,xf)
  270. #define __floatunditf __NDW(floatun,tf)
  271. #define __floatundidf __NDW(floatun,df)
  272. #define __floatundisf __NDW(floatun,sf)
  273. #define __fixunsxfSI __NW(fixunsxf,)
  274. #define __fixunstfSI __NW(fixunstf,)
  275. #define __fixunsdfSI __NW(fixunsdf,)
  276. #define __fixunssfSI __NW(fixunssf,)
  277. #define __absvSI2 __NW(absv,2)
  278. #define __addvSI3 __NW(addv,3)
  279. #define __subvSI3 __NW(subv,3)
  280. #define __mulvSI3 __NW(mulv,3)
  281. #define __negvSI2 __NW(negv,2)
  282. #define __absvDI2 __NDW(absv,2)
  283. #define __addvDI3 __NDW(addv,3)
  284. #define __subvDI3 __NDW(subv,3)
  285. #define __mulvDI3 __NDW(mulv,3)
  286. #define __negvDI2 __NDW(negv,2)
  287. #define __ffsSI2 __NW(ffs,2)
  288. #define __clzSI2 __NW(clz,2)
  289. #define __ctzSI2 __NW(ctz,2)
  290. #define __clrsbSI2 __NW(clrsb,2)
  291. #define __popcountSI2 __NW(popcount,2)
  292. #define __paritySI2 __NW(parity,2)
  293. #define __ffsDI2 __NDW(ffs,2)
  294. #define __clzDI2 __NDW(clz,2)
  295. #define __ctzDI2 __NDW(ctz,2)
  296. #define __clrsbDI2 __NDW(clrsb,2)
  297. #define __popcountDI2 __NDW(popcount,2)
  298. #define __parityDI2 __NDW(parity,2)
  299. #define __clz_tab __N(clz_tab)
  300. #define __bswapsi2 __N(bswapsi2)
  301. #define __bswapdi2 __N(bswapdi2)
  302. #define __udiv_w_sdiv __N(udiv_w_sdiv)
  303. #define __clear_cache __N(clear_cache)
  304. #define __enable_execute_stack __N(enable_execute_stack)
  305. #ifndef __powisf2
  306. #define __powisf2 __N(powisf2)
  307. #endif
  308. #ifndef __powidf2
  309. #define __powidf2 __N(powidf2)
  310. #endif
  311. #ifndef __powitf2
  312. #define __powitf2 __N(powitf2)
  313. #endif
  314. #ifndef __powixf2
  315. #define __powixf2 __N(powixf2)
  316. #endif
  317. #ifndef __mulsc3
  318. #define __mulsc3 __N(mulsc3)
  319. #endif
  320. #ifndef __muldc3
  321. #define __muldc3 __N(muldc3)
  322. #endif
  323. #ifndef __mulxc3
  324. #define __mulxc3 __N(mulxc3)
  325. #endif
  326. #ifndef __multc3
  327. #define __multc3 __N(multc3)
  328. #endif
  329. #ifndef __divsc3
  330. #define __divsc3 __N(divsc3)
  331. #endif
  332. #ifndef __divdc3
  333. #define __divdc3 __N(divdc3)
  334. #endif
  335. #ifndef __divxc3
  336. #define __divxc3 __N(divxc3)
  337. #endif
  338. #ifndef __divtc3
  339. #define __divtc3 __N(divtc3)
  340. #endif
  341. extern DWtype __muldi3 (DWtype, DWtype);
  342. extern DWtype __divdi3 (DWtype, DWtype);
  343. extern UDWtype __udivdi3 (UDWtype, UDWtype);
  344. extern UDWtype __umoddi3 (UDWtype, UDWtype);
  345. extern DWtype __moddi3 (DWtype, DWtype);
  346. extern DWtype __divmoddi4 (DWtype, DWtype, DWtype *);
  347. /* __udivmoddi4 is static inline when building other libgcc2 portions. */
  348. #if (!defined (L_udivdi3) && !defined (L_divdi3) && \
  349. !defined (L_umoddi3) && !defined (L_moddi3) && \
  350. !defined (L_divmoddi4))
  351. extern UDWtype __udivmoddi4 (UDWtype, UDWtype, UDWtype *);
  352. #endif
  353. /* __negdi2 is static inline when building other libgcc2 portions. */
  354. #if !defined(L_divdi3) && !defined(L_moddi3)
  355. extern DWtype __negdi2 (DWtype);
  356. #endif
  357. extern DWtype __lshrdi3 (DWtype, shift_count_type);
  358. extern DWtype __ashldi3 (DWtype, shift_count_type);
  359. extern DWtype __ashrdi3 (DWtype, shift_count_type);
  360. /* __udiv_w_sdiv is static inline when building other libgcc2 portions. */
  361. #if (!defined(L_udivdi3) && !defined(L_divdi3) && \
  362. !defined(L_umoddi3) && !defined(L_moddi3))
  363. extern UWtype __udiv_w_sdiv (UWtype *, UWtype, UWtype, UWtype);
  364. #endif
  365. extern cmp_return_type __cmpdi2 (DWtype, DWtype);
  366. extern cmp_return_type __ucmpdi2 (UDWtype, UDWtype);
  367. #if MIN_UNITS_PER_WORD > 1
  368. extern SItype __bswapsi2 (SItype);
  369. #endif
  370. #if __SIZEOF_LONG_LONG__ > 4
  371. extern DItype __bswapdi2 (DItype);
  372. #endif
  373. extern Wtype __absvSI2 (Wtype);
  374. extern Wtype __addvSI3 (Wtype, Wtype);
  375. extern Wtype __subvSI3 (Wtype, Wtype);
  376. extern Wtype __mulvSI3 (Wtype, Wtype);
  377. extern Wtype __negvSI2 (Wtype);
  378. extern DWtype __absvDI2 (DWtype);
  379. extern DWtype __addvDI3 (DWtype, DWtype);
  380. extern DWtype __subvDI3 (DWtype, DWtype);
  381. extern DWtype __mulvDI3 (DWtype, DWtype);
  382. extern DWtype __negvDI2 (DWtype);
  383. #ifdef COMPAT_SIMODE_TRAPPING_ARITHMETIC
  384. #define __absvsi2 __N(absvsi2)
  385. #define __negvsi2 __N(negvsi2)
  386. #define __addvsi3 __N(addvsi3)
  387. #define __subvsi3 __N(subvsi3)
  388. #define __mulvsi3 __N(mulvsi3)
  389. extern SItype __absvsi2 (SItype);
  390. extern SItype __addvsi3 (SItype, SItype);
  391. extern SItype __subvsi3 (SItype, SItype);
  392. extern SItype __mulvsi3 (SItype, SItype);
  393. extern SItype __negvsi2 (SItype);
  394. #endif /* COMPAT_SIMODE_TRAPPING_ARITHMETIC */
  395. #undef int
  396. #if LIBGCC2_HAS_HF_MODE
  397. extern HCtype __divhc3 (HFtype, HFtype, HFtype, HFtype);
  398. extern HCtype __mulhc3 (HFtype, HFtype, HFtype, HFtype);
  399. #endif
  400. #if LIBGCC2_HAS_SF_MODE
  401. extern DWtype __fixsfdi (SFtype);
  402. extern SFtype __floatdisf (DWtype);
  403. extern SFtype __floatundisf (UDWtype);
  404. extern UWtype __fixunssfSI (SFtype);
  405. extern UDWtype __fixunssfDI (SFtype);
  406. extern SFtype __powisf2 (SFtype, int);
  407. extern SCtype __divsc3 (SFtype, SFtype, SFtype, SFtype);
  408. extern SCtype __mulsc3 (SFtype, SFtype, SFtype, SFtype);
  409. #endif
  410. #if LIBGCC2_HAS_DF_MODE
  411. extern DWtype __fixdfdi (DFtype);
  412. extern DFtype __floatdidf (DWtype);
  413. extern DFtype __floatundidf (UDWtype);
  414. extern UWtype __fixunsdfSI (DFtype);
  415. extern UDWtype __fixunsdfDI (DFtype);
  416. extern DFtype __powidf2 (DFtype, int);
  417. extern DCtype __divdc3 (DFtype, DFtype, DFtype, DFtype);
  418. extern DCtype __muldc3 (DFtype, DFtype, DFtype, DFtype);
  419. #endif
  420. #if LIBGCC2_HAS_XF_MODE
  421. extern DWtype __fixxfdi (XFtype);
  422. extern UDWtype __fixunsxfDI (XFtype);
  423. extern XFtype __floatdixf (DWtype);
  424. extern XFtype __floatundixf (UDWtype);
  425. extern UWtype __fixunsxfSI (XFtype);
  426. extern XFtype __powixf2 (XFtype, int);
  427. extern XCtype __divxc3 (XFtype, XFtype, XFtype, XFtype);
  428. extern XCtype __mulxc3 (XFtype, XFtype, XFtype, XFtype);
  429. #endif
  430. #if LIBGCC2_HAS_TF_MODE
  431. extern UDWtype __fixunstfDI (TFtype);
  432. extern DWtype __fixtfdi (TFtype);
  433. extern TFtype __floatditf (DWtype);
  434. extern TFtype __floatunditf (UDWtype);
  435. extern TFtype __powitf2 (TFtype, int);
  436. extern TCtype __divtc3 (TFtype, TFtype, TFtype, TFtype);
  437. extern TCtype __multc3 (TFtype, TFtype, TFtype, TFtype);
  438. #endif
  439. #define int bogus_type
  440. /* DWstructs are pairs of Wtype values in the order determined by
  441. __BYTE_ORDER__. */
  442. #if __BYTE_ORDER__ != __ORDER_LITTLE_ENDIAN__
  443. struct DWstruct {Wtype high, low;};
  444. #else
  445. struct DWstruct {Wtype low, high;};
  446. #endif
  447. /* We need this union to unpack/pack DImode values, since we don't have
  448. any arithmetic yet. Incoming DImode parameters are stored into the
  449. `ll' field, and the unpacked result is read from the struct `s'. */
  450. typedef union
  451. {
  452. struct DWstruct s;
  453. DWtype ll;
  454. } DWunion;
  455. /* Defined for L_popcount_tab. Exported here because some targets may
  456. want to use it for their own versions of the __popcount builtins. */
  457. extern const UQItype __popcount_tab[256];
  458. /* Defined for L_clz. Exported here because some targets may want to use
  459. it for their own versions of the __clz builtins. It contains the bit
  460. position of the first set bit for the numbers 0 - 255. This avoids the
  461. need for a separate table for the __ctz builtins. */
  462. extern const UQItype __clz_tab[256];
  463. #include "longlong.h"
  464. #undef int
  465. extern int __clzDI2 (UDWtype);
  466. extern int __clzSI2 (UWtype);
  467. extern int __ctzSI2 (UWtype);
  468. extern int __ctzDI2 (UDWtype);
  469. extern int __clrsbSI2 (Wtype);
  470. extern int __clrsbDI2 (DWtype);
  471. extern int __ffsSI2 (UWtype);
  472. extern int __ffsDI2 (DWtype);
  473. extern int __popcountSI2 (UWtype);
  474. extern int __popcountDI2 (UDWtype);
  475. extern int __paritySI2 (UWtype);
  476. extern int __parityDI2 (UDWtype);
  477. #define int bogus_type
  478. extern void __enable_execute_stack (void *);
  479. #ifndef HIDE_EXPORTS
  480. #pragma GCC visibility pop
  481. #endif
  482. #endif /* ! GCC_LIBGCC2_H */