diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-11-09 21:32:54 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-11-09 21:32:54 +0000 |
commit | 637c49dd0c68f97f67723ca407aa4464ddb02e72 (patch) | |
tree | 08562a6c84ecd38f07a149f80862a93cded59b73 /ace/ACE.cpp | |
parent | c821aa5fe638e7ca7601e8814de951475eaccf4a (diff) | |
download | ATCD-637c49dd0c68f97f67723ca407aa4464ddb02e72.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/ACE.cpp')
-rw-r--r-- | ace/ACE.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ace/ACE.cpp b/ace/ACE.cpp index 53668c04fda..9e02c9666e6 100644 --- a/ace/ACE.cpp +++ b/ace/ACE.cpp @@ -11,6 +11,9 @@ #include "ace/SString.h" #include "ace/Process.h" +// Hex characters. +const char ACE::hex_chars_[] = "0123456789abcdef"; + // Size of a VM page. size_t ACE::pagesize_ = 0; @@ -240,7 +243,7 @@ ACE::hash_pjw (const ACE_USHORT16 *str) * SUCH DAMAGE. */ -u_long ACE::crctab[] = +u_long ACE::crc_table_[] = { 0x0, 0x04c11db7, 0x09823b6e, 0x0d4326d9, 0x130476dc, 0x17c56b6b, @@ -302,7 +305,7 @@ u_long ACE::crctab[] = u_long ACE::crc32 (const char *string) { -#define COMPUTE(var, ch) (var) = (var) << 8 ^ crctab[(var) >> 24 ^ (ch)] +#define COMPUTE(var, ch) (var) = (var) << 8 ^ ACE::crc_table_[(var) >> 24 ^ (ch)] register u_long crc = 0; |