-
Notifications
You must be signed in to change notification settings - Fork 91
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
Remove CRT #16
Comments
Just sharing my $0.02 again here, such that they're documented somewhere. The trigonometric functions are, to say the least, problematic to implement. You can basically pick one of the following options: widely compatible or fast. As you'd not want to maintain platform dependent inline assembly for all used architectures, platforms, and compilers, the slow route would have to be taken. However, a possible solution could be the STB style of function definitions, allowing the user of Handmade-Math to pass in their own Sin/Cos/Tan and fallback to math.h if no such functions are provided. |
Yeah, writing SSE efficient Sin, Cos, and Tan will be crazy hard and will take more time then they are probably worth. |
I think the STB approach you are saying might be the way to go about these things. |
@kiljacken I did what you said in 0.4 the most recent commit, that i pushed today onto the master repo. It worked great :) |
Remove use of the CRT (Math.h) in HandmadeMath, this involved replacing Sin, Con, and Tan with our own version of these operations.
The text was updated successfully, but these errors were encountered: