mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-14 05:55:13 +01:00
vfp_helper: Remove accidental use of the comma operator in vfp_single_unpack()
Makes the line of code slightly easier to read properly.
This commit is contained in:
parent
e3fb0efac3
commit
306ce6416a
@ -265,7 +265,8 @@ inline int vfp_single_type(const vfp_single* s) {
|
|||||||
// aligned to bit 30.
|
// aligned to bit 30.
|
||||||
inline u32 vfp_single_unpack(vfp_single* s, s32 val, u32 fpscr) {
|
inline u32 vfp_single_unpack(vfp_single* s, s32 val, u32 fpscr) {
|
||||||
u32 exceptions = 0;
|
u32 exceptions = 0;
|
||||||
s->sign = vfp_single_packed_sign(val) >> 16, s->exponent = vfp_single_packed_exponent(val);
|
s->sign = vfp_single_packed_sign(val) >> 16;
|
||||||
|
s->exponent = vfp_single_packed_exponent(val);
|
||||||
|
|
||||||
u32 significand = ((u32)val << (32 - VFP_SINGLE_MANTISSA_BITS)) >> 2;
|
u32 significand = ((u32)val << (32 - VFP_SINGLE_MANTISSA_BITS)) >> 2;
|
||||||
if (s->exponent && s->exponent != 255)
|
if (s->exponent && s->exponent != 255)
|
||||||
|
Loading…
Reference in New Issue
Block a user