[BACK]Return to bpb.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / fs / msdosfs

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/fs/msdosfs/bpb.h between version 1.4 and 1.4.22.1

version 1.4, 2005/12/03 17:34:43 version 1.4.22.1, 2006/12/10 07:18:38
Line 127  struct bpb_a {
Line 127  struct bpb_a {
 #define putushort(p, v) (void)(*__ICAST(,16,p) = (v))  #define putushort(p, v) (void)(*__ICAST(,16,p) = (v))
 #define putulong(p, v)  (void)(*__ICAST(,32,p) = (v))  #define putulong(p, v)  (void)(*__ICAST(,32,p) = (v))
 #else  #else
 #define getushort(x)    (__ICAST(const,8,x)[0] + (__ICAST(const,8,x)[1] << 8))  #define getushort(x)    ((u_int16_t)(__ICAST(const,8,x)[0] \
 #define getulong(x)     (__ICAST(const,8,x)[0] + (__ICAST(const,8,x)[1] << 8) \                           | (__ICAST(const,8,x)[1] << 8)))
                          + (__ICAST(const,8,x)[2] << 16)        \  #define getulong(x)     ((u_int32_t)(__ICAST(const,8,x)[0] \
                          + (__ICAST(const,8,x)[3] << 24))                           | (__ICAST(const,8,x)[1] << 8) \
 #define putushort(p, v) (__ICAST(,8,p)[0] = (v),        \                           | (__ICAST(const,8,x)[2] << 16) \
                            | (__ICAST(const,8,x)[3] << 24)))
   #define putushort(p, v) (void)(__ICAST(,8,p)[0] = (v),  \
                          __ICAST(,8,p)[1] = (v) >> 8)                           __ICAST(,8,p)[1] = (v) >> 8)
 #define putulong(p, v)  (__ICAST(,8,p)[0] = (v),        \  #define putulong(p, v)  (void)(__ICAST(,8,p)[0] = (v),  \
                          __ICAST(,8,p)[1] = (v) >> 8, \                           __ICAST(,8,p)[1] = (v) >> 8, \
                          __ICAST(,8,p)[2] = (v) >> 16,\                           __ICAST(,8,p)[2] = (v) >> 16,\
                          __ICAST(,8,p)[3] = (v) >> 24)                           __ICAST(,8,p)[3] = (v) >> 24)

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.4.22.1

CVSweb <webmaster@jp.NetBSD.org>