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

Unified Diff: runtime/vm/double_internals.h

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/double_conversion.cc ('k') | runtime/vm/exceptions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/double_internals.h
diff --git a/runtime/vm/double_internals.h b/runtime/vm/double_internals.h
index 4a55548cf2064bfc71b436f3c91a28aaedcfda29..87125be35c56271f3744d7d5e3194e6f34992c09 100644
--- a/runtime/vm/double_internals.h
+++ b/runtime/vm/double_internals.h
@@ -10,7 +10,9 @@
namespace dart {
// We assume that doubles and uint64_t have the same endianness.
-static uint64_t double_to_uint64(double d) { return bit_cast<uint64_t>(d); }
+static uint64_t double_to_uint64(double d) {
+ return bit_cast<uint64_t>(d);
+}
// Helper functions for doubles.
class DoubleInternals {
@@ -20,9 +22,7 @@ class DoubleInternals {
explicit DoubleInternals(double d) : d64_(double_to_uint64(d)) {}
// Returns the double's bit as uint64.
- uint64_t AsUint64() const {
- return d64_;
- }
+ uint64_t AsUint64() const { return d64_; }
int Exponent() const {
if (IsDenormal()) return kDenormalExponent;
@@ -58,7 +58,7 @@ class DoubleInternals {
int Sign() const {
uint64_t d64 = AsUint64();
- return (d64 & kSignMask) == 0? 1: -1;
+ return (d64 & kSignMask) == 0 ? 1 : -1;
}
private:
« no previous file with comments | « runtime/vm/double_conversion.cc ('k') | runtime/vm/exceptions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698