From ac76d963b0e4b70c17753b22833c630f3d71cd1b Mon Sep 17 00:00:00 2001 From: Vincent St-Amour Date: Mon, 17 Jan 2011 17:30:48 -0500 Subject: [PATCH] Enable single-precision floats by default. --- collects/scribblings/reference/numbers.scrbl | 9 ++++----- src/configure | 6 ++++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/collects/scribblings/reference/numbers.scrbl b/collects/scribblings/reference/numbers.scrbl index 989317c8e3..a4da850099 100644 --- a/collects/scribblings/reference/numbers.scrbl +++ b/collects/scribblings/reference/numbers.scrbl @@ -43,11 +43,10 @@ imaginary part is a real number. Inexact real numbers are implemented as either single- or double-precision @as-index{IEEE floating-point numbers}---the latter -by default, and the former only when support for 32-bit inexact -numbers is specifically enabled when the run-time system is built, and -only when a computation starts with numerical constants specified as -single-precision numbers. Inexact real numbers that are represented as -double-precision floating-point numbers are @deftech{flonums}. +by default, and the former only when a computation starts with +numerical constants specified as single-precision numbers. Inexact +real numbers that are represented as double-precision floating-point +numbers are @deftech{flonums}. The precision and size of exact numbers is limited only by available memory (and the precision of operations that can produce irrational diff --git a/src/configure b/src/configure index 02106880ef..6b13c11239 100755 --- a/src/configure +++ b/src/configure @@ -1339,7 +1339,7 @@ Optional Features: --enable-account 3m: use memory-accounting GC (enabled by default) --enable-compact 3m: use compact GC (no accounting) --enable-backtrace 3m: support GC backtrace dumps - --enable-float include support for single-precision floats + --enable-float single-precision floats support (enabled by default) --enable-floatinstead compile to use single-precision by default --enable-pthread link with pthreads --enable-stackup assume "up" if stack direction cannot be determined @@ -1913,6 +1913,8 @@ fi # Check whether --enable-float was given. if test "${enable_float+set}" = set; then enableval=$enable_float; +else + enable_float=yes fi # Check whether --enable-floatinstead was given. @@ -2225,7 +2227,7 @@ show_explicitly_enabled "${enable_sgcdebug}" "SGC debug mode" show_explicitly_enabled "${enable_compact}" "Compact 3m GC" show_explicitly_enabled "${enable_backtrace}" "3m GC backtraces" -show_explicitly_enabled "${enable_float}" "Single-precision floats" +show_explicitly_disabled "${enable_float}" "Single-precision floats" show_explicitly_enabled "${enable_floatinstead}" "Single-precision default floats" show_explicitly_enabled "${enable_pthread}" "pthreads"