Comments (8)
These methods perform a bit-wise copy of the 128-bit value and materialize them in a new instance with a new type.
from ecmascript_simd.
Please don't lumber the names with "clone" prefixes. For JS, "toXXX" should produce fresh value per call of the XXX type, so you're good. We don't want something that returns |this| some of the time, even if the instance is immutable.
/be
from ecmascript_simd.
Reopened:
Perfect bit-wise cast:
bitToFloat32x4
bitToUint32x4
Standard conversions (will alter the values):
toFloat32x4
toUint32x4
from ecmascript_simd.
Done in polyfill.
from ecmascript_simd.
Sorry to be slow on the bikeshed draw: if we put a word before "to", I'd advocate a verb, in this case "cast". Of you want bits use the plural "bitsToYYY". Whaddya think?
/be
from ecmascript_simd.
How about:
castBitsToYYY
castValuesToYYY
?
from ecmascript_simd.
Verbing nouns is ok in the interest of brevity, so I'd go with just
bitsToYYY
The "bits" connotes reinterpret_cast to hackers, I bet (check me on this with a small sample of colleagues).
Brevity wins at some point, I'm happy with bitsToYYY.
/be
from ecmascript_simd.
bitsToYYY and castToYYYY it is.
from ecmascript_simd.
Related Issues (20)
- Anything compiled via emscripten with SIMD=1 fails in Microsoft Edge HOT 3
- Can this API be provided as a standard module rather than globals? HOT 23
- Polyfill load index only accepts Int32 values, spec accepts 0 - 2^53-1 HOT 13
- Polyfill simdCheckLaneIndex requires Int32 values, spec applies ToNumber first HOT 3
- Support integer mulHigh ? HOT 7
- Clarification of SIMD objects vs values HOT 3
- Why is shift right modulo lane bit width? HOT 3
- Semantics of minNum and maxNum don't match IEEE 754-2008 for signaling NaNs HOT 10
- SIMD.isFast
- Problematic HOT 2
- First high-level library for SIMD
- SIMD uint8x16 to 4 of uint32x4 with transpose? HOT 9
- Link to asm.js version of the spec? (no load3 or store3?)
- Odd spec layout issues HOT 4
- Is this still an active project? HOT 3
- Explicit rounding modes
- Reduce operations
- Poor naming of "splat"
- Consider using variable (scalable) vectors for more portable code that can adjust to width of vector.
- Float16 / bfloat16 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ecmascript_simd.