math.h is from TCC package:
extern __inline__ double rint (double x)
{
double retval;
__asm__ ("frndint;": "=t" (retval) : "0" (x));
return retval;
}
On Sat, Nov 22, 2008 at 3:27 PM, Marc Andre Tanner <[EMAIL PROTECTED]>wrote:
> On Sat, Nov 22, 2008 at 01:13:57PM +0100, Masha Rabinovich wrote:
> > // Expected result:
> > // compilation without error
> > //
> > // Received result:
> > // compilation error with invalid line number:
> > //
> > // 1.c:361: unknown constraint 't'
> > //
> >
> > #include <math.h>
> > main()
> > {
> > printf("%f\n", rint(3.14));
> > }
>
> I guess this depends on the content of math.h which comes from your
> libc. The example above works here on a glibc based linux system.
>
> Regards,
> Marc
>
> --
> Marc Andre Tanner >< http://www.brain-dump.org/ >< GPG key: CF7D56C0
>
>
> _______________________________________________
> Tinycc-devel mailing list
> [email protected]
> http://lists.nongnu.org/mailman/listinfo/tinycc-devel
>
_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel