From c89cc8e243054cd8da22aa52f932471219c9a2e5 Mon Sep 17 00:00:00 2001 From: Mark Pulford Date: Tue, 3 Jan 2012 21:46:19 +1030 Subject: Document dtoa build options --- manual.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/manual.txt b/manual.txt index 72dd196..dca5b64 100644 --- a/manual.txt +++ b/manual.txt @@ -121,6 +121,22 @@ DISABLE_INVALID_NUMBERS:: Recommended on platforms where ++strtod++(3) / the +cjson.refuse_invalid_numbers+ runtime configuration to +true+. +Built-in dtoa() support +^^^^^^^^^^^^^^^^^^^^^^^ + +Lua CJSON may be built with David Gay's +http://www.netlib.org/fp/[floating point conversion routines]. This +can increase overall performance by 50% or more on some platforms when +converting data number heavy data. However, this option reduces +portability and is disabled by default. + +[horizontal] +USE_INTERNAL_DTOA:: Enable internal number conversion routines. +IEEE_BIG_ENDIAN:: Must be set on big endian architectures. +MULTIPLE_THREADS:: Must be set when Lua CJSON may be used in a + multi-threaded application. Requries _pthreads_. + + API (Functions) --------------- -- cgit v1.2.3-55-g6feb