| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_COMPILER_INTRINSICS_H_ | 5 #ifndef V8_COMPILER_INTRINSICS_H_ |
| 6 #define V8_COMPILER_INTRINSICS_H_ | 6 #define V8_COMPILER_INTRINSICS_H_ |
| 7 | 7 |
| 8 #include "src/base/macros.h" |
| 9 |
| 8 namespace v8 { | 10 namespace v8 { |
| 9 namespace internal { | 11 namespace internal { |
| 10 | 12 |
| 11 class CompilerIntrinsics { | 13 class CompilerIntrinsics { |
| 12 public: | 14 public: |
| 13 // Returns number of zero bits preceding least significant 1 bit. | 15 // Returns number of zero bits preceding least significant 1 bit. |
| 14 // Undefined for zero value. | 16 // Undefined for zero value. |
| 15 INLINE(static int CountTrailingZeros(uint32_t value)); | 17 INLINE(static int CountTrailingZeros(uint32_t value)); |
| 16 | 18 |
| 17 // Returns number of zero bits following most significant 1 bit. | 19 // Returns number of zero bits following most significant 1 bit. |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 return value; | 64 return value; |
| 63 } | 65 } |
| 64 | 66 |
| 65 #else | 67 #else |
| 66 #error Unsupported compiler | 68 #error Unsupported compiler |
| 67 #endif | 69 #endif |
| 68 | 70 |
| 69 } } // namespace v8::internal | 71 } } // namespace v8::internal |
| 70 | 72 |
| 71 #endif // V8_COMPILER_INTRINSICS_H_ | 73 #endif // V8_COMPILER_INTRINSICS_H_ |
| OLD | NEW |