Changeset 9223


Ignore:
Timestamp:
2007-10-09T23:37:05+02:00 (10 years ago)
Author:
blogic
Message:

added roundf to libnotimpl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/libs/libnotimpl/src/math.c

    r9221 r9223  
    112112} 
    113113 
     114/* lround for uClibc 
     115 * 
     116 * wrapper for roundf(x) 
     117 */ 
     118 
     119#ifdef __STDC__ 
     120    float roundf(float x) 
     121#else 
     122    float round(x) 
     123        float x; 
     124#endif 
     125{ 
     126        return (float) ((x - ((long)x) >= 0.5f) ? (((long)x) + 1) : ((long)x)); 
     127}        
     128 
Note: See TracChangeset for help on using the changeset viewer.