diff options
author | drh <drh@noemail.net> | 2015-06-30 15:10:29 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2015-06-30 15:10:29 +0000 |
commit | da6d3e2117fd2ab1cbcc0f21ac5839d08d04344e (patch) | |
tree | fab3e1861926f343b3d81296e4a8fa6d14f684cd /src/sqliteInt.h | |
parent | 3169906d061c60903ca654b5bdbc6355f7cee1e7 (diff) | |
parent | ad265296ffbaa5d238f3fd9c4e09398be92c3af1 (diff) | |
download | sqlite-da6d3e2117fd2ab1cbcc0f21ac5839d08d04344e.tar.gz sqlite-da6d3e2117fd2ab1cbcc0f21ac5839d08d04344e.zip |
Make use of built-in bswap32() and bswap16() functions in GCC/Clang for a
significant performance improvement there.
FossilOrigin-Name: 8bfcda3d10aec864d71d12a1248c37e4db6f8899
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index aed6557cd..907434889 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -60,6 +60,13 @@ # define _LARGEFILE_SOURCE 1 #endif +/* What version of GCC is being used. 0 means GCC is not being used */ +#ifdef __GNUC__ +# define GCC_VERSION (__GNUC__*1000000+__GNUC_MINOR__*1000+__GNUC_PATCHLEVEL__) +#else +# define GCC_VERSION 0 +#endif + /* Needed for various definitions... */ #if defined(__GNUC__) && !defined(_GNU_SOURCE) # define _GNU_SOURCE |