Skip to content
This repository was archived by the owner on Jan 26, 2022. It is now read-only.

Commit 6b188cb

Browse files
committed
Remove scale from the polyfill / spec.
1 parent 896e274 commit 6b188cb

File tree

2 files changed

+0
-35
lines changed

2 files changed

+0
-35
lines changed

src/ecmascript_simd.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -474,16 +474,6 @@ SIMD.float32x4.reciprocalSqrt = function(t) {
474474
Math.sqrt(1.0 / t.z), Math.sqrt(1.0 / t.w));
475475
}
476476

477-
/**
478-
* @return {float32x4} New instance of float32x4 with values of t
479-
* scaled by s.
480-
*/
481-
SIMD.float32x4.scale = function(t, s) {
482-
checkFloat32x4(t);
483-
var s4 = SIMD.float32x4.splat(s);
484-
return SIMD.float32x4.mul(t,s4);
485-
}
486-
487477
/**
488478
* @return {float32x4} New instance of float32x4 with square root of
489479
* values of t.
@@ -1021,15 +1011,6 @@ SIMD.float64x2.reciprocalSqrt = function(t) {
10211011
return SIMD.float64x2(Math.sqrt(1.0 / t.x), Math.sqrt(1.0 / t.y));
10221012
}
10231013

1024-
/**
1025-
* @return {float64x2} New instance of float32x4 with values of t
1026-
* scaled by s.
1027-
*/
1028-
SIMD.float64x2.scale = function(t, s) {
1029-
checkFloat64x2(t);
1030-
return SIMD.float64x2(s * t.x, s * t.y);
1031-
}
1032-
10331014
/**
10341015
* @return {float64x2} New instance of float32x4 with square root of
10351016
* values of t.

src/ecmascript_simd_tests.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -390,15 +390,6 @@ test('float32x4 reciprocal sqrt', function() {
390390
almostEqual(4.0, c.w);
391391
});
392392

393-
test('float32x4 scale', function() {
394-
var a = SIMD.float32x4(8.0, 4.0, 2.0, -2.0);
395-
var c = SIMD.float32x4.scale(a, 0.5);
396-
equal(4.0, c.x);
397-
equal(2.0, c.y);
398-
equal(1.0, c.z);
399-
equal(-1.0, c.w);
400-
});
401-
402393
test('float32x4 sqrt', function() {
403394
var a = SIMD.float32x4(16.0, 9.0, 4.0, 1.0);
404395
var c = SIMD.float32x4.sqrt(a);
@@ -1163,13 +1154,6 @@ test('float64x2 reciprocal sqrt', function() {
11631154
almostEqual(2.0, c.y);
11641155
});
11651156

1166-
test('float64x2 scale', function() {
1167-
var a = SIMD.float64x2(8.0, -2.0);
1168-
var c = SIMD.float64x2.scale(a, 0.5);
1169-
equal(4.0, c.x);
1170-
equal(-1.0, c.y);
1171-
});
1172-
11731157
test('float64x2 sqrt', function() {
11741158
var a = SIMD.float64x2(16.0, 9.0);
11751159
var c = SIMD.float64x2.sqrt(a);

0 commit comments

Comments
 (0)