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

Unified Diff: runtime/lib/double.dart

Issue 2489713002: Remove getter p on double in the VM to control fractional precision. (Closed)
Patch Set: 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 | « no previous file | tests/standalone/fixed_precision_double_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/double.dart
diff --git a/runtime/lib/double.dart b/runtime/lib/double.dart
index 2fd2e974b3a647739fe5ff37349472818dc184d5..6a532ef98ade78dcafea189b81851b4945f5fb2a 100644
--- a/runtime/lib/double.dart
+++ b/runtime/lib/double.dart
@@ -275,11 +275,4 @@ class _Double implements double {
return LESS;
}
}
-
- static const int _FRACTIONAL_BITS = // Bits to keep after the decimal point.
- const int.fromEnvironment("doubleFractionalBits", defaultValue: 20);
- static const double _BIAS = 1.5 * (1 << (52 - _FRACTIONAL_BITS));
-
- // Returns this with only _FRACTIONAL_BITS bits after the decimal point.
- double get p => this + _BIAS - _BIAS;
}
« no previous file with comments | « no previous file | tests/standalone/fixed_precision_double_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698