| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 // TODO(palmer): The only caller of this code in Blink is PartitionAlloc. When | 31 // TODO(palmer): The only caller of this code in Blink is PartitionAlloc. When |
| 32 // PA is moved to base, we can remove this file. | 32 // PA is moved to base, we can remove this file. |
| 33 // https://bugs.chromium.org/p/chromium/issues/detail?id=632441 | 33 // https://bugs.chromium.org/p/chromium/issues/detail?id=632441 |
| 34 | 34 |
| 35 #ifndef WTF_BitwiseOperations_h | 35 #ifndef WTF_BitwiseOperations_h |
| 36 #define WTF_BitwiseOperations_h | 36 #define WTF_BitwiseOperations_h |
| 37 | 37 |
| 38 #include "base/bits.h" | 38 #include "base/bits.h" |
| 39 #include "wtf/CPU.h" | 39 #include "platform/wtf/CPU.h" |
| 40 | 40 |
| 41 namespace WTF { | 41 namespace WTF { |
| 42 | 42 |
| 43 using base::bits::CountLeadingZeroBits32; | 43 using base::bits::CountLeadingZeroBits32; |
| 44 using base::bits::CountLeadingZeroBitsSizeT; | 44 using base::bits::CountLeadingZeroBitsSizeT; |
| 45 | 45 |
| 46 #if CPU(64BIT) | 46 #if CPU(64BIT) |
| 47 using base::bits::CountLeadingZeroBits64; | 47 using base::bits::CountLeadingZeroBits64; |
| 48 #endif | 48 #endif |
| 49 | 49 |
| 50 } // namespace WTF | 50 } // namespace WTF |
| 51 | 51 |
| 52 #endif // WTF_BitwiseOperations_h | 52 #endif // WTF_BitwiseOperations_h |
| OLD | NEW |