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
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel