[EMAIL PROTECTED] escreveu:
> Hi Nuno,
>
> Quoting Nuno Lucas <[EMAIL PROTECTED]>:
>
>> Some functions in math.h (like rint), are inlined in the math.h
>> header, but fail to compile with an error when used:
>>
>> <output>
>
>> [EMAIL PROTECTED]:~/prjs/wince/cegcc/test/math_h_header$ cat main.c
>> #include <math.h>
>
>> int main( void )
>> {
>> double i = rint( 3.14 );
>> return 0;
>> }
>> [EMAIL PROTECTED]:~/prjs/wince/cegcc/test/math_h_header$
>> arm-wince-mingw32ce-gcc
>> main.c
>> main.c: In function 'main':
>>
>> /home/lucas/apps/mingw32ce/lib/gcc/arm-wince-mingw32ce/4.1.0/../../../../arm-wince-mingw32ce/include/math.h:638:
>> error: impossible constraint in 'asm'
>
>
> I made a first approach to port the src/mingw/mingwex/math dir this weekend,
> It is currently mostly i386/i387 asm, like what is found in that peace of
> code you
> are guarding with ifndef __MINGW32CE__. I've done 99% of the work minus
> testing,
> using code that is found on newlib/libm/math. That code is mostly
> copyrighted by
> Sun, with a very permissive license. Most of the work was deciding what to
> leave
> out because it is already found in coredll.dll.
>
> I will commit or post the code later tonight, which includes a similar fix,
> but
> using __i386__ instead, since I just got Internet access at home (hurray!).
>
Well, I slipped my estimation, by at least two days :) I rebased my work on
OpenBSD version of the Sun's files. They looked easier to port, better
organized,
and they have arm headers written for it. Next I've ported the
newlib/libm/math/
testsuite the mingw32ce, which triggered a few bugs and missings in mingw32ce,
and I'm currently looking through the failures.
I should have learned by now to never promise dates... blah on me.
Cheers,
Pedro Alves
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cegcc-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cegcc-devel