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

Side by Side Diff: runtime/vm/double_internals.h

Issue 9209001: Move utils.h and utils.cc from runtime/vm to runtime/platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addresed new comments from ager@ Created 8 years, 11 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 | « runtime/vm/disassembler_x64.cc ('k') | runtime/vm/globals.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, 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 VM_DOUBLE_INTERNALS_H_ 5 #ifndef VM_DOUBLE_INTERNALS_H_
6 #define VM_DOUBLE_INTERNALS_H_ 6 #define VM_DOUBLE_INTERNALS_H_
7 7
8 #include "vm/utils.h" 8 #include "platform/utils.h"
9 9
10 namespace dart { 10 namespace dart {
11 11
12 // We assume that doubles and uint64_t have the same endianness. 12 // We assume that doubles and uint64_t have the same endianness.
13 static uint64_t double_to_uint64(double d) { return bit_cast<uint64_t>(d); } 13 static uint64_t double_to_uint64(double d) { return bit_cast<uint64_t>(d); }
14 14
15 // Helper functions for doubles. 15 // Helper functions for doubles.
16 class DoubleInternals { 16 class DoubleInternals {
17 public: 17 public:
18 static const int kSignificandSize = 53; 18 static const int kSignificandSize = 53;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 static const int kPhysicalSignificandSize = 52; // Excludes the hidden bit. 71 static const int kPhysicalSignificandSize = 52; // Excludes the hidden bit.
72 static const int kExponentBias = 0x3FF + kPhysicalSignificandSize; 72 static const int kExponentBias = 0x3FF + kPhysicalSignificandSize;
73 static const int kDenormalExponent = -kExponentBias + 1; 73 static const int kDenormalExponent = -kExponentBias + 1;
74 74
75 const uint64_t d64_; 75 const uint64_t d64_;
76 }; 76 };
77 77
78 } // namespace dart 78 } // namespace dart
79 79
80 #endif // VM_DOUBLE_INTERNALS_H_ 80 #endif // VM_DOUBLE_INTERNALS_H_
OLDNEW
« no previous file with comments | « runtime/vm/disassembler_x64.cc ('k') | runtime/vm/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698