comparison dsputil.h @ 796:8a5b70c68fbd libavcodec

added lrintf for non ISOC libcs (fixme: find a better test)
author bellard
date Tue, 29 Oct 2002 22:38:21 +0000
parents 670009af4fc2
children 99db75050d38
comparison
equal deleted inserted replaced
795:55add0e7eafb 796:8a5b70c68fbd
267 const FFTSample *input, FFTSample *tmp); 267 const FFTSample *input, FFTSample *tmp);
268 void ff_mdct_calc(MDCTContext *s, FFTSample *out, 268 void ff_mdct_calc(MDCTContext *s, FFTSample *out,
269 const FFTSample *input, FFTSample *tmp); 269 const FFTSample *input, FFTSample *tmp);
270 void ff_mdct_end(MDCTContext *s); 270 void ff_mdct_end(MDCTContext *s);
271 271
272 #if defined(__FreeBSD__) || (__bsdi__)
273 /* XXX: add ISOC specific test to avoid specific BSD testing. */
274 /* better than nothing implementation. */
275 static inline long int lrintf(float x)
276 {
277 return (int)(rint(x));
278 }
272 #endif 279 #endif
280
281 #endif