Revision: 44246
          http://brlcad.svn.sourceforge.net/brlcad/?rev=44246&view=rev
Author:   brlcad
Date:     2011-04-07 01:19:13 +0000 (Thu, 07 Apr 2011)

Log Message:
-----------
use the new __BU_ATTR_ALWAYS_INLINE define so that we get forced inline 
behavior for newer gcc or forced off if older.  the 'inline' keyword may be 
superfluous or even problematic, but keeping for now given it's the original 
intent.

Modified Paths:
--------------
    brlcad/trunk/src/librt/opennurbs_ext.h

Modified: brlcad/trunk/src/librt/opennurbs_ext.h
===================================================================
--- brlcad/trunk/src/librt/opennurbs_ext.h      2011-04-07 01:17:00 UTC (rev 
44245)
+++ brlcad/trunk/src/librt/opennurbs_ext.h      2011-04-07 01:19:13 UTC (rev 
44246)
@@ -216,6 +216,8 @@
 BANode<BA>::BANode() { }
 
 template<class BA>
+inline
+__BU_ATTR_ALWAYS_INLINE
 BANode<BA>::BANode(const ON_Curve* curve, int adj_face_index, const BA& node,
                   const ON_BrepFace* face, const ON_Interval& t,
                   bool innerTrim, bool checkTrim, bool trimmed)
@@ -258,6 +260,8 @@
 
 
 template<class BA>
+inline
+__BU_ATTR_ALWAYS_INLINE
 BANode<BA>::BANode(const BA& node) : m_node(node)
 {
     for (int i = 0; i < 3; i++) {
@@ -336,8 +340,8 @@
 */
 
 template<class BA>
-void
-//__attribute__((always_inline))
+inline void
+__BU_ATTR_ALWAYS_INLINE
 BANode<BA>::GetBBox(double* min, double* max) const
 {
     VSETALL(min, MAX_FASTF);
@@ -874,6 +878,8 @@
 
 
 template<class BV>
+inline
+__BU_ATTR_ALWAYS_INLINE
 BVNode<BV>::BVNode(CurveTree* ct, const BV& node, const ON_BrepFace* face,
                   const ON_Interval& u, const ON_Interval& v, bool checkTrim, 
bool trimmed)
     : m_ctree(ct), m_node(node), m_face(face), m_u(u), m_v(v), 
m_checkTrim(checkTrim), 


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

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to