diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-11-24 21:06:36 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-11-24 21:45:22 -0700 |
commit | 5aaab254c02795622bdf42e348ad8473aa1fc643 (patch) | |
tree | 341c84b4a4867c96c3bcd4a63d34c244356054ce /hv.h | |
parent | a8bd0d47f960000fee81e97d55dd5e8bac15e034 (diff) | |
download | perl-5aaab254c02795622bdf42e348ad8473aa1fc643.tar.gz |
Remove "register" declarations
This finishes the removal of register declarations started by
eb578fdb5569b91c28466a4d1939e381ff6ceaf4. It neglected the ones in
function parameter declarations, and didn't include things in dist, ext,
and lib, which this does include
Diffstat (limited to 'hv.h')
-rw-r--r-- | hv.h | 56 |
1 files changed, 28 insertions, 28 deletions
@@ -188,10 +188,10 @@ struct xpvhv { #define PERL_HASH(hash,str,len) \ STMT_START { \ - register const char * const s_PeRlHaSh_tmp = (str); \ - register const unsigned char *s_PeRlHaSh = (const unsigned char *)s_PeRlHaSh_tmp; \ - register const unsigned char *end_PeRlHaSh = (const unsigned char *)s_PeRlHaSh + len; \ - register U32 hash_PeRlHaSh = (PERL_HASH_SEED_U16_x(len & 0xff) << 16) + len; \ + const char * const s_PeRlHaSh_tmp = (str); \ + const unsigned char *s_PeRlHaSh = (const unsigned char *)s_PeRlHaSh_tmp; \ + const unsigned char *end_PeRlHaSh = (const unsigned char *)s_PeRlHaSh + len; \ + U32 hash_PeRlHaSh = (PERL_HASH_SEED_U16_x(len & 0xff) << 16) + len; \ while (s_PeRlHaSh < end_PeRlHaSh) { \ hash_PeRlHaSh ^= PERL_HASH_SEED_U16_x((U8)*s_PeRlHaSh++); \ hash_PeRlHaSh += BUZZHASH_ROTL32(hash_PeRlHaSh,11); \ @@ -334,12 +334,12 @@ struct xpvhv { #endif #define PERL_HASH(hash,str,len) \ STMT_START { \ - register const char * const strtmp_PeRlHaSh = (str); \ - register const unsigned char *str_PeRlHaSh = (const unsigned char *)strtmp_PeRlHaSh; \ - register U32 len_PeRlHaSh = (len); \ - register U32 hash_PeRlHaSh = PERL_HASH_SEED_U32 ^ len; \ - register U32 tmp_PeRlHaSh; \ - register int rem_PeRlHaSh= len_PeRlHaSh & 3; \ + const char * const strtmp_PeRlHaSh = (str); \ + const unsigned char *str_PeRlHaSh = (const unsigned char *)strtmp_PeRlHaSh; \ + U32 len_PeRlHaSh = (len); \ + U32 hash_PeRlHaSh = PERL_HASH_SEED_U32 ^ len; \ + U32 tmp_PeRlHaSh; \ + int rem_PeRlHaSh= len_PeRlHaSh & 3; \ len_PeRlHaSh >>= 2; \ \ for (;len_PeRlHaSh > 0; len_PeRlHaSh--) { \ @@ -513,9 +513,9 @@ struct xpvhv { #if defined(UNALIGNED_SAFE) #define PERL_HASH(hash,str,len) STMT_START { \ - register const char * const s_PeRlHaSh_tmp = (str); \ - register const unsigned char *PeRlHaSh_ptr = (const unsigned char *)s_PeRlHaSh_tmp; \ - register I32 PeRlHaSh_len = len; \ + const char * const s_PeRlHaSh_tmp = (str); \ + const unsigned char *PeRlHaSh_ptr = (const unsigned char *)s_PeRlHaSh_tmp; \ + I32 PeRlHaSh_len = len; \ \ U32 PeRlHaSh_h1 = PERL_HASH_SEED_U32; \ U32 PeRlHaSh_k1; \ @@ -538,9 +538,9 @@ struct xpvhv { } STMT_END #else #define PERL_HASH(hash,str,len) STMT_START { \ - register const char * const s_PeRlHaSh_tmp = (str); \ - register const unsigned char *PeRlHaSh_ptr = (const unsigned char *)s_PeRlHaSh_tmp; \ - register I32 PeRlHaSh_len = len; \ + const char * const s_PeRlHaSh_tmp = (str); \ + const unsigned char *PeRlHaSh_ptr = (const unsigned char *)s_PeRlHaSh_tmp; \ + I32 PeRlHaSh_len = len; \ \ U32 PeRlHaSh_h1 = PERL_HASH_SEED_U32; \ U32 PeRlHaSh_k1; \ @@ -602,10 +602,10 @@ struct xpvhv { #define PERL_HASH_SEED_BYTES 4 #define PERL_HASH(hash,str,len) \ STMT_START { \ - register const char * const s_PeRlHaSh_tmp = (str); \ - register const unsigned char *s_PeRlHaSh = (const unsigned char *)s_PeRlHaSh_tmp; \ - register I32 i_PeRlHaSh = len; \ - register U32 hash_PeRlHaSh = PERL_HASH_SEED_U32 ^ len; \ + const char * const s_PeRlHaSh_tmp = (str); \ + const unsigned char *s_PeRlHaSh = (const unsigned char *)s_PeRlHaSh_tmp; \ + I32 i_PeRlHaSh = len; \ + U32 hash_PeRlHaSh = PERL_HASH_SEED_U32 ^ len; \ while (i_PeRlHaSh--) { \ hash_PeRlHaSh = ((hash_PeRlHaSh << 5) + hash_PeRlHaSh) + *s_PeRlHaSh++; \ } \ @@ -617,10 +617,10 @@ struct xpvhv { #define PERL_HASH_SEED_BYTES 4 #define PERL_HASH(hash,str,len) \ STMT_START { \ - register const char * const s_PeRlHaSh_tmp = (str); \ - register const unsigned char *s_PeRlHaSh = (const unsigned char *)s_PeRlHaSh_tmp; \ - register I32 i_PeRlHaSh = len; \ - register U32 hash_PeRlHaSh = PERL_HASH_SEED_U32 ^ len; \ + const char * const s_PeRlHaSh_tmp = (str); \ + const unsigned char *s_PeRlHaSh = (const unsigned char *)s_PeRlHaSh_tmp; \ + I32 i_PeRlHaSh = len; \ + U32 hash_PeRlHaSh = PERL_HASH_SEED_U32 ^ len; \ while (i_PeRlHaSh--) { \ hash_PeRlHaSh = (hash_PeRlHaSh << 6) + (hash_PeRlHaSh << 16) - hash_PeRlHaSh + *s_PeRlHaSh++; \ } \ @@ -637,10 +637,10 @@ struct xpvhv { * (http://burtleburtle.net/bob/hash/doobs.html) */ #define PERL_HASH(hash,str,len) \ STMT_START { \ - register const char * const s_PeRlHaSh_tmp = (str); \ - register const unsigned char *s_PeRlHaSh = (const unsigned char *)s_PeRlHaSh_tmp; \ - register I32 i_PeRlHaSh = len; \ - register U32 hash_PeRlHaSh = PERL_HASH_SEED_U32 ^ len; \ + const char * const s_PeRlHaSh_tmp = (str); \ + const unsigned char *s_PeRlHaSh = (const unsigned char *)s_PeRlHaSh_tmp; \ + I32 i_PeRlHaSh = len; \ + U32 hash_PeRlHaSh = PERL_HASH_SEED_U32 ^ len; \ while (i_PeRlHaSh--) { \ hash_PeRlHaSh += (U8)*s_PeRlHaSh++; \ hash_PeRlHaSh += (hash_PeRlHaSh << 10); \ |