@@ -79,9 +79,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7979 static Cvar::Cvar<bool > common_floatExceptions_overflow (" common.floatExceptions.overflow" ,
8080 " enable floating point exception for operation producing an overflow" ,
8181 Cvar::INIT, false );
82- static Cvar::Cvar<bool > common_floatExceptions_test (" common.floatExceptions.test" ,
83- " test floating point exceptions" ,
84- Cvar::INIT, false );
8582#endif
8683
8784namespace Sys {
@@ -498,28 +495,6 @@ static void SetFloatingPointExceptions()
498495 unsigned int current;
499496 _controlfp_s (¤t, exceptions, _MCW_EM);
500497 #endif
501-
502- if (common_floatExceptions_test.Get ())
503- {
504- {
505- volatile float f = -1 .0f ;
506- Log::Warn (" Testing of INVALID floating point exception." );
507- Log::Warn (" Computing √%.0f…" , static_cast <float >(f));
508- Log::Warn (" Result of √%.0f: %.0f" , static_cast <float >(f), sqrt (f));
509- }
510- {
511- volatile float f = 0 .0f ;
512- Log::Warn (" Testing of DIVBYZERO floating point exception." );
513- Log::Warn (" Computing 1÷%.0f…" , static_cast <float >(f));
514- Log::Warn (" Result of 1÷%.0f: %.0f" , static_cast <float >(f), 1 /f);
515- }
516- {
517- volatile float f = std::numeric_limits<float >::max ();
518- Log::Warn (" Testing of OVERFLOW floating point exception." );
519- Log::Warn (" Computing 2×%.0f…" , static_cast <float >(f));
520- Log::Warn (" Result of 2×%.0f: %.0f" , static_cast <float >(f), 2 *f);
521- }
522- }
523498#endif
524499}
525500
0 commit comments