25 #ifndef _DAI_PLATFORM_H_
26 #define _DAI_PLATFORM_H_
32 template<
class RealType>
42 unsigned char buf[
sizeof(RealType)];
45 nanType nanGenerator = { 0 };
48 nanGenerator.buf[0] = 0x7F;
49 nanGenerator.buf[1] = 0xF0;
50 nanGenerator.buf[
sizeof(RealType) - 1] = 0x1;
52 nanGenerator.buf[
sizeof(RealType) - 1] = 0x7F;
53 nanGenerator.buf[
sizeof(RealType) - 2] = 0xF0;
54 nanGenerator.buf[0] = 0x1;
57 return nanGenerator.nan;