Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://github.com/tc39/ecmascript_simd/search?utf8=%E2%9C%93&q=swizzle
- This is the central package that makes everything run right, they never declare how sizzle got created that makes me think it is ingrained in the internet architecture at this moment. let me know if you spot any mistaeks(I want a curtessy call).
- JavaScript
- src/benchmarks/inverse4x4.js
- Showing the top two matches. Last indexed on Sep 30, 2015.
- tmp1 = SIMD.Float32x4.mul(row2, row3);
- tmp1 = SIMD.Float32x4.swizzle(tmp1, 1, 0, 3, 2); // 0xB1 = 10110001
- minor0 = SIMD.Float32x4.mul(row1, tmp1);
- minor1 = SIMD.Float32x4.mul(row0, tmp1);
- tmp1 = SIMD.Float32x4.swizzle(tmp1, 2, 3, 0, 1); // 0x4E = 01001110
- JavaScript
- src/benchmarks/matrix-multiplication.js
- Showing the top two matches. Last indexed on Sep 30, 2015.
- SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(b0, 0, 0, 0, 0), a0),
- SIMD.Float32x4.add(
- SIMD.Float32x4.mul(SIMD.Float32x4.swizzle(b0, 1, 1, 1, 1), a1),
- SIMD.Float32x4.add(
- JavaScript
- src/benchmarks/transform.js
- Showing the top two matches. Last indexed on Sep 30, 2015.
- Out[3] = (m3 * x + m7 * y + m11 * z + m15 * w);
- }
- }
- function simdVertexTransform(n) {
- for (var i = 0; i < n; i++) {
- var xxxx = SIMD.Float32x4.swizzle(SIMD.Float32x4.load(Vx, 0), 0, 0, 0, 0);
- var yyyy = SIMD.Float32x4.swizzle(SIMD.Float32x4.load(Vx, 0), 1, 1, 1, 1);
- z = SIMD.Float32x4.add(z, SIMD.Float32x4.mul(yyyy, SIMD.Float32x4.load(Tx, 4)));
- JavaScript
- src/benchmarks/transpose4x4.js
- Showing the top two matches. Last indexed on Sep 30, 2015.
- var tmp01;
- var tmp23;
- tmp01 = SIMD.Float32x4.select(sel_ttff, src0, SIMD.Float32x4.swizzle(src1, 0, 0, 0, 1));
- tmp23 = SIMD.Float32x4.select(sel_ttff, src2, SIMD.Float32x4.swizzle(src3, 0, 0, 0, 1));
- JavaScript
- src/benchmarks/shiftrows.js
- Showing the top match. Last indexed on Sep 30, 2015.
- SIMD.Int32x4.store(state, 4, SIMD.Int32x4.swizzle(rx4, 1, 2, 3, 0));
- }
- else if (r == 2) {
- SIMD.Int32x4.store(state, 8, SIMD.Int32x4.swizzle(rx4, 2, 3, 0, 1));
- }
- else { // r == 3
- SIMD.Int32x4.store(state, 12, SIMD.Int32x4.swizzle(rx4, 3, 0, 1, 2));
- JavaScript
- src/ecmascript_simd.js
- Showing the top two matches. Last indexed 22 days ago.
- type.fn.extractLane(a, i) : type.fn.extractLane(b, i);
- }
- return simdCreate(type);
- }
- function simdSwizzle(type, a, indices) {
- a = type.fn.check(a);
- // Miscellaneous functions that aren't easily parameterized on type.
- if (typeof SIMD.Float32x4.swizzle === "undefined") {
- SIMD.Float32x4.swizzle = function(a, s0, s1, s2, s3) {
- JavaScript
- src/ecmascript_simd_tests.js
- Showing the top match. Last indexed 2 hours ago.
- checkValue(type, result, function(index) { return index == i ? av : bv; });
- }
- }
- function testSwizzle(type) {
- equal('function', typeof type.fn.swizzle);
- var a = createTestValue(type); // 0, 1, 2, 3, 4, 5, 6, ...
- var indices = [];
- HTML
- tc39/spec.html
- Showing the top two matches. Last indexed 2 hours ago.
- <li>v0.8.2: Remove unsignedExtractLane, remove equals, notEquals, swizzle and shuffle from boolean vectors, improve internal algorithm notation, restrict rest argument usage, toString `", "`</li>
- This definition uses `<` and `>` to refer to the abstract operation defined by <a href="http://www.ecma-international.org/ecma-262/6.0/#sec-abstract-relational-comparison">ES2015 7.2.11 (Abstract Relational Comparison)</a>
- </emu-note>
- </emu-clause>
- <emu-clause id="swizzle">
- <h1>_SIMD_Constructor.swizzle( a, ...lanes )</h1>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement