Lines Matching refs:vf1
115 static void Unary_operator_test_(fx32 vf1);
116 static void Binary_operator_test_(fx32 vf1, fx32 vf2);
582 fx32 vf1 = 0x0, vf2 = 0x0; in BasicOperator_test_() local
590 vf1 += 0x1 << i; in BasicOperator_test_()
591 Unary_operator_test_(vf1); in BasicOperator_test_()
597 vf1 = 0x0; in BasicOperator_test_()
600 vf1 += 0x1 << i; in BasicOperator_test_()
605 Binary_operator_test_(vf1, vf2); in BasicOperator_test_()
620 static void Unary_operator_test_(fx32 vf1) in Unary_operator_test_() argument
622 double vd1 = (double)FX_FX32_TO_F32(vf1); in Unary_operator_test_()
630 diff = fabs(FX2D(FX_Sqrt(vf1)) - sqrt(vd1)); in Unary_operator_test_()
634 diff = fabs(FX2D(FX_InvSqrt(vf1)) - 1.0 / sqrt(vd1)); in Unary_operator_test_()
638 diff = fabs(FX2D(FX_Inv(vf1)) - 1.0 / vd1); in Unary_operator_test_()
642 diff = fabs(FX64C2D(FX_InvFx64c(vf1)) - 1.0 / vd1); in Unary_operator_test_()
652 static void Binary_operator_test_(fx32 vf1, fx32 vf2) in Binary_operator_test_() argument
654 double vd1 = (double)FX_FX32_TO_F32(vf1); in Binary_operator_test_()
662 diff = fabs(FX2D(FX_Mul(vf1, vf2)) - vd1 * vd2); in Binary_operator_test_()
666 diff = fabs(FX2D(FX_Div(vf1, vf2)) - vd1 / vd2); in Binary_operator_test_()
670 diff = fabs(FX2D(FX_Mul32x64c(vf1, FX_FX32_TO_FX64C(vf2))) - vd1 * vd2); in Binary_operator_test_()
674 diff = fabs(FX64C2D(FX_DivFx64c(vf1, vf2)) - vd1 / vd2); in Binary_operator_test_()