OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 /** | 5 /** |
6 * Specialized integers and floating point numbers, | 6 * Specialized integers and floating point numbers, |
7 * with SIMD support and efficient lists. | 7 * with SIMD support and efficient lists. |
8 */ | 8 */ |
9 library dart.typed_data.implementation; | 9 library dart.typed_data.implementation; |
10 | 10 |
(...skipping 1988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1999 Float64x2 max(Float64x2 other) { | 1999 Float64x2 max(Float64x2 other) { |
2000 return new NativeFloat64x2._doubles(x > other.x ? x : other.x, | 2000 return new NativeFloat64x2._doubles(x > other.x ? x : other.x, |
2001 y > other.y ? y : other.y); | 2001 y > other.y ? y : other.y); |
2002 } | 2002 } |
2003 | 2003 |
2004 /// Returns the lane-wise square root of [this]. | 2004 /// Returns the lane-wise square root of [this]. |
2005 Float64x2 sqrt() { | 2005 Float64x2 sqrt() { |
2006 return new NativeFloat64x2._doubles(Math.sqrt(x), Math.sqrt(y)); | 2006 return new NativeFloat64x2._doubles(Math.sqrt(x), Math.sqrt(y)); |
2007 } | 2007 } |
2008 } | 2008 } |
OLD | NEW |