aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2008-07-11 16:19:09 +0000
committerdrh <drh@noemail.net>2008-07-11 16:19:09 +0000
commit17a7fa68d110b1ce1d3991b165159fe6e636f493 (patch)
treebe2cd89698e4c0422c6829c225c71f87cfa0aae0 /src
parent34004cebb6504ede397ee51c529e1478adf45a6e (diff)
downloadsqlite-17a7fa68d110b1ce1d3991b165159fe6e636f493.tar.gz
sqlite-17a7fa68d110b1ce1d3991b165159fe6e636f493.zip
Improved NaN testing for highly optimized GCC on x86.
Tickets #3202 and #3194. (CVS 5396) FossilOrigin-Name: a8a2fe45b21b405bb871e29540f98086b0c8f828
Diffstat (limited to 'src')
-rw-r--r--src/util.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index f7a819353..189972b41 100644
--- a/src/util.c
+++ b/src/util.c
@@ -14,7 +14,7 @@
** This file contains functions for allocating memory, comparing
** strings, and stuff like that.
**
-** $Id: util.c,v 1.237 2008/07/11 16:15:18 drh Exp $
+** $Id: util.c,v 1.238 2008/07/11 16:19:10 drh Exp $
*/
#include "sqliteInt.h"
#include <stdarg.h>
@@ -38,7 +38,8 @@ int sqlite3IsNaN(double x){
# error SQLite will not work correctly with the -ffast-math option of GCC.
#endif
volatile double y = x;
- return x!=y;
+ volatile double z = y;
+ return y!=z;
}
/*