dreid       01/06/17 14:07:44

  Modified:    include  apr_sms.h
  Log:
  First pass at some alignment macro's for the sms code.
  
  Revision  Changes    Path
  1.16      +7 -0      apr/include/apr_sms.h
  
  Index: apr_sms.h
  ===================================================================
  RCS file: /home/cvs/apr/include/apr_sms.h,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- apr_sms.h 2001/06/10 14:50:09     1.15
  +++ apr_sms.h 2001/06/17 21:07:43     1.16
  @@ -77,6 +77,13 @@
   #define APR_CHILD_CLEANUP     0x0001
   #define APR_PARENT_CLEANUP    0x0002
   
  +/* Alignment macro's */
  +#define ALIGN(size, boundary) \
  +    ((size) + (((boundary) - ((size) & ((boundary) - 1))) & ((boundary) - 
1)))
  +
  +#define ALIGN_DEFAULT(size) ALIGN(size, 8)
  +
  +
   /**
    * @package APR memory system
    */
  
  
  

Reply via email to