http://d.puremagic.com/issues/show_bug.cgi?id=7509
--- Comment #3 from Manu <turkey...@gmail.com> 2012-03-13 11:40:54 PDT --- Note that as yet, constant's aren't actually properly supported. There are bugs, and the feature is incomplete. Down the track, if you want to use scalar variables, you should be encouraged to load it into a float4 using a the loadFloat(float f) api as far outside your hot code as possible, and use the produced 4x float vector instead. I have a fork with std.simd work in progress if you wanna have a peek: https://github.com/TurkeyMan/phobos/commits/master/std/simd.d Coming together, still a bit to do. This library will be efficient on all architecture, if only a little archaic, but it follows D conventions quite closely. I'd encourage people to build higher level maths libraries ontop of std.simd instead of implementing the hardware abstraction themselves. It'll make libraries a whole lot more portable, ctfe-able, and I expect it'll become very highly tuned with use, which will benefit all maths libs. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------