diff options
author | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-09 08:39:18 +0000 |
---|---|---|
committer | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-09 08:39:18 +0000 |
commit | 2f26863b9e66c405df3a0a154bd534b0e17615f3 (patch) | |
tree | ac8df5d57a52e84f47e0d0efe6a0dda135e8261b /gcc/libgcc2.h | |
parent | 8a5a20bd510923e4abe9ad426450b5b6ee7c5935 (diff) | |
download | gcc-2f26863b9e66c405df3a0a154bd534b0e17615f3.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104081 138bc75d-0d04-0410-961f-82ee72b054a4
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 05901d89215..56ffc61f4be 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 |