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/longlong.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/longlong.h')
-rw-r--r-- | gcc/longlong.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/longlong.h b/gcc/longlong.h index 01a0328..3f42347 100644 --- a/gcc/longlong.h +++ b/gcc/longlong.h @@ -1,6 +1,6 @@ /* longlong.h -- definitions for mixed size 32/64 bit arithmetic. - Copyright (C) 1991, 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2004 - Free Software Foundation, Inc. + Copyright (C) 1991, 1992, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2004, + 2005 Free Software Foundation, Inc. This definition file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public @@ -29,8 +29,7 @@ DItype, UDItype -- Signed and unsigned 64 bit types. On a 32 bit machine UWtype should typically be USItype; - on a 64 bit machine, UWtype should typically be UDItype. -*/ + on a 64 bit machine, UWtype should typically be UDItype. */ #define __BITS4 (W_TYPE_SIZE / 4) #define __ll_B ((UWtype) 1 << (W_TYPE_SIZE / 2)) @@ -42,6 +41,7 @@ #define UWtype USItype #define UHWtype USItype #define UDWtype UDItype +extern const UQItype __clz_tab[256] ATTRIBUTE_HIDDEN; #endif /* Define auxiliary asm macros. @@ -129,7 +129,6 @@ extern UDItype __udiv_qrnnd (UDItype *, UDItype, UDItype, UDItype); #define count_trailing_zeros(COUNT,X) ((COUNT) = __builtin_ctzl (X)) #define COUNT_LEADING_ZEROS_0 64 #else -extern const UQItype __clz_tab[] ATTRIBUTE_HIDDEN; #define count_leading_zeros(COUNT,X) \ do { \ UDItype __xr = (X), __t, __a; \ @@ -1312,7 +1311,6 @@ UDItype __umulsidi3 (USItype, USItype); #endif #if !defined (count_leading_zeros) -extern const UQItype __clz_tab[] ATTRIBUTE_HIDDEN; #define count_leading_zeros(count, x) \ do { \ UWtype __xr = (x); \ |