Skip to content

Conversation

@wvpm
Copy link
Contributor

@wvpm wvpm commented Jan 2, 2026

Fixed point math is implemented via templates to allow the usage of any integral type. The input is first transformed by (static_cast<value_type>(input) << PRECISION). This required the input to be smaller than int64, so I added the integral_max_size_4 concept which enforces this.

@wvpm wvpm added bug Something isn't working topic:core labels Jan 2, 2026
@wvpm wvpm merged commit 26205ac into master Jan 2, 2026
16 checks passed
@wvpm wvpm deleted the restrict_fixed_point_operators_to_int32 branch January 2, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working topic:core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants