Ejemplo n.º 1
0
float64 __truncxfdf2(long_double A)
{
#if __SIZEOF_LONG_DOUBLE__ == 12
	return floatx80_to_float64(A);
#else
	return float128_to_float64(A);
#endif
}
Ejemplo n.º 2
0
/* convert 128-bit float to 64-bit float */
void HELPER(ldxbr)(CPUS390XState *env, uint32_t f1, uint32_t f2)
{
    CPU_QuadU x2;

    x2.ll.upper = env->fregs[f2].ll;
    x2.ll.lower = env->fregs[f2 + 2].ll;
    env->fregs[f1].d = float128_to_float64(x2.q, &env->fpu_status);
    HELPER_LOG("%s: to 0x%ld\n", __func__, env->fregs[f1].d);
}