1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-09 14:21:03 +03:00

Improved NaN testing for highly optimized GCC on x86.

Tickets #3202 and #3194. (CVS 5396)

FossilOrigin-Name: a8a2fe45b21b405bb871e29540f98086b0c8f828
This commit is contained in:
drh
2008-07-11 16:19:09 +00:00
parent 34004cebb6
commit 17a7fa68d1
3 changed files with 10 additions and 9 deletions

View File

@@ -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;
}
/*