tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] sinf/sin problems


From: Oleg N. Cher
Subject: [Tinycc-devel] sinf/sin problems
Date: Wed, 24 Dec 2014 04:08:38 +0200
User-agent: Thunderbird 2.0.0.24 (Windows/20100228)

Hi all,

float version sinf does not work as expected:

#include <stdio.h>
#include <math.h>

int main(int argc, char **argv) {
 float f = sinf(0.1);
 printf("%f", f);
 return 0;
}

>tcc testsinf.c
tcc: error: undefined symbol 'sinf'



Next question is a very evil problem, I think. if #include <Math> not specified, absolutely no bugs/warnings, but code works wrong:


#include <stdio.h>

int main(int argc, char **argv) {

 printf("\n%f", sin(-3.0));
 printf("\n%f", sin(-2.0));
 printf("\n%f", sin(-1.0));
 printf("\n%f", sin(0.0));
 printf("\n%f", sin(1.0));
 printf("\n%f", sin(2.0));
 printf("\n%f", sin(3.0));
 printf("\n%f", sin(3.1415926));

 return 0;
}

>tcc testsinf.c
>testsinf.exe

0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000

Please agree with me that this must be fixed.

Thank you.


--
Oleg



reply via email to

[Prev in Thread] Current Thread [Next in Thread]