[Issue 7509] New: Allow SIMD variable contents to have all their	values changed to a single float variable
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Feb 15 08:15:46 PST 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=7509
           Summary: Allow SIMD variable contents to have all their values
                    changed to a single float variable
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: druntime
        AssignedTo: nobody at puremagic.com
        ReportedBy: junk.Nebster at gmail.com
--- Comment #0 from junk.Nebster at gmail.com 2012-02-15 08:15:45 PST ---
Sure this code should be allowed to compile?
In C, it is similar to _mm_set1_ps(b[i]);
import core.simd;
import std.stdio;
void load(float4 fl, const float a) {
  fl = a;
}
void main() {
  float4 fl;
  load(fl, 5);
  foreach(f; fl.array)
    writefln("%f", f);
}
-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list