Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(362)

Unified Diff: src/trusted/validator_x86/ncdecode.h

Issue 6883091: Start unit testing for functions in nc_inst_state.c (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/trusted/validator_x86/ncdecode.h
===================================================================
--- src/trusted/validator_x86/ncdecode.h (revision 4944)
+++ src/trusted/validator_x86/ncdecode.h (working copy)
@@ -57,6 +57,10 @@
#define kPrefixSEGDS 0x0400 /* 0x3e - disallowed */
#define kPrefixREX 0x1000 /* 0x40 - 0x4f Rex prefix */
+/* Readability macros for bitset testing. */
+#define NaClHasBit(set, bit) ((set) & (bit))
+#define NaClExcludesBit(set, bit) (~(set) & bit)
+
/* a new enumerated type for instructions.
* Note: Each enumerate type is marked with one of the following symbols,
* defining the validator it us used for:

Powered by Google App Engine
This is Rietveld 408576698