smpc.h: fix C compatibility
This commit is contained in:
parent
9fd4443c35
commit
569f058682
4
smpc.h
4
smpc.h
@ -63,8 +63,8 @@ struct smpc_reg {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static_assert((sizeof (struct smpc_reg)) == 0x80);
|
static_assert((sizeof (struct smpc_reg)) == 0x80);
|
||||||
static_assert((sizeof (smpc_reg().IREG)) == 14);
|
static_assert((sizeof (((struct smpc_reg){}).IREG)) == 14);
|
||||||
static_assert((sizeof (smpc_reg().OREG)) == 64);
|
static_assert((sizeof (((struct smpc_reg){}).OREG)) == 64);
|
||||||
static_assert((offsetof (struct smpc_reg, IREG[0].val)) == 0x1);
|
static_assert((offsetof (struct smpc_reg, IREG[0].val)) == 0x1);
|
||||||
static_assert((offsetof (struct smpc_reg, IREG[1].val)) == 0x3);
|
static_assert((offsetof (struct smpc_reg, IREG[1].val)) == 0x3);
|
||||||
static_assert((offsetof (struct smpc_reg, IREG[6].val)) == 0xd);
|
static_assert((offsetof (struct smpc_reg, IREG[6].val)) == 0xd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user