![]() |
l33t h4x0r's way to do trig
Code:
void inline ASMSinCos( float rad, float *sin, float *cos ) This is much faster than just using sin() and cos(). Maybe it's useful for l33t math beasts who uses scary math routine everywhere in code. :) |
Re: l33t h4x0r's way to do trig
good thing cos and sin is avaible anyway..
|
Re: l33t h4x0r's way to do trig
this is just @$3.1415riningly nonunderstandable, Whistler... where did you get that from ? o_O
|
Re: l33t h4x0r's way to do trig
Nice hax. "fsincos" is some kind of asm/3dnow now macro or something? ???:(
BTW cos and sin operates on *double*, cosf and sinf operates on *float* I use this only since I assume they are faster than their double brothers. |
Re: l33t h4x0r's way to do trig
Quote:
whistler, for asm stuff on gcc you can check __asm__ :-) I had this problem too, with my high precision timer Quote:
|
Re: l33t h4x0r's way to do trig
very l33t there indeed. Now we can run millions of times sin and cos and do some cool stuff with it. Dunno what yet though :)
|
Re: l33t h4x0r's way to do trig
That's what I meant. Only you can understand it :)
For myself I have no clue what "fsincos" does and what's left in the registers after this call. *edit* lmao @ Stefan, good one dude :D |
All times are GMT +2. The time now is 07:10. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.