Changeset 2348


Ignore:
Timestamp:
2005-11-06T06:51:42+01:00 (12 years ago)
Author:
nico
Message:

add ceilf wrapper (not present in uClibc-0.9.28)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/toolchain/libnotimpl/files/math.c

    r2190 r2348  
    22 
    33#include "math.h" 
     4 
    45 
    56/* cosf for uClibc 
     
    1819} 
    1920 
     21 
    2022/* sinf for uClibc 
    2123 * 
     
    3335} 
    3436 
     37 
     38/* ceilf for uClibc 
     39 * 
     40 * wrapper for ceil(x) 
     41 */ 
     42 
     43#ifdef __STDC__ 
     44        float ceilf(float x) 
     45#else 
     46        float rintf(x) 
     47        float x; 
     48#endif 
     49{ 
     50        return (float) ceil( (double)x ); 
     51} 
     52 
     53 
    3554/* rintf for uClibc 
    3655 * 
     
    4766        return (float) sin( (double)x ); 
    4867} 
     68 
Note: See TracChangeset for help on using the changeset viewer.