summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 17:30:16 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 17:30:16 +0000
commitb74486be0ae6240834852c4a9d5f8ea3a1c92fff (patch)
treec5f6bc5aefed5712f27c84dbc55609f90fdd269b /src/util.c
parentReleasing progress-linux version 3.45.2-1~progress7.99u1. (diff)
downloadsqlite3-b74486be0ae6240834852c4a9d5f8ea3a1c92fff.tar.xz
sqlite3-b74486be0ae6240834852c4a9d5f8ea3a1c92fff.zip
Merging upstream version 3.45.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index dd49902..ca886a1 100644
--- a/src/util.c
+++ b/src/util.c
@@ -68,6 +68,19 @@ int sqlite3IsNaN(double x){
}
#endif /* SQLITE_OMIT_FLOATING_POINT */
+#ifndef SQLITE_OMIT_FLOATING_POINT
+/*
+** Return true if the floating point value is NaN or +Inf or -Inf.
+*/
+int sqlite3IsOverflow(double x){
+ int rc; /* The value return */
+ u64 y;
+ memcpy(&y,&x,sizeof(y));
+ rc = IsOvfl(y);
+ return rc;
+}
+#endif /* SQLITE_OMIT_FLOATING_POINT */
+
/*
** Compute a string length that is limited to what can be stored in
** lower 30 bits of a 32-bit signed integer.