~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/korr.h

  • Committer: Stewart Smith
  • Date: 2009-10-19 03:59:28 UTC
  • mto: This revision was merged to the branch mainline in revision 1192.
  • Revision ID: stewart@flamingspork.com-20091019035928-auzjppsoace2rzx3
remove unused int6store() macro from korr.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
                            *(T+1)=(unsigned char) (((uint32_t) (A) >> 8));\
75
75
                            *(T+2)=(unsigned char) (((A) >> 16)); } while (0)
76
76
#define int4store(T,A)  *((long *) (T))= (long) (A)
77
 
#define int6store(T,A)  do { *(T)=    (unsigned char)((A));          \
78
 
                             *((T)+1)=(unsigned char) (((A) >> 8));  \
79
 
                             *((T)+2)=(unsigned char) (((A) >> 16)); \
80
 
                             *((T)+3)=(unsigned char) (((A) >> 24)); \
81
 
                             *((T)+4)=(unsigned char) (((A) >> 32)); \
82
 
                             *((T)+5)=(unsigned char) (((A) >> 40)); } while(0)
83
77
#define int8store(T,A)  *((uint64_t *) (T))= (uint64_t) (A)
84
78
 
85
79
typedef union {
162
156
                                  *(((char *)(T))+1)=(char) (((A) >> 8));\
163
157
                                  *(((char *)(T))+2)=(char) (((A) >> 16));\
164
158
                                  *(((char *)(T))+3)=(char) (((A) >> 24)); } while(0)
165
 
#define int6store(T,A)       do { *((char *)(T))=     (char)((A)); \
166
 
                                  *(((char *)(T))+1)= (char)(((A) >> 8)); \
167
 
                                  *(((char *)(T))+2)= (char)(((A) >> 16)); \
168
 
                                  *(((char *)(T))+3)= (char)(((A) >> 24)); \
169
 
                                  *(((char *)(T))+4)= (char)(((A) >> 32)); \
170
 
                                  *(((char *)(T))+5)= (char)(((A) >> 40)); \
171
 
                                } while(0)
172
159
#define int8store(T,A)       do { uint32_t def_temp= (uint32_t) (A), def_temp2= (uint32_t) ((A) >> 32); \
173
160
                                  int4store((T),def_temp); \
174
161
                                  int4store((T+4),def_temp2); } while(0)