aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-wasm.c
diff options
context:
space:
mode:
authordrh <>2024-10-02 11:34:11 +0000
committerdrh <>2024-10-02 11:34:11 +0000
commit010f9f8704563b904083363d236bd0adcab329d8 (patch)
tree1fa39298d1d676dd34a552151d0abec92417db90 /ext/wasm/api/sqlite3-wasm.c
parente8b2c92240388cad4d41e83a7383b179b7a78acd (diff)
downloadsqlite-010f9f8704563b904083363d236bd0adcab329d8.tar.gz
sqlite-010f9f8704563b904083363d236bd0adcab329d8.zip
Remove a few more traces of long double from the code.
FossilOrigin-Name: 11d6a89e4a25c3f884ff617036d239dc42522859400cd1f4674634f6c7adbb02
Diffstat (limited to 'ext/wasm/api/sqlite3-wasm.c')
-rw-r--r--ext/wasm/api/sqlite3-wasm.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/ext/wasm/api/sqlite3-wasm.c b/ext/wasm/api/sqlite3-wasm.c
index b689b426f..c5dd495e5 100644
--- a/ext/wasm/api/sqlite3-wasm.c
+++ b/ext/wasm/api/sqlite3-wasm.c
@@ -127,10 +127,6 @@
# define SQLITE_USE_URI 1
#endif
-#ifndef SQLITE_USE_LONG_DOUBLE
-# define SQLITE_USE_LONG_DOUBLE 0
-#endif
-
#ifdef SQLITE_WASM_EXTRA_INIT
# define SQLITE_EXTRA_INIT sqlite3_wasm_extra_init
#endif
@@ -163,8 +159,6 @@
# define SQLITE_OMIT_PROGRESS_CALLBACK
# undef SQLITE_OMIT_WAL
# define SQLITE_OMIT_WAL
-# undef SQLITE_USE_LONG_DOUBLE
-# define SQLITE_USE_LONG_DOUBLE 0
/*
The following OMITs do not work with the standard amalgamation, so
require a custom build:
@@ -227,23 +221,6 @@
// See also:
//__attribute__((export_name("theExportedName"), used, visibility("default")))
-#if 0
-/* Details at https://sqlite.org/forum/forumpost/cbfb0d0ac0a4e349
-**
-** Summary: changing to `double` reduces the wasm file size by a mere
-** 2k. It is hypothetically not possible that any clients rely on
-** doubles larger than 64-bit because there is no mapping between C
-** and JS for them. i.e. we "could" switch LONGDOUBLE_TYPE to double
-** for wasm builds with very little risk of problems. Clang 18.1 maps
-** `long double` to float128 but Emscripten doesn't (cannot) expose
-** that to JS.
-**
-** See also: SQLITE_USE_LONG_DOUBLE
-*/
-#undef LONGDOUBLE_TYPE
-#define LONGDOUBLE_TYPE double
-#endif
-
/*
** Which sqlite3.c we're using needs to be configurable to enable
** building against a custom copy, e.g. the SEE variant. Note that we