Revision: 54900
          http://brlcad.svn.sourceforge.net/brlcad/?rev=54900&view=rev
Author:   brlcad
Date:     2013-03-27 02:30:45 +0000 (Wed, 27 Mar 2013)
Log Message:
-----------
remove support for cray, irix/sgi, convex, and ultrix.  highly dependent on the 
compiler and makes the define seem to be much more complicated than it really 
is.

Modified Paths:
--------------
    brlcad/trunk/include/bu.h

Modified: brlcad/trunk/include/bu.h
===================================================================
--- brlcad/trunk/include/bu.h   2013-03-27 02:29:35 UTC (rev 54899)
+++ brlcad/trunk/include/bu.h   2013-03-27 02:30:45 UTC (rev 54900)
@@ -2134,24 +2134,11 @@
  * 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)        (((size_t)&(_i)))       /* actually a 
word offset */
+#if defined(__ia64__) || defined(__x86_64__) || defined(__sparc64__) || 
defined(_HPUX_SOURCE)
+#    define bu_byteoffset(_i)  ((size_t)((char *)&(_i)))
 #else
-#  if defined(IRIX) && IRIX > 5 && _MIPS_SIM != _ABIN32 && _MIPS_SIM != 
_MIPS_SIM_ABI32
-#      define bu_byteoffset(_i)        ((size_t)__INTADDR__(&(_i)))
-#  else
-#    if defined(sgi) || defined(__convexc__) || defined(ultrix) || 
defined(_HPUX_SOURCE)
-/* "Lazy" way.  Works on reasonable machines with byte addressing */
-#      define bu_byteoffset(_i)        ((size_t)((char *)&(_i)))
-#    else
-#      if defined(__ia64__) || defined(__x86_64__) || defined(__sparc64__)
-#          define bu_byteoffset(_i)    ((size_t)((char *)&(_i)))
-#      else
 /* "Conservative" way of finding # bytes as diff of 2 char ptrs */
-#        define bu_byteoffset(_i)      ((size_t)(((char *)&(_i))-((char *)0)))
-#      endif
-#    endif
-#  endif
+#  define bu_byteoffset(_i)    ((size_t)(((char *)&(_i))-((char *)0)))
 #endif
 
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to