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

refactor: pass inexpensive f32 instead of &f32 #202

Merged
merged 1 commit into from Feb 19, 2024

Conversation

lavafroth
Copy link
Contributor

It might be a good idea to pass a float32 by value instead of a reference. The reference (on most systems) will be stored in a 64 bit register. Might as well pass the raw value instead of the indirection.

@wwood
Copy link
Owner

wwood commented Feb 19, 2024

Sure, thanks.

@wwood wwood merged commit b061cee into wwood:main Feb 19, 2024
2 checks passed
@lavafroth lavafroth deleted the pass-by-value branch February 19, 2024 03:43
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.

None yet

2 participants