Skip to content

fmt: fix f80 hex formatting#13296

Merged
andrewrk merged 1 commit intoziglang:masterfrom
jacobly0:fmt-f80-hex
Oct 25, 2022
Merged

fmt: fix f80 hex formatting#13296
andrewrk merged 1 commit intoziglang:masterfrom
jacobly0:fmt-f80-hex

Conversation

@jacobly0
Copy link
Copy Markdown
Member

These ifs were missing a case for f80 which should have shifted by one, but we can just compute the correct value instead. Also, we want the fractional bits to be a multiple of four, not the mantissa bits, since the mantissa could have a leading one which we want to be separated.

These ifs were missing a case for f80 which should have shifted by one,
but we can just compute the correct value instead.  Also, we want the
fractional bits to be a multiple of four, not the mantissa bits, since
the mantissa could have a leading one which we want to be separated.
@jacobly0 jacobly0 changed the title fmt: fix f80 hex formatting fmt: fix f80 hex formatting Oct 25, 2022
jacobly0 added a commit to jacobly0/zig that referenced this pull request Oct 25, 2022
@andrewrk andrewrk merged commit 55c5da1 into ziglang:master Oct 25, 2022
@jacobly0 jacobly0 deleted the fmt-f80-hex branch October 30, 2022 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants