summaryrefslogtreecommitdiff
path: root/include/myisampack.h
diff options
context:
space:
mode:
authormonty@donna.mysql.com <>2001-02-07 17:42:20 +0200
committermonty@donna.mysql.com <>2001-02-07 17:42:20 +0200
commitd487e5a9b1702ffaeb7afd8656cd811be1493576 (patch)
tree513c37217d346353220e5bf7b3bcccd9e135c596 /include/myisampack.h
parentcc9f24bc40220c38d40b064e4b07c4192ee9a8b8 (diff)
downloadmariadb-git-d487e5a9b1702ffaeb7afd8656cd811be1493576.tar.gz
Use new bitmap interface
Patches for Armstrong Removed warnings when using REPAIR TABLE .. EXTENDED
Diffstat (limited to 'include/myisampack.h')
-rw-r--r--include/myisampack.h25
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) */