@@ -86,9 +86,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
8686 static Cvar::Cvar<bool > common_floatExceptions_overflow (" common.floatExceptions.overflow" ,
8787 " enable floating point exception for operation producing an overflow" ,
8888 Cvar::INIT, false );
89- static Cvar::Cvar<bool > common_floatExceptions_test (" common.floatExceptions.test" ,
90- " test floating point exceptions" ,
91- Cvar::INIT, false );
9289#endif
9390
9491namespace Sys {
@@ -530,28 +527,6 @@ static void SetFloatingPointExceptions()
530527 #if defined(DAEMON_USE_ARCH_INTRINSICS_i686_sse)
531528 _MM_SET_EXCEPTION_MASK (_MM_GET_EXCEPTION_MASK () & ~sse_exceptions);
532529 #endif
533-
534- if (common_floatExceptions_test.Get ())
535- {
536- {
537- volatile float f = -1 .0f ;
538- Log::Warn (" Testing of INVALID floating point exception." );
539- Log::Warn (" Computing √%.0f…" , static_cast <float >(f));
540- Log::Warn (" Result of √%.0f: %.0f" , static_cast <float >(f), sqrt (f));
541- }
542- {
543- volatile float f = 0 .0f ;
544- Log::Warn (" Testing of DIVBYZERO floating point exception." );
545- Log::Warn (" Computing 1÷%.0f…" , static_cast <float >(f));
546- Log::Warn (" Result of 1÷%.0f: %.0f" , static_cast <float >(f), 1 /f);
547- }
548- {
549- volatile float f = std::numeric_limits<float >::max ();
550- Log::Warn (" Testing of OVERFLOW floating point exception." );
551- Log::Warn (" Computing 2×%.0f…" , static_cast <float >(f));
552- Log::Warn (" Result of 2×%.0f: %.0f" , static_cast <float >(f), 2 *f);
553- }
554- }
555530#endif
556531}
557532
0 commit comments