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

Side by Side Diff: runtime/platform/utils_android.h

Issue 10823209: Add support for building the Dart VM for Android OS. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix Directory::CreateTemp("") to work on Android. Also fix platform_test.dart to know about Android… Created 8 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef PLATFORM_UTILS_LINUX_H_ 5 #ifndef PLATFORM_UTILS_ANDROID_H_
6 #define PLATFORM_UTILS_LINUX_H_ 6 #define PLATFORM_UTILS_ANDROID_H_
7 7
8 namespace dart { 8 namespace dart {
9 9
10 inline int Utils::CountTrailingZeros(uword x) { 10 inline int Utils::CountTrailingZeros(uword x) {
11 #if defined(ARCH_IS_32_BIT) 11 #if defined(ARCH_IS_32_BIT)
12 return __builtin_ctzl(x); 12 return __builtin_ctzl(x);
13 #elif defined(ARCH_IS_64_BIT) 13 #elif defined(ARCH_IS_64_BIT)
14 return __builtin_ctzll(x); 14 return __builtin_ctzll(x);
15 #else 15 #else
16 #error Architecture is not 32-bit or 64-bit. 16 #error Architecture is not 32-bit or 64-bit.
17 #endif 17 #endif
18 }; 18 };
19 19
20 } // namespace dart 20 } // namespace dart
21 21
22 #endif // PLATFORM_UTILS_LINUX_H_ 22 #endif // PLATFORM_UTILS_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698