summaryrefslogtreecommitdiff
path: root/indra/llcommon/lldefs.h
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-05-12 17:39:08 -0500
committerDave Parks <davep@lindenlab.com>2011-05-12 17:39:08 -0500
commit93696ac019865898d35d37d1e32d7a4b819a0c93 (patch)
treeafac704c0d5ad56c0bc2ed603e6f0bb15f525431 /indra/llcommon/lldefs.h
parent6fcf9e4817a5c245f7779dd030b0ba75dab10e5e (diff)
parent4911586023144bd10d6a91f3f1be1e65af0c706d (diff)
merge
Diffstat (limited to 'indra/llcommon/lldefs.h')
-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 6b38de6500..5a4b8325f4 100644
--- a/indra/llcommon/lldefs.h
+++ b/indra/llcommon/lldefs.h
@@ -236,5 +236,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