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

Unified Diff: tests/lib/typed_data/float32x4_test.dart

Issue 14432004: Inline Float32x4 min,max,sqrt,reciprocal,reciprocalSqrt, and scale (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/typed_data/float32x4_test.dart
diff --git a/tests/lib/typed_data/float32x4_test.dart b/tests/lib/typed_data/float32x4_test.dart
index 7f6aa2f082d9ae91541ef8e798cd46d1a637a4c8..4d2c15e9a5b07948874dc57beeb86845b6514698 100644
--- a/tests/lib/typed_data/float32x4_test.dart
+++ b/tests/lib/typed_data/float32x4_test.dart
@@ -183,19 +183,19 @@ testSqrt() {
testReciprocal() {
var m = new Float32x4(1.0, 4.0, 9.0, 16.0);
m = m.reciprocal();
- Expect.approxEquals(1.0, m.x);
- Expect.approxEquals(0.25, m.y);
- Expect.approxEquals(0.1111111, m.z);
- Expect.approxEquals(0.0625, m.w);
+ Expect.approxEquals(1.0, m.x, 0.001);
+ Expect.approxEquals(0.25, m.y, 0.001);
+ Expect.approxEquals(0.1111111, m.z, 0.001);
+ Expect.approxEquals(0.0625, m.w, 0.001);
}
testReciprocalSqrt() {
var m = new Float32x4(1.0, 0.25, 0.111111, 0.0625);
m = m.reciprocalSqrt();
- Expect.approxEquals(1.0, m.x);
- Expect.approxEquals(2.0, m.y);
- Expect.approxEquals(3.0, m.z);
- Expect.approxEquals(4.0, m.w);
+ Expect.approxEquals(1.0, m.x, 0.001);
+ Expect.approxEquals(2.0, m.y, 0.001);
+ Expect.approxEquals(3.0, m.z, 0.001);
+ Expect.approxEquals(4.0, m.w, 0.001);
}
testSelect() {
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698