Skip to content

Commit

Permalink
Revert "port: use system trig functions"
Browse files Browse the repository at this point in the history
apparently this only causes issues, though it might be possible to use SOME trig functions from libc
  • Loading branch information
fgsfdsfgs committed Sep 24, 2023
1 parent bd113a5 commit d303971
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile.port
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ JSON_FILES += $(wildcard $(A_DIR)/*.json)

JSON_HEADERS := $(patsubst $(A_DIR)/%.json, $(G_DIR)/%.h, $(JSON_FILES))

C_FILES := $(shell find src/game port -name '*.c' ! -name 'atan2f.c' ! -name 'acosfasinf.c')
C_FILES := $(shell find src/game port -name '*.c')
C_FILES := $(C_FILES) \
$(wildcard src/lib/mp3/*.c) \
$(wildcard src/lib/naudio/*.c) \
Expand Down
4 changes: 0 additions & 4 deletions src/lib/modelasm_c.c
Original file line number Diff line number Diff line change
Expand Up @@ -1577,8 +1577,6 @@ static f32 modelasmAcosOrAsin(f32 f6)
return 0.000047937632189132f * t3;
}

#ifdef PLATFORM_N64

f32 cosf(f32 radians)
{
return sinf(radians + 1.570796251297f);
Expand Down Expand Up @@ -1652,5 +1650,3 @@ f32 sinf(f32 radians)

return ret;
}

#endif

0 comments on commit d303971

Please sign in to comment.