Author: zoltan
Date: 2006-01-20 12:17:02 -0500 (Fri, 20 Jan 2006)
New Revision: 55847
Modified:
trunk/mono/mono/utils/ChangeLog
trunk/mono/mono/utils/monobitset.h
Log:
2006-01-20 Zoltan Varga <[EMAIL PROTECTED]>
* monobitset.h (mono_bitset_set_fast): Add more fast accessors.
Modified: trunk/mono/mono/utils/ChangeLog
===================================================================
--- trunk/mono/mono/utils/ChangeLog 2006-01-20 17:16:19 UTC (rev 55846)
+++ trunk/mono/mono/utils/ChangeLog 2006-01-20 17:17:02 UTC (rev 55847)
@@ -1,3 +1,7 @@
+2006-01-20 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * monobitset.h (mono_bitset_set_fast): Add more fast accessors.
+
2006-01-17 Zoltan Varga <[EMAIL PROTECTED]>
* monobitset.h monobitset.c: Move the mono_bitset_test_fast macro here
Modified: trunk/mono/mono/utils/monobitset.h
===================================================================
--- trunk/mono/mono/utils/monobitset.h 2006-01-20 17:16:19 UTC (rev 55846)
+++ trunk/mono/mono/utils/monobitset.h 2006-01-20 17:17:02 UTC (rev 55847)
@@ -14,6 +14,8 @@
/* Fast access to bits which depends on the implementation of the bitset */
#define mono_bitset_test_fast(set,n)
(((gsize*)set)[2+(n)/MONO_BITSET_BITS_PER_CHUNK] & ((gsize)1 << ((n) %
MONO_BITSET_BITS_PER_CHUNK)))
+#define mono_bitset_set_fast(set,n) do {
((gsize*)set)[2+(n)/MONO_BITSET_BITS_PER_CHUNK] |= ((gsize)1 << ((n) %
MONO_BITSET_BITS_PER_CHUNK)); } while (0)
+#define mono_bitset_clear_fast(set,n) do {
((gsize*)set)[2+(n)/MONO_BITSET_BITS_PER_CHUNK] &= ((gsize)1 << ((n) %
MONO_BITSET_BITS_PER_CHUNK)); } while (0)
/*
* Interface documentation can be found in the c-file.
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches