15 Oct
2008
15 Oct
'08
10:04 p.m.
Jacek Caban <jacek(a)codeweavers.com> writes:
Alexandre Julliard wrote:
I'd suggest to take advantage of the variant union instead of copying all these glibc definitions. Something like
#ifdef NAN V_R8(&vt) = NAN; #else V_I8(&vt) = nan_magic_pattern; #endif
The problem is that nan_magic_pattern would have to be 8 bytes and AFAIK there is no portable way to do it without ugly casts like in attached patch.
Something like (ULONGLONG)0x7ff80000 << 32 should do the trick. -- Alexandre Julliard julliard(a)winehq.org