static Double conv_f16_to_double( ULong input )
{
- // This all seems to be very alignment sensitive??
- __attribute__ ((aligned (64))) ULong src;
- __attribute__ ((aligned (64))) Double result;
- src = input;
- __asm__ __volatile__ ("xscvhpdp %x0,%x1" : "=wa" (result) : "wa" (src));
- return result;
+# if defined(__powerpc__)
+ // This all seems to be very alignment sensitive??
+ __attribute__ ((aligned (64))) ULong src;
+ __attribute__ ((aligned (64))) Double result;
+ src = input;
+ __asm__ __volatile__ ("xscvhpdp %x0,%x1" : "=wa" (result) : "wa" (src));
+ return result;
+# else
+ return 0.0;
+# endif
}