| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_BASE_BITS_H_ | 5 #ifndef V8_BASE_BITS_H_ |
| 6 #define V8_BASE_BITS_H_ | 6 #define V8_BASE_BITS_H_ |
| 7 | 7 |
| 8 #include "include/v8stdint.h" | 8 #include <stdint.h> |
| 9 #include "src/base/macros.h" | 9 #include "src/base/macros.h" |
| 10 #if V8_CC_MSVC | 10 #if V8_CC_MSVC |
| 11 #include <intrin.h> | 11 #include <intrin.h> |
| 12 #endif | 12 #endif |
| 13 #if V8_OS_WIN32 | 13 #if V8_OS_WIN32 |
| 14 #include "src/base/win32-headers.h" | 14 #include "src/base/win32-headers.h" |
| 15 #endif | 15 #endif |
| 16 | 16 |
| 17 namespace v8 { | 17 namespace v8 { |
| 18 namespace base { | 18 namespace base { |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 // SignedMulHighAndAdd32(lhs, rhs, acc) multiplies two signed 32-bit values | 197 // SignedMulHighAndAdd32(lhs, rhs, acc) multiplies two signed 32-bit values |
| 198 // |lhs| and |rhs|, extracts the most significant 32 bits of the result, and | 198 // |lhs| and |rhs|, extracts the most significant 32 bits of the result, and |
| 199 // adds the accumulate value |acc|. | 199 // adds the accumulate value |acc|. |
| 200 int32_t SignedMulHighAndAdd32(int32_t lhs, int32_t rhs, int32_t acc); | 200 int32_t SignedMulHighAndAdd32(int32_t lhs, int32_t rhs, int32_t acc); |
| 201 | 201 |
| 202 } // namespace bits | 202 } // namespace bits |
| 203 } // namespace base | 203 } // namespace base |
| 204 } // namespace v8 | 204 } // namespace v8 |
| 205 | 205 |
| 206 #endif // V8_BASE_BITS_H_ | 206 #endif // V8_BASE_BITS_H_ |
| OLD | NEW |