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

div_ceil for UVec #542

Closed
wants to merge 2 commits into from
Closed

div_ceil for UVec #542

wants to merge 2 commits into from

Conversation

kornelski
Copy link

Convenience function for divison with rounding up. It's handy for things like let num_tiles = world_size.div_ceil(tile_size);

It's only for unsigned scalars, because Rust hasn't stabilized div_ceil for other types yet. I've copied div_ceil implementation to keep MSRV under 1.73.

@bitshifter
Copy link
Owner

Looks like it needs a rustfmt

@kornelski
Copy link
Author

Rustfmt's overly aggressive pedantism is such a waste of time… ;( The tool is so dumb that it can only automate breaking PRs, but can't automate fixing them.

@kornelski kornelski closed this Aug 6, 2024
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.

2 participants