| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 /* | 7 /* |
| 8 * decoding.h - Holds common utilties for decoding x86 instructions. | 8 * x86_insts.h - Holds common utilties for decoding x86 instructions. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_X86_INSTS_H__ | 11 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_X86_INSTS_H__ |
| 12 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_X86_INSTS_H__ | 12 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_X86_INSTS_H__ |
| 13 | 13 |
| 14 #include "native_client/src/include/portability.h" | 14 #include "native_client/src/include/portability.h" |
| 15 | 15 |
| 16 /* Readability macros for bitset testing. */ | 16 /* Readability macros for bitset testing. */ |
| 17 #define NaClHasBit(set, bit) ((set) & (bit)) | 17 #define NaClHasBit(set, bit) ((set) & (bit)) |
| 18 #define NaClExcludesBit(set, bit) (~(set) & bit) | 18 #define NaClExcludesBit(set, bit) (~(set) & bit) |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 | 173 |
| 174 /* Accessors for each of the rex bits. */ | 174 /* Accessors for each of the rex bits. */ |
| 175 uint8_t NaClRexW(uint8_t prefix); | 175 uint8_t NaClRexW(uint8_t prefix); |
| 176 uint8_t NaClRexR(uint8_t prefix); | 176 uint8_t NaClRexR(uint8_t prefix); |
| 177 uint8_t NaClRexX(uint8_t prefix); | 177 uint8_t NaClRexX(uint8_t prefix); |
| 178 uint8_t NaClRexB(uint8_t prefix); | 178 uint8_t NaClRexB(uint8_t prefix); |
| 179 | 179 |
| 180 EXTERN_C_END | 180 EXTERN_C_END |
| 181 | 181 |
| 182 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_X86_INSTS_H__ */ | 182 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_X86_INSTS_H__ */ |
| OLD | NEW |