OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2012, 2013 Apple Inc. All rights reserved | 2 * Copyright (C) 2006, 2007, 2008, 2012, 2013 Apple Inc. All rights reserved |
3 * Copyright (C) Research In Motion Limited 2009. All rights reserved. | 3 * Copyright (C) Research In Motion Limited 2009. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 static unsigned avoidDeletedValue(unsigned hash) | 154 static unsigned avoidDeletedValue(unsigned hash) |
155 { | 155 { |
156 ASSERT(hash); | 156 ASSERT(hash); |
157 unsigned newHash = hash | (!(hash + 1) << 31); | 157 unsigned newHash = hash | (!(hash + 1) << 31); |
158 ASSERT(newHash); | 158 ASSERT(newHash); |
159 ASSERT(newHash != 0xFFFFFFFF); | 159 ASSERT(newHash != 0xFFFFFFFF); |
160 return newHash; | 160 return newHash; |
161 } | 161 } |
162 }; | 162 }; |
163 | 163 |
164 } | 164 } // namespace WTF |
165 | 165 |
166 using WTF::AlreadyHashed; | 166 using WTF::AlreadyHashed; |
167 using WTF::CaseFoldingHash; | 167 using WTF::CaseFoldingHash; |
168 using WTF::StringHash; | 168 using WTF::StringHash; |
169 | 169 |
170 #endif | 170 #endif |
OLD | NEW |