summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2010-05-25 03:55:01 -0500
committerDave Parks <davep@lindenlab.com>2010-05-25 03:55:01 -0500
commite6fe3b1f1aa888e4594c89154ef895b3cf5498e9 (patch)
treeaa40dffc20582b66ba7263a4215d71fd8c2297eb /indra/llcommon
parent051d55e9e417d1f70e4a0dcee0035f6e2a413792 (diff)
Better vectorization of various things. Turn off debug gl by default.
Diffstat (limited to 'indra/llcommon')
-rw-r--r--indra/llcommon/lldefs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llcommon/lldefs.h b/indra/llcommon/lldefs.h
index f3b5ca361f..10e6cb34bf 100644
--- a/indra/llcommon/lldefs.h
+++ b/indra/llcommon/lldefs.h
@@ -242,5 +242,13 @@ inline LLDATATYPE llclampb(const LLDATATYPE& a)
return llmin(llmax(a, (LLDATATYPE)0), (LLDATATYPE)255);
}
+template <class LLDATATYPE>
+inline void llswap(LLDATATYPE& lhs, LLDATATYPE& rhs)
+{
+ LLDATATYPE tmp = lhs;
+ lhs = rhs;
+ rhs = tmp;
+}
+
#endif // LL_LLDEFS_H