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

slightly optimize Vector3Normalize #2982

Merged
merged 1 commit into from
Mar 22, 2023

Conversation

RicoP
Copy link
Sponsor Contributor

@RicoP RicoP commented Mar 22, 2023

I changed the code of Vector3Normalize to be more similar to Vector2Normalize.

This slight optimization generates slightly better code under clang and msvc: https://godbolt.org/z/7Gzd34YEh

@raysan5 raysan5 merged commit 8b8eddc into raysan5:master Mar 22, 2023
@raysan5
Copy link
Owner

raysan5 commented Mar 22, 2023

@RicoP Thanks for the improvement! :)

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