summaryrefslogtreecommitdiff
path: root/indra/llcommon/llpredicate.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2012-10-23 23:12:33 -0700
committerRichard Linden <none@none>2012-10-23 23:12:33 -0700
commit28179ab0070a1c13193808bc1493761a8fed167f (patch)
tree3b1fff88c69010dc72cf0d026900244ec0224f76 /indra/llcommon/llpredicate.cpp
parent638a16eedd12fe03b85703fb821bc05f40aab355 (diff)
SH-3405 WIP convert existing stats to lltrace system
cleaned up predicate system, made unknown work with remove
Diffstat (limited to 'indra/llcommon/llpredicate.cpp')
-rw-r--r--indra/llcommon/llpredicate.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/llcommon/llpredicate.cpp b/indra/llcommon/llpredicate.cpp
index 8dcd9247b7..1ab1ab08f1 100644
--- a/indra/llcommon/llpredicate.cpp
+++ b/indra/llcommon/llpredicate.cpp
@@ -30,4 +30,18 @@
namespace LLPredicate
{
EmptyRule make_rule() { return EmptyRule(); }
+
+ int predicateFlagsFromValue(int value)
+ {
+ llassert(value < 5);
+ static const int predicates[5] =
+ {
+ 0xAAAAaaaa, // 10101010101010101010101010101010
+ 0xCCCCcccc, // 11001100110011001100110011001100
+ 0xF0F0F0F0, // 11110000111100001111000011110000
+ 0xFF00FF00, // 11111111000000001111111100000000
+ 0xFFFF0000 // 11111111111111110000000000000000
+ };
+ return predicates[value];
+ }
}