12 #include <sys/cdefs.h>
27 #if __STDC_VERSION__ >= 199901L
28 #define __FMINLINE static inline
30 #define __FMINLINE extern inline
33 #define __FMINLINE static
41 float a,
float b,
float c,
float d) {
42 return __fipr(x, y, z, w, a, b, c, d);
50 return __fipr_magnitude_sqr(x, y, z, w);
132 __fsincos(f, *s, *c);
145 __fsincosr(f, *s, *c);
180 return (k1 << 24) | (k2 << 16) | (k3 << 8) | qp;
187 #if __STDC_VERSION__ >= 199901L || !defined(__GNUC__)
188 extern float fipr(
float x,
float y,
float z,
float w,
float a,
float b,
float c,
191 extern float fsin(
float r);
192 extern float fcos(
float r);
193 extern float ftan(
float r);
194 extern float fisin(
int d);
195 extern float ficos(
int d);
196 extern float fitan(
int d);
197 extern float fsqrt(
float f);
198 extern float frsqrt(
float f);
199 extern void fsincos(
float f,
float *s,
float *c);
200 extern void fsincosr(
float f,
float *s,
float *c);
__FMINLINE void fsincosr(float f, float *s, float *c)
Calculate the sine and cosine of a value in radians.
Definition: fmath.h:144
__FMINLINE float fipr(float x, float y, float z, float w, float a, float b, float c, float d)
Floating point inner product.
Definition: fmath.h:40
__FMINLINE float frsqrt(float f)
Definition: fmath.h:118
__FMINLINE float ftan(float r)
Floating point tangent.
Definition: fmath.h:76
__FMINLINE float fisin(int d)
Integer sine.
Definition: fmath.h:85
__FMINLINE float fipr_magnitude_sqr(float x, float y, float z, float w)
Floating point inner product w/self (square of vector magnitude)
Definition: fmath.h:49
#define __FMINLINE
Definition: fmath.h:33
unsigned long uint32
32-bit unsigned integer
Definition: types.h:28
__FMINLINE float ficos(int d)
Integer cosine.
Definition: fmath.h:94
__FMINLINE uint32 pvr_pack_bump(float h, float t, float q)
Calculate the offset color value for a set of bumpmap parameters.
Definition: fmath.h:172
#define F_PI
Definition: fmath_base.h:23
unsigned char uint8
8-bit unsigned integer
Definition: types.h:30
__FMINLINE float fcos(float r)
Floating point cosine.
Definition: fmath.h:67
__FMINLINE float fsqrt(float f)
Floating point square root.
Definition: fmath.h:111
__FMINLINE void fsincos(float f, float *s, float *c)
Calculate the sine and cosine of a value in degrees.
Definition: fmath.h:131
Base definitions for the DC's special math instructions.
__FMINLINE float fitan(int d)
Integer tangent.
Definition: fmath.h:103
__FMINLINE float fsin(float r)
Floating point sine.
Definition: fmath.h:58