diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2009-05-01 02:25:58 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2009-05-01 02:25:58 +0000 |
commit | 39dd39596b97f09b2e84ed612e60a0402dc3ab41 (patch) | |
tree | e244aed80596da9fac78d06db2ed57a5f351fa16 /lib/util/wordaccess_gcc3_be.h | |
parent | 76bbc70fe011921c87f3a21a9175152bae293cdf (diff) | |
download | netpbm-mirror-39dd39596b97f09b2e84ed612e60a0402dc3ab41.tar.gz netpbm-mirror-39dd39596b97f09b2e84ed612e60a0402dc3ab41.tar.xz netpbm-mirror-39dd39596b97f09b2e84ed612e60a0402dc3ab41.zip |
improvements to efficient word access
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@904 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib/util/wordaccess_gcc3_be.h')
-rw-r--r-- | lib/util/wordaccess_gcc3_be.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/util/wordaccess_gcc3_be.h b/lib/util/wordaccess_gcc3_be.h index 6f5d86fc..5aa63521 100644 --- a/lib/util/wordaccess_gcc3_be.h +++ b/lib/util/wordaccess_gcc3_be.h @@ -4,16 +4,6 @@ * GCC (>=3.4), GLIBC * Big-Endian machines - - __builtin_clz is available on GCC 3.4 and above - - Note that the clz scheme does not work and requires adjustment - if long type does not make use of all bits for data storage. - - This is unlikely. According to GNU MP (http://www.swox.com/gmp/), - in rare cases such as Cray, there are smaller data types that take up - the same space as long, but leave the higher bits silent. Currently, - there are no known such cases for data type long. *===========================================================================*/ typedef unsigned long int wordint; @@ -31,10 +21,3 @@ wordintToBytes(wordintBytes * const bytesP, wordint const wordInt) { *(wordint *)bytesP = wordInt; } - - - -static __inline__ unsigned int -wordintClz(wordint const x) { - return (x==0 ? sizeof(wordint)*8 : __builtin_clzl(x)); -} |