tc39 / ecmascript_simd

SIMD numeric type for EcmaScript
Other
543 stars 64 forks source link

SIMD.isFast #343

Open aylusltd opened 8 years ago

aylusltd commented 8 years ago

shouldn't this live on each individual function i.e.

SIMD.Universe.Int32x4.bitInsertIfTrue.isFast

as opposed to

SIMD.isFast(SIMD.Universe.Int32x4.bitInsertIfTrue)

?

I think it'd be easier for the developer to check at the time they're invoking their operation if it's "fast" that way, as well as that making it a static property as opposed to a runtime function.