Skip to content

Move binary math functions to Math namespace in math_funcs_binary.h #107452

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ivorforce
Copy link
Member

@Ivorforce Ivorforce commented Jun 12, 2025

Our efficient binary math functions have been living in typedefs.h. However, they have slowly reproduced and multiplied, and are now threatening to overwhelm the rest of the typedefs.h biome. The latest introduction of #106606 has near doubled their number again.
To ensure the survival of the rest of the habitat, we must move the functions to their own enclosed living space.

I've selected the existing Math namespace for this purpose, but have chosen to make a separate math_funcs_binary.h header, rather than adding to math_funcs.h. The reason is that callers will likely have little overlap: Collections and low level code are usually interested in binary math, but not normal math, while math code is usually interested in generalized math, and likely won't be using the binary-based functions.

@Ivorforce Ivorforce added this to the 4.x milestone Jun 12, 2025
@Ivorforce Ivorforce requested review from a team as code owners June 12, 2025 12:07
@Ivorforce Ivorforce requested review from a team as code owners June 12, 2025 12:07
@Ivorforce Ivorforce requested review from a team as code owners June 12, 2025 12:07
@Ivorforce Ivorforce removed request for a team June 12, 2025 12:07
@Ivorforce Ivorforce force-pushed the bit-math-header branch 2 times, most recently from 4210412 to 48dcecc Compare June 12, 2025 23:38
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.

1 participant