Revision 23d3931a libavutil/libm.h

View differences:

libavutil/libm.h
86 86
}
87 87
#endif /* HAVE_ROUNDF */
88 88

  
89
#if !HAVE_TRUNC
90
static av_always_inline av_const double trunc(double x)
91
{
92
    return (x > 0) ? floor(x) : ceil(x);
93
}
94
#endif /* HAVE_TRUNC */
95

  
89 96
#if !HAVE_TRUNCF
90 97
static av_always_inline av_const float truncf(float x)
91 98
{

Also available in: Unified diff