[Issue 8060] New: xmmstore cannot allocate store for optimized operation that uses int and floats
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 7 13:50:27 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8060
Summary: xmmstore cannot allocate store for optimized operation
that uses int and floats
Product: D
Version: D1 & D2
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: fawzi at gmx.ch
--- Comment #0 from Fawzi Mohamed <fawzi at gmx.ch> 2012-05-07 13:51:45 PDT ---
float invSqrt(float x) {
union fi {
float f;
int i;
}
fi v;
float xhalf = 0.5f * x;
v.f = x;
v.i = 0x5f375a86 - (v.i >> 1);
float y = x * v.f;
float z = y*(1.5f - xhalf * y * y);
return z;
}
or
float invSqrt(float x) {
float xhalf = 0.5f * x;
int i = *cast(int*)&x;
i = 0x5f375a86 - (i >> 1);
x = *cast(float*)&i;
x = x*(1.5f - xhalf * x * x);
return x;
}
fails with error
tym = xa
Internal error: ../ztc/cgxmm.c 567
when compiled with dmd 1.074 or 2.059 with -O
--
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