#include "nds/ndstypes.h"
Functions | |
| void | crossf32 (int32 *a, int32 *b, int32 *result) |
| 1.19.12 fixed point cross product function result = AxB | |
| int32 | div32 (int32 num, int32 den) |
| integer divide | |
| int32 | div64 (int64 num, int32 den) |
| integer 64 bit divide | |
| int32 | divf32 (int32 num, int32 den) |
| Fixed point divide. | |
| int32 | dotf32 (int32 *a, int32 *b) |
| 1.19.12 fixed point dot product function result = A dot B | |
| int32 | mod32 (int32 num, int32 den) |
| integer modulous | |
| int32 | mod64 (int64 num, int32 den) |
| integer 64 bit modulous | |
| int32 | mulf32 (int32 a, int32 b) |
| Fixed point multiply. | |
| void | normalizef32 (int32 *a) |
| 1.19.12 fixed point normalize function A = A / |A| | |
| u32 | sqrt32 (int a) |
| integer sqrt | |
| u32 | sqrt64 (long long a) |
| integer sqrt | |
| int32 | sqrtf32 (int32 a) |
| Fixed point sqrt. | |
| static void crossf32 | ( | int32 * | a, | |
| int32 * | b, | |||
| int32 * | result | |||
| ) | [inline] |
1.19.12 fixed point cross product function result = AxB
| a | pointer to fixed 3x3 matrix | |
| b | pointer to fixed 3x3 matrix | |
| result | pointer to fixed 3x3 matrix Cross product x = Ay * Bz - By * Az y = Az * Bx - Bz * Ax z = Ax * By - Bx * Ay |
| static int32 div32 | ( | int32 | num, | |
| int32 | den | |||
| ) | [inline] |
integer divide
| num | numerator | |
| den | denominator |
| static int32 div64 | ( | int64 | num, | |
| int32 | den | |||
| ) | [inline] |
integer 64 bit divide
| num | 64 bit numerator | |
| den | 32 bit denominator |
| static divf32 | ( | int32 | num, | |
| int32 | den | |||
| ) | [inline] |
Fixed point divide.
| num | Takes 20.12 numerator and denominator | |
| den | Takes 20.12 numerator and denominator |
| static int32 dotf32 | ( | int32 * | a, | |
| int32 * | b | |||
| ) | [inline] |
1.19.12 fixed point dot product function result = A dot B
| a | pointer to fixed 3x3 matrix | |
| b | pointer to fixed 3x3 matrix |
| static int32 mod32 | ( | int32 | num, | |
| int32 | den | |||
| ) | [inline] |
integer modulous
| num | numerator | |
| den | denominator |
| static int32 mod64 | ( | int64 | num, | |
| int32 | den | |||
| ) | [inline] |
integer 64 bit modulous
| num | 64 bit numerator | |
| den | 32 bit denominator |
| static static int32 mulf32 | ( | int32 | a, | |
| int32 | b | |||
| ) | [inline] |
Fixed point multiply.
| a | Takes 20.12 | |
| b | Takes 20.12 |
| static void normalizef32 | ( | int32 * | a | ) | [inline] |
1.19.12 fixed point normalize function A = A / |A|
| a | pointer to fixed 3x3 matrix Normalize Ax = Ax / mag Ay = Ay / mag Az = Az / mag |
| static int32 sqrt32 | ( | int | a | ) | [inline] |
integer sqrt
| a | 32 bit integer argument |
| static int32 sqrt64 | ( | long long | a | ) | [inline] |
integer sqrt
| a | 64 bit integer argument |
| static int32 sqrtf32 | ( | int32 | a | ) | [inline] |
Fixed point sqrt.
| a | Takes 20.12 |
1.5.7.1