OLD | NEW |
1 // Copyright (c) 2014, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 #include <stdarg.h> | 5 #include <stdarg.h> |
6 #include <stdlib.h> | 6 #include <stdlib.h> |
7 | 7 |
8 #include "src/shared/utils.h" | 8 #include "src/shared/utils.h" |
9 | 9 |
10 #include "src/shared/platform.h" | 10 #include "src/shared/platform.h" |
11 | 11 |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 164 |
165 // Do a few final mixes of the hash to ensure the last few bytes are | 165 // Do a few final mixes of the hash to ensure the last few bytes are |
166 // well-incorporated. | 166 // well-incorporated. |
167 hash ^= hash >> 13; | 167 hash ^= hash >> 13; |
168 hash *= M; | 168 hash *= M; |
169 hash ^= hash >> 15; | 169 hash ^= hash >> 15; |
170 return hash; | 170 return hash; |
171 } | 171 } |
172 | 172 |
173 } // namespace fletch | 173 } // namespace fletch |
OLD | NEW |