From 0e9dcd703a6b5f81abf0517189ed30eeaf070674 Mon Sep 17 00:00:00 2001 From: hollings Date: Mon, 13 Dec 1993 20:10:53 +0000 Subject: [PATCH] added ALIGN_TO_WORDSIZE macro --- rtinst/h/trace.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/rtinst/h/trace.h b/rtinst/h/trace.h index 9fb90f3..01bb9a8 100644 --- a/rtinst/h/trace.h +++ b/rtinst/h/trace.h @@ -2,7 +2,10 @@ * Define the trace format that is generated by the system. * * $Log: trace.h,v $ - * Revision 1.2 1993/08/26 18:22:03 hollings + * Revision 1.3 1993/12/13 20:10:53 hollings + * added ALIGN_TO_WORDSIZE macro + * + * Revision 1.2 1993/08/26 18:22:03 hollings * added EXIT and ACK. * * Revision 1.1 1993/07/01 17:03:52 hollings @@ -21,6 +24,12 @@ #define True 1 #endif +#ifndef WORDSIZE +#define WORDSIZE sizeof(int) +#endif + +#define ALIGN_TO_WORDSIZE(x) (((x) + (WORDSIZE-1)) & ~(WORDSIZE-1)) + typedef char Boolean; typedef float sampleValue; -- 1.8.3.1