ported to Android CS 1.6
fixed console spam with yb_quota when no waypoints on map fixed autovacate feature once again
This commit is contained in:
parent
cbb3307da0
commit
579971c5ff
6 changed files with 57 additions and 39 deletions
|
|
@ -201,27 +201,29 @@ namespace Math
|
|||
// sin - Output for Sine.
|
||||
// cos - Output for Cosine.
|
||||
//
|
||||
static inline void SineCosine (float rad, float *sin, float *cos)
|
||||
static inline void SineCosine (float rad, float *sine, float *cosine)
|
||||
{
|
||||
#if defined (_WIN32) && defined (_MSC_VER)
|
||||
__asm
|
||||
{
|
||||
fld dword ptr[rad]
|
||||
fsincos
|
||||
mov ebx, [cos]
|
||||
mov ebx, [cosine]
|
||||
fstp dword ptr[ebx]
|
||||
mov ebx, [sin]
|
||||
mov ebx, [sine]
|
||||
fstp dword ptr[ebx]
|
||||
}
|
||||
#elif defined (__linux__) || defined (GCC) || defined (__APPLE__)
|
||||
#elif defined (__ANDROID__)
|
||||
*sine = sinf (rad);
|
||||
*cosine = cosf (rad);
|
||||
#elif defined (__linux__) || defined (GCC) || defined (__APPLE__)
|
||||
register double _cos, _sin;
|
||||
__asm __volatile__ ("fsincos" : "=t" (_cos), "=u" (_sin) : "0" (rad));
|
||||
|
||||
*cos = _cos;
|
||||
*sin = _sin;
|
||||
*cosine = _cos;
|
||||
*sine = _sin;
|
||||
#else
|
||||
*sin = sinf (rad);
|
||||
*cos = cosf (rad);
|
||||
#error "SineConsine not defined."
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue