From cfde3b082c39cb68b179aa714f15efb38f188396 Mon Sep 17 00:00:00 2001 From: turbocat Date: Tue, 28 Dec 2021 18:17:27 +0000 Subject: [PATCH] libc.obj: added missing sin and tan git-svn-id: svn://kolibrios.org@9515 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/ktcc/trunk/libc.obj/source/libc.c | 2 ++ programs/develop/ktcc/trunk/libc.obj/source/math/sin.s | 2 +- programs/develop/ktcc/trunk/libc.obj/source/symbols.txt | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/programs/develop/ktcc/trunk/libc.obj/source/libc.c b/programs/develop/ktcc/trunk/libc.obj/source/libc.c index 80e010e259..80e154c874 100644 --- a/programs/develop/ktcc/trunk/libc.obj/source/libc.c +++ b/programs/develop/ktcc/trunk/libc.obj/source/libc.c @@ -137,6 +137,8 @@ __asm__( ".include \"math/pow2.s\"\n\t" ".include \"math/pow10.s\"\n\t" ".include \"math/sqrt.s\"\n\t" + ".include \"math/sin.s\"\n\t" + ".include \"math/tan.s\"\n\t" ); __asm__( diff --git a/programs/develop/ktcc/trunk/libc.obj/source/math/sin.s b/programs/develop/ktcc/trunk/libc.obj/source/math/sin.s index 75cc57d05f..10e5c22973 100644 --- a/programs/develop/ktcc/trunk/libc.obj/source/math/sin.s +++ b/programs/develop/ktcc/trunk/libc.obj/source/math/sin.s @@ -12,7 +12,7 @@ sin: sahf jnp sin.L1 fstp %st(0) - fldl L0 + fldl sin.L0 sin.L1: ret diff --git a/programs/develop/ktcc/trunk/libc.obj/source/symbols.txt b/programs/develop/ktcc/trunk/libc.obj/source/symbols.txt index 23da64f3a5..0960f43c8b 100644 --- a/programs/develop/ktcc/trunk/libc.obj/source/symbols.txt +++ b/programs/develop/ktcc/trunk/libc.obj/source/symbols.txt @@ -128,6 +128,8 @@ atan atan2 ceil cos +sin +tan exp fabs floor