~ubuntu-branches/ubuntu/saucy/drizzle/saucy-proposed

« back to all changes in this revision

Viewing changes to drizzled/korr.h

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.2.11) (2.1.16 sid)
  • Revision ID: package-import@ubuntu.com-20120619104649-9ij634mxm4x8pp4l
Tags: 1:7.1.36-stable-1ubuntu1
* Merge from Debian unstable. (LP: #987575)
  Remaining changes:
  - Added upstart script.
* debian/drizzle.upstart: dropped logger since upstart logs job
  output now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
#define doublestore(T,V) do { *((long *) T) = ((doubleget_union *)&V)->m[0]; \
77
77
                             *(((long *) T)+1) = ((doubleget_union *)&V)->m[1]; \
78
78
                         } while (0)
79
 
#define float4get(V,M)   do { *((float *) &(V)) = *((float*) (M)); } while(0)
80
79
#define float8get(V,M)   doubleget((V),(M))
81
80
#define floatstore(T,V)  memcpy((T), (&V), sizeof(float))
82
81
#define float8store(V,M) doublestore((V),(M))
88
87
*/
89
88
#define sint2korr(A)    (int16_t) (((int16_t) ((unsigned char) (A)[0])) +\
90
89
                                 ((int16_t) ((int16_t) (A)[1]) << 8))
91
 
#define sint3korr(A)    ((int32_t) ((((unsigned char) (A)[2]) & 128) ? \
92
 
                                  (((uint32_t) 255L << 24) | \
93
 
                                   (((uint32_t) (unsigned char) (A)[2]) << 16) |\
94
 
                                   (((uint32_t) (unsigned char) (A)[1]) << 8) | \
95
 
                                   ((uint32_t) (unsigned char) (A)[0])) : \
96
 
                                  (((uint32_t) (unsigned char) (A)[2]) << 16) |\
97
 
                                  (((uint32_t) (unsigned char) (A)[1]) << 8) | \
98
 
                                  ((uint32_t) (unsigned char) (A)[0])))
99
90
#define sint4korr(A)    (int32_t) (((int32_t) ((unsigned char) (A)[0])) +\
100
91
                                (((int32_t) ((unsigned char) (A)[1]) << 8)) +\
101
92
                                (((int32_t) ((unsigned char) (A)[2]) << 16)) +\