mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
constexpr, const... (nw)
This commit is contained in:
parent
1d05c0f92a
commit
9ca04c2118
@ -38,7 +38,7 @@ public:
|
||||
s16 &yaau_set_k(s16 value) { return yaau_k = yaau_extend(value); }
|
||||
u16 &yaau_set_rb(s16 value) { return yaau_rb = value & yaau_mask; }
|
||||
u16 &yaau_set_re(s16 value) { return yaau_re = value & yaau_mask; }
|
||||
constexpr s16 yaau_extend(s16 value) { return (value & yaau_mask) | ((value & yaau_sign) ? ~yaau_mask : 0); }
|
||||
constexpr s16 yaau_extend(s16 value) const { return (value & yaau_mask) | ((value & yaau_sign) ? ~yaau_mask : 0); }
|
||||
s16 &yaau_extend_j() { return yaau_j = yaau_extend(yaau_j); }
|
||||
s16 &yaau_extend_k() { return yaau_k = yaau_extend(yaau_k); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user