Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: src/base/bits.h

Issue 469213002: [turbofan] Introduce WordRor machine operator. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix BUILD.gn Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « BUILD.gn ('k') | src/compiler/arm/instruction-selector-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef V8_BASE_BITS_H_
6 #define V8_BASE_BITS_H_
7
8 #include "include/v8stdint.h"
9
10 namespace v8 {
11 namespace base {
12 namespace bits {
13
14 inline uint32_t RotateRight32(uint32_t value, uint32_t shift) {
15 if (shift == 0) return value;
16 return (value >> shift) | (value << (32 - shift));
17 }
18
19
20 inline uint64_t RotateRight64(uint64_t value, uint64_t shift) {
21 if (shift == 0) return value;
22 return (value >> shift) | (value << (64 - shift));
23 }
24
25 } // namespace bits
26 } // namespace base
27 } // namespace v8
28
29 #endif // V8_BASE_BITS_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/compiler/arm/instruction-selector-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698