Since no one seems to have answered this I will give it a shot.
 
The floorf() function is included in the math library if you enable
DO_C99_MATH in the uClibc configuration.
The L_* defines, e.g., L_floorf, are controlled by some make-magic in
libm/Makefile.in, and used to split one C file into multiple object
files.
 
//Peter

        -----Original Message-----
        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cedric Hombourger
        Sent: den 17 juli 2007 17:16
        To: uClibc
        Subject: libm: floorf() missing
        
        

        Hi,
        
        floorf() is apparently missing from libm. Grep'ing the source
code of a pretty recent checkout of uClibc, I have found an
implementation in libm/float_wrappers.c:
        
        #ifdef L_floorf
        libm_hidden_proto(floor) 
        float floorf (float x)
        {
            return (float) floor( (double)x );
        }
        #endif
        
        However L_floorf is never defined and I was wondering if it was
not defined on purpose? Is it safe to enable this code or should we have
a different implementation? 
        
        Regards,
        Cedric Hombourger
        
        

_______________________________________________
uClibc mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/uclibc

Reply via email to