Midas Macros
[The midas.h & midas.c]


Defines

#define MAX(a, b)   (((a) > (b)) ? (a) : (b))
#define MIN(a, b)   (((a) < (b)) ? (a) : (b))
#define ALIGN8(x)   (((x)+7) & ~7)
#define VALIGN(adr, align)   (((POINTER_T) (adr)+align-1) & ~(align-1))


Define Documentation

#define ALIGN8  )     (((x)+7) & ~7)
 

Align macro for data alignment on 8-byte boundary

Definition at line 443 of file midas.h.

Referenced by bk_close(), bk_find(), bk_iterate(), bk_locate(), bk_swap(), bm_flush_cache(), bm_push_event(), bm_receive_event(), bm_send_event(), db_open_database(), and rpc_send_event().

#define MAX a,
 )     (((a) > (b)) ? (a) : (b))
 

MAX

Definition at line 430 of file midas.h.

Referenced by cm_execute(), and scheduler().

#define MIN a,
 )     (((a) < (b)) ? (a) : (b))
 

MIN

Definition at line 436 of file midas.h.

Referenced by update_odb().

#define VALIGN adr,
align   )     (((POINTER_T) (adr)+align-1) & ~(align-1))
 

Align macro for variable data alignment

Definition at line 447 of file midas.h.

Referenced by db_get_record_size(), and update_odb().


Midas DOC Version 1.9.5 ---- PSI Stefan Ritt ----
Contributions: Pierre-Andre Amaudruz - Sergio Ballestrero - Suzannah Daviel - Doxygen - Peter Green - Qing Gu - Greg Hackman - Gertjan Hofman - Paul Knowles - Rudi Meier - Glenn Moloney - Dave Morris - John M O'Donnell - Konstantin Olchanski - Renee Poutissou - Tamsen Schurman - Andreas Suter - Jan M.Wouters - Piotr Adam Zolnierczuk