Example #1
0
float32 __truncxfsf2(long_double A)
{
#if __SIZEOF_LONG_DOUBLE__ == 12
	return floatx80_to_float32(A);
#else
	return float128_to_float32(A);
#endif
}
Example #2
0
/* convert 128-bit float to 32-bit float */
void HELPER(lexbr)(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].l.upper = float128_to_float32(x2.q, &env->fpu_status);
    HELPER_LOG("%s: to 0x%d\n", __func__, env->fregs[f1].l.upper);
}