diff options
author | unknown <hf@deer.(none)> | 2004-06-02 19:17:35 +0500 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2004-06-02 19:17:35 +0500 |
commit | d55cb81cb0b89c14663e814a53b2fc69d0710580 (patch) | |
tree | ff05e5599bdcdb7f2d378d8130e42f7d8d5bea93 /include | |
parent | 911073ed99d8622b165c0ecd69bc1175431f829a (diff) | |
parent | 21dea7fc0b4412586765e45a6b900e380cef9a58 (diff) | |
download | mariadb-git-d55cb81cb0b89c14663e814a53b2fc69d0710580.tar.gz |
Merging
myisam/rt_index.c:
Auto merged
myisam/rt_index.h:
Auto merged
myisam/rt_mbr.c:
Auto merged
myisam/rt_mbr.h:
Auto merged
myisam/rt_split.c:
Auto merged
myisam/rt_test.c:
Auto merged
sql/spatial.cc:
Auto merged
Diffstat (limited to 'include')
-rw-r--r-- | include/myisampack.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/myisampack.h b/include/myisampack.h index 95793e2aaeb..06c94fea75f 100644 --- a/include/myisampack.h +++ b/include/myisampack.h @@ -21,6 +21,10 @@ better compression */ +/* these two are for uniformity */ +#define mi_sint1korr(A) (int8)(*A) +#define mi_uint1korr(A) (uint8)(*A) + #define mi_sint2korr(A) (int16) (((int16) ((uchar) (A)[1])) +\ ((int16) ((int16) (A)[0]) << 8)) #define mi_sint3korr(A) ((int32) ((((uchar) (A)[0]) & 128) ? \ @@ -75,6 +79,9 @@ (((uint32) ((uchar) (A)[0])) << 24))) <<\ 32)) +/* This one is for uniformity */ +#define mi_int1store(T,A) *((uchar*)(T))= (uchar) (A) + #define mi_int2store(T,A) { uint def_temp= (uint) (A) ;\ *((uchar*) ((T)+1))= (uchar)(def_temp); \ *((uchar*) ((T)+0))= (uchar)(def_temp >> 8); } |