Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std.numeric: Hack with quadruple-precision real type #8478

Merged
merged 5 commits into from
Jun 18, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
std/numeric.d: Use a more sensible padding array
Co-authored-by: Luís Ferreira <contact@lsferreira.net>
  • Loading branch information
Ast-x64 and ljmf00 authored Jun 17, 2022
commit a7f3230e9505fad82068dc9482c3770670f8eae4
3 changes: 1 addition & 2 deletions std/numeric.d
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,7 @@ public:
{
// Only use highest 64 significand bits from 112 explicitly stored
align (1):
uint padding32;
ushort padding16;
private ubyte[6] _padding; // 48-bit of padding
ulong significand;
enum ulong significand_max = ulong.max;
mixin(bitfields!(
Expand Down