Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions include/libc64/math64.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@
* @param angle radians
* @return tan(angle)
*/
static f32 Math_FTanF(f32 angle) {
static inline f32 Math_FTanF(f32 angle) {
return sinf(angle) / cosf(angle);
}

static f32 Math_FFloorF(f32 x) {
static inline f32 Math_FFloorF(f32 x) {
return floorf(x);
}

static f32 Math_FCeilF(f32 x) {
static inline f32 Math_FCeilF(f32 x) {
return ceilf(x);
}

static f32 Math_FRoundF(f32 x) {
static inline f32 Math_FRoundF(f32 x) {
return roundf(x);
}

static f32 Math_FTruncF(f32 x) {
static inline f32 Math_FTruncF(f32 x) {
return truncf(x);
}

static f32 Math_FNearbyIntF(f32 x) {
static inline f32 Math_FNearbyIntF(f32 x) {
return nearbyintf(x);
}

Expand All @@ -38,7 +38,7 @@ f32 Math_FAsinF(f32 x);
/**
* @return arccos(x) in radians, in [0,pi] range
*/
static f32 Math_FAcosF(f32 x) {
static inline f32 Math_FAcosF(f32 x) {
return M_PI / 2 - Math_FAsinF(x);
}

Expand Down
6 changes: 6 additions & 0 deletions include/ultra64.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
#include "ultra64/ucode.h"
#include "ultra64/version.h"

#ifdef __sgi
#ifndef inline
#define inline __inline
#endif
#endif

union uObjBg;

void __osPiCreateAccessQueue(void);
Expand Down