Changeset 9221


Ignore:
Timestamp:
2007-10-09T22:02:04+02:00 (10 years ago)
Author:
blogic
Message:

added roundl to libnotimpl

File:
1 edited

Legend:

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

    r5381 r9221  
    9797} 
    9898 
     99/* lround for uClibc 
     100 * 
     101 * wrapper for lround(x) 
     102 */ 
     103 
     104#ifdef __STDC__ 
     105    long lround(double x) 
     106#else 
     107    long lround(x) 
     108    double x; 
     109#endif 
     110{ 
     111    return (long) ((x - ((long)x) >= 0.5f) ? (((long)x) + 1) : ((long)x)); 
     112} 
     113 
Note: See TracChangeset for help on using the changeset viewer.