diff options
author | unknown <monty@donna.mysql.com> | 2001-02-07 17:42:20 +0200 |
---|---|---|
committer | unknown <monty@donna.mysql.com> | 2001-02-07 17:42:20 +0200 |
commit | f816d6f16d5c4df073cf0bed40de07286f6c6cd5 (patch) | |
tree | 513c37217d346353220e5bf7b3bcccd9e135c596 /include/myisampack.h | |
parent | e5f835b101afafa7ded3f2660416c3d8bfa995f6 (diff) | |
download | mariadb-git-f816d6f16d5c4df073cf0bed40de07286f6c6cd5.tar.gz |
Use new bitmap interface
Patches for Armstrong
Removed warnings when using REPAIR TABLE .. EXTENDED
Docs/manual.texi:
Changelog
configure.in:
Added missing -lsocket library on SCO
include/global.h:
Patch for Armstrong
include/my_bitmap.h:
Changed bitmap interface to avoid problem with missing LOCK_bitmap symbol
include/myisampack.h:
Portability fix for Armstrong
mysql-test/t/select.test:
Changed to work with 'mysql test < select.tst'
mysys/my_bitmap.c:
Changed bitmap interface to avoid problem with missing LOCK_bitmap symbol
mysys/my_init.c:
Removed LOCK_bitmap
sql/field.cc:
Patch for Armstrong
sql/filesort.cc:
Patch for Armstrong
sql/ha_myisam.cc:
Removed warnings when using REPAIR TABLE .. EXTENDED
sql/mysql_priv.h:
Use new bitmap interface
sql/mysqld.cc:
Use new bitmap interface
sql/sql_select.cc:
Use new bitmap interface
Diffstat (limited to 'include/myisampack.h')
-rw-r--r-- | include/myisampack.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/include/myisampack.h b/include/myisampack.h index 1e63b47fc48..376737ad83e 100644 --- a/include/myisampack.h +++ b/include/myisampack.h @@ -167,6 +167,28 @@ ((byte*) &def_temp)[3]=(M)[0];\ (V)=def_temp; } +#if (__FLOAT_WORD_ORDER == __BIG_ENDIAN) +#define mi_float8store(T,V) { *(T)= ((byte *) &V)[3];\ + *((T)+1)=(char) ((byte *) &V)[2];\ + *((T)+2)=(char) ((byte *) &V)[1];\ + *((T)+3)=(char) ((byte *) &V)[0];\ + *((T)+4)=(char) ((byte *) &V)[7];\ + *((T)+5)=(char) ((byte *) &V)[6];\ + *((T)+6)=(char) ((byte *) &V)[5];\ + *((T)+7)=(char) ((byte *) &V)[4];} + +#define mi_float8get(V,M) { double def_temp;\ + ((byte*) &def_temp)[0]=(M)[3];\ + ((byte*) &def_temp)[1]=(M)[2];\ + ((byte*) &def_temp)[2]=(M)[1];\ + ((byte*) &def_temp)[3]=(M)[0];\ + ((byte*) &def_temp)[4]=(M)[7];\ + ((byte*) &def_temp)[5]=(M)[6];\ + ((byte*) &def_temp)[6]=(M)[5];\ + ((byte*) &def_temp)[7]=(M)[4];\ + (V)=def_temp; } + +#else #define mi_float8store(T,V) { *(T)= ((byte *) &V)[7];\ *((T)+1)=(char) ((byte *) &V)[6];\ *((T)+2)=(char) ((byte *) &V)[5];\ @@ -186,7 +208,8 @@ ((byte*) &def_temp)[6]=(M)[1];\ ((byte*) &def_temp)[7]=(M)[0];\ (V)=def_temp; } -#endif +#endif /* __FLOAT_WORD_ORDER */ +#endif /* WORDS_BIGENDIAN */ /* Fix to avoid warnings when sizeof(ha_rows) == sizeof(long) */ |