diff options
author | Nick Clifton <nickc@redhat.com> | 2005-09-09 08:39:18 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 2005-09-09 08:39:18 +0000 |
commit | dcfae47c5e2507e490b278ae5db3365b31c9654e (patch) | |
tree | ac8df5d57a52e84f47e0d0efe6a0dda135e8261b /gcc/libgcc2.h | |
parent | a174b2f8ec2e48a091a8857099451912a69f5e99 (diff) | |
download | gcc-dcfae47c5e2507e490b278ae5db3365b31c9654e.zip gcc-dcfae47c5e2507e490b278ae5db3365b31c9654e.tar.gz gcc-dcfae47c5e2507e490b278ae5db3365b31c9654e.tar.bz2 |
Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
* Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
* libgcc2.c (__clz_tab[], __popcount_tab[]): Set the fixed dimension of
these arrays.
* libgcc2.h (__clz_tab[], __popcount_tab[]): Add exports of these arrays.
* longlong.h: Only provide a prototype for the __clz_tab[] array if this
header has not been included from libgcc2.h.
* config/stormy16/stormy16-lib2.c: Include libgcc2.h rather than defining
own types.
Provide prototypes for exported functions.
Use the __clz_tab[] and __popcount_tab[] arrays provided by libgcc2.c.
From-SVN: r104081
Diffstat (limited to 'gcc/libgcc2.h')
-rw-r--r-- | gcc/libgcc2.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/libgcc2.h b/gcc/libgcc2.h index 05901d8..56ffc61 100644 --- a/gcc/libgcc2.h +++ b/gcc/libgcc2.h @@ -373,6 +373,16 @@ typedef union DWtype ll; } DWunion; +/* Defined for L_popcount_tab. Exported here because some targets may + want to use it for their own versions of the __popcount builtins. */ +extern const UQItype __popcount_tab[256]; + +/* Defined for L_clz. Exported here because some targets may want to use + it for their own versions of the __clz builtins. It contains the bit + position of the first set bit for the numbers 0 - 255. This avoids the + need for a seperate table for the __ctz builtins. */ +extern const UQItype __clz_tab[256]; + #include "longlong.h" #undef int |