Revision: 23124
Author:   bmeu...@chromium.org
Date:     Thu Aug 14 09:31:52 2014 UTC
Log:      Really fix windows now.

TBR=ja...@chromium.org

Review URL: https://codereview.chromium.org/472783002
http://code.google.com/p/v8/source/detail?r=23124

Modified:
 /branches/bleeding_edge/src/base/bits.h

=======================================
--- /branches/bleeding_edge/src/base/bits.h     Thu Aug 14 09:24:40 2014 UTC
+++ /branches/bleeding_edge/src/base/bits.h     Thu Aug 14 09:31:52 2014 UTC
@@ -14,34 +14,16 @@
 namespace base {
 namespace bits {

-#if V8_CC_MSVC
-
-#pragma intrinsic(_rotr)
-#pragma intrinsic(_rotr64)
-
-inline uint32_t RotateRight32(uint32_t value, uint32_t shift) {
-  return _rotr(value, shift);
-}
-
-
-inline uint64_t RotateRight64(uint64_t value, uint32_t shift) {
-  return _rotr64(value, shift);
-}
-
-#else  // V8_CC_MSVC
-
 inline uint32_t RotateRight32(uint32_t value, uint32_t shift) {
   if (shift == 0) return value;
   return (value >> shift) | (value << (32 - shift));
 }


-inline uint64_t RotateRight64(uint64_t value, uint32_t shift) {
+inline uint64_t RotateRight64(uint64_t value, uint64_t shift) {
   if (shift == 0) return value;
   return (value >> shift) | (value << (64 - shift));
 }
-
-#endif  // V8_CC_MSVC

 }  // namespace bits
 }  // namespace base

--
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to