diff options
author | Petar Dimoski <petar.dimoski@seavus.com> | 2012-01-25 15:16:39 +0100 |
---|---|---|
committer | Viktor Mladenovski <viktor.mladenovski@seavus.com> | 2012-05-25 14:43:12 +0200 |
commit | 10184ae5b432f3dd7e014afb9a8f0ea0cd880e26 (patch) | |
tree | 135e6fba0d83cbae52db8cd2fbb3ff0c9a494f44 /source/LCM | |
parent | a08c80408fca5875a895747e0ea6dc1aca29df18 (diff) |
Clean up astyle and coverity errors
ST-Ericsson ID: 410188
ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10204
Change-Id: I70835353a592d1f1ad40743640a1d0827e56fd2e
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/45297
Tested-by: Aleksandar GASOSKI <aleksandar.gasoski@seavus.com>
Reviewed-by: Vlatko PISTOLOV <vlatko.pistolov@seavus.com>
Tested-by: Vlatko PISTOLOV <vlatko.pistolov@seavus.com>
Diffstat (limited to 'source/LCM')
-rw-r--r-- | source/LCM/Hash.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/source/LCM/Hash.cpp b/source/LCM/Hash.cpp index 7836604..94fb585 100644 --- a/source/LCM/Hash.cpp +++ b/source/LCM/Hash.cpp @@ -23,21 +23,21 @@ **********************************************************************/ const uint32 red[16] = { 0, - (0x1 << 16) ^ (0x1021 << 0), \ - (0x2 << 16) ^ (0x1021 << 1), \ - (0x3 << 16) ^ (0x1021 << 1) ^ (0x1021 << 0), \ - (0x4 << 16) ^ (0x1021 << 2), \ - (0x5 << 16) ^ (0x1021 << 2) ^ (0x1021 << 0), \ - (0x6 << 16) ^ (0x1021 << 2) ^ (0x1021 << 1), \ - (0x7 << 16) ^ (0x1021 << 2) ^ (0x1021 << 1) ^ (0x1021 << 0), \ - (0x8 << 16) ^ (0x1021 << 3), \ - (0x9 << 16) ^ (0x1021 << 3) ^ (0x1021 << 0), \ - (0xa << 16) ^ (0x1021 << 3) ^ (0x1021 << 1), \ - (0xb << 16) ^ (0x1021 << 3) ^ (0x1021 << 1) ^ (0x1021 << 0), \ - (0xc << 16) ^ (0x1021 << 3) ^ (0x1021 << 2), \ - (0xd << 16) ^ (0x1021 << 3) ^ (0x1021 << 2) ^ (0x1021 << 0), \ - (0xe << 16) ^ (0x1021 << 3) ^ (0x1021 << 2) ^ (0x1021 << 1), \ - (0xf << 16) ^ (0x1021 << 3) ^ (0x1021 << 2) ^ (0x1021 << 1) ^ (0x1021 << 0) + (0x1 << 16) ^(0x1021 << 0), \ + (0x2 << 16) ^(0x1021 << 1), \ + (0x3 << 16) ^(0x1021 << 1) ^(0x1021 << 0), \ + (0x4 << 16) ^(0x1021 << 2), \ + (0x5 << 16) ^(0x1021 << 2) ^(0x1021 << 0), \ + (0x6 << 16) ^(0x1021 << 2) ^(0x1021 << 1), \ + (0x7 << 16) ^(0x1021 << 2) ^(0x1021 << 1) ^(0x1021 << 0), \ + (0x8 << 16) ^(0x1021 << 3), \ + (0x9 << 16) ^(0x1021 << 3) ^(0x1021 << 0), \ + (0xa << 16) ^(0x1021 << 3) ^(0x1021 << 1), \ + (0xb << 16) ^(0x1021 << 3) ^(0x1021 << 1) ^(0x1021 << 0), \ + (0xc << 16) ^(0x1021 << 3) ^(0x1021 << 2), \ + (0xd << 16) ^(0x1021 << 3) ^(0x1021 << 2) ^(0x1021 << 0), \ + (0xe << 16) ^(0x1021 << 3) ^(0x1021 << 2) ^(0x1021 << 1), \ + (0xf << 16) ^(0x1021 << 3) ^(0x1021 << 2) ^(0x1021 << 1) ^(0x1021 << 0) }; Hash::Hash() @@ -188,7 +188,7 @@ uint16 Hash::crc16(const uint8 *p, int count, uint16 crc_in) register uint32 crc = crc_in; while (--count >= 0) { - crc = crc ^ (uint8) * p++ << 8; + crc = crc ^(uint8) * p++ << 8; crc ^= red[crc >> 16]; crc = (crc << 4); crc ^= red[crc >> 16]; |