mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 06:48:31 +00:00
Perform some code cleanup
This commit is contained in:
parent
3e17c7b20f
commit
19d0c15e03
41 changed files with 321 additions and 459 deletions
8
third_party/xed/x86isa.c
vendored
8
third_party/xed/x86isa.c
vendored
|
@ -29,7 +29,7 @@ bool xed_isa_set_is_valid_for_chip(enum XedIsaSet isa_set, enum XedChip chip) {
|
|||
unsigned n, r;
|
||||
n = isa_set / 64;
|
||||
r = isa_set - (64 * n);
|
||||
return !!(xed_chip_features[chip][n] & (1ul << r));
|
||||
return !!(kXedChipFeatures[chip][n] & (1ul << r));
|
||||
}
|
||||
|
||||
bool xed_test_chip_features(struct XedChipFeatures *p, enum XedIsaSet isa_set) {
|
||||
|
@ -42,9 +42,9 @@ bool xed_test_chip_features(struct XedChipFeatures *p, enum XedIsaSet isa_set) {
|
|||
void xed_get_chip_features(struct XedChipFeatures *p, enum XedChip chip) {
|
||||
if (p) {
|
||||
if (chip < XED_CHIP_LAST) {
|
||||
p->f[0] = xed_chip_features[chip][0];
|
||||
p->f[1] = xed_chip_features[chip][1];
|
||||
p->f[2] = xed_chip_features[chip][2];
|
||||
p->f[0] = kXedChipFeatures[chip][0];
|
||||
p->f[1] = kXedChipFeatures[chip][1];
|
||||
p->f[2] = kXedChipFeatures[chip][2];
|
||||
} else {
|
||||
p->f[0] = 0;
|
||||
p->f[1] = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue