[Brlcad-commits] CVS: brlcad/include bu.h,14.12,14.13
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: Sean M. <br...@us...> - 2005-06-21 06:32:10
|
Update of /cvsroot/brlcad/brlcad/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24413/include Modified Files: bu.h Log Message: add the bu_byteoffset comment about constant offsets and cray compensation Index: bu.h =================================================================== RCS file: /cvsroot/brlcad/brlcad/include/bu.h,v retrieving revision 14.12 retrieving revision 14.13 diff -w -u -r14.12 -r14.13 --- bu.h 28 May 2005 02:14:49 -0000 14.12 +++ bu.h 21 Jun 2005 06:31:55 -0000 14.13 @@ -1221,6 +1221,11 @@ /* * Convert address of global data object into byte "offset" from address 0. + * + * Strictly speaking, the C language only permits initializers of the + * form: address +- constant, where here the intent is to measure the + * byte address of the indicated variable. + * Matching compensation code for the CRAY is located in librt/parse.c */ #if defined(CRAY) # define bu_byteoffset(_i) (((int)&(_i))) /* actually a word offset */ |