dylan-lang / opendylan

Open Dylan compiler and IDE
http://opendylan.org/
Other
458 stars 69 forks source link

SSE support #455

Open waywardmonkeys opened 11 years ago

waywardmonkeys commented 11 years ago

This is an issue to start talking about SSE support.

I'd like to see a new raw type that is:

  1. 128 bits for a float[4] that can be passed to the SSE intrinsics.
  2. has the proper alignment

Perhaps we'd want an additional one that is 256 bits for AVX support.

On top of that, I think we can provide some primitives that provide the same functionality present in https://github.com/scoopr/vectorial/tree/master/include/vectorial

Perhaps we'd be able present this at the Dylan level as limited(<vector>, of: <float>, size: 4) (and size: 3 as well?) or perhaps it would just be a high level type of its own?

It would be nice if this didn't pay the penalty that using <double-float> does in terms of requiring a lot of extra allocations.

hannesm commented 11 years ago

this moved to the wiki https://github.com/dylan-lang/opendylan/wiki/SSE-Math , didn't it? @waywardmonkeys