Skip to content

Conversation

dnadlinger
Copy link
Contributor

@dnadlinger dnadlinger commented Jun 6, 2017

Verified on LDC/AArch64.

Similar to other implementations, adapted for wide case.

@dnadlinger dnadlinger force-pushed the quad-lrint branch 3 times, most recently from 51ac9bc to 5a6861f Compare June 6, 2017 02:29
@dnadlinger
Copy link
Contributor Author

Requires #5445 to be correct.

std/math.d Outdated
}
else
{
static assert(false, "Only 64-bit and 80-bit reals are supported by lrint()");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps update this error message as well?

Copy link
Member

@ibuclaw ibuclaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume MANTISSA_MSB and LSB are set correctly for 128bit reals regarding endianness.

@dnadlinger
Copy link
Contributor Author

I assume MANTISSA_MSB and LSB are set correctly for 128bit reals regarding endianness.

They are. (The names are actually a bit misleading, they are the most- and least-significant halves of the type.)

@dnadlinger
Copy link
Contributor Author

Auto-merging as Iain approved the change and this doesn't concern x86 anyway.

@dlang-bot dlang-bot merged commit f036ef1 into dlang:master Jun 7, 2017
@dnadlinger dnadlinger deleted the quad-lrint branch June 7, 2017 09:40
redstar added a commit to redstar/phobos that referenced this pull request Feb 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants