| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkChecksum_DEFINED | 8 #ifndef SkChecksum_DEFINED |
| 9 #define SkChecksum_DEFINED | 9 #define SkChecksum_DEFINED |
| 10 | 10 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 * define. | 126 * define. |
| 127 */ | 127 */ |
| 128 if (8 == sizeof(result)) { | 128 if (8 == sizeof(result)) { |
| 129 result ^= result >> HALFBITS; | 129 result ^= result >> HALFBITS; |
| 130 } | 130 } |
| 131 return static_cast<uint32_t>(result); | 131 return static_cast<uint32_t>(result); |
| 132 } | 132 } |
| 133 }; | 133 }; |
| 134 | 134 |
| 135 #endif | 135 #endif |
| OLD | NEW |