KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
fmath.h File Reference

Inline functions for the DC's special math instructions. More...

#include <sys/cdefs.h>
#include <arch/types.h>
#include <dc/fmath_base.h>

Go to the source code of this file.

Macros

#define __FMINLINE   static
 

Functions

__FMINLINE float fipr (float x, float y, float z, float w, float a, float b, float c, float d)
 Floating point inner product.
 
__FMINLINE float fipr_magnitude_sqr (float x, float y, float z, float w)
 Floating point inner product w/self (square of vector magnitude)
 
__FMINLINE float fsin (float r)
 Floating point sine.
 
__FMINLINE float fcos (float r)
 Floating point cosine.
 
__FMINLINE float ftan (float r)
 Floating point tangent.
 
__FMINLINE float fisin (int d)
 Integer sine.
 
__FMINLINE float ficos (int d)
 Integer cosine.
 
__FMINLINE float fitan (int d)
 Integer tangent.
 
__FMINLINE float fsqrt (float f)
 Floating point square root.
 
__FMINLINE float frsqrt (float f)
 
__FMINLINE void fsincos (float f, float *s, float *c)
 Calculate the sine and cosine of a value in degrees.
 
__FMINLINE void fsincosr (float f, float *s, float *c)
 Calculate the sine and cosine of a value in radians.
 
__FMINLINE uint32 pvr_pack_bump (float h, float t, float q)
 Calculate the offset color value for a set of bumpmap parameters.
 

Detailed Description

Inline functions for the DC's special math instructions.

Author
Andrew Kieschnick
Lawrence Sebald