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

types.hpp: remove custom std::bit_cast #10326

Merged
merged 3 commits into from
May 23, 2021
Merged

Conversation

Nekotekina
Copy link
Member

@Nekotekina Nekotekina commented May 22, 2021

  • Enable C++20 feature constexpr std::bit_cast (with a little hack).
  • Remove unused _u48 string suffix (we don't have u48 type anyway), incorporate it in _u64.
  • Minor addition to new amin/amax magic constants, now they allow retrieving floatin point constants.
  • Cleanup for <climits> and <limits>

Remove memcpy version.
Use builtin instead.
_u48 is unused and gone, blends into _u64.
…concepts

Restrict smax to only work with signed values for consistency.
Cleanup <climits> includes.
Cleanup <limits> includes.
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.

1 participant