summaryrefslogtreecommitdiff
path: root/libavcodec/dsputil.h
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2005-09-19 23:26:47 +0000
committerDiego Biurrun <diego@biurrun.de>2005-09-19 23:26:47 +0000
commit7df6545556367b62f6a122faf3298676c301af71 (patch)
tree04b869bfb7d9288c0e724bcbf1919d3f836bc464 /libavcodec/dsputil.h
parent0f8840707500538c37db3239e8e6443773877ab5 (diff)
Move lrintf implementation from libavcodec/dsputil.h to libavutil/common.h
where it makes more sense. Originally committed as revision 4599 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dsputil.h')
-rw-r--r--libavcodec/dsputil.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h
index cad32660db..c91bac7fe0 100644
--- a/libavcodec/dsputil.h
+++ b/libavcodec/dsputil.h
@@ -594,33 +594,4 @@ static int name16(void /*MpegEncContext*/ *s, uint8_t *dst, uint8_t *src, int st
return score;\
}
-#ifndef HAVE_LRINTF
-/* XXX: add ISOC specific test to avoid specific BSD testing. */
-/* better than nothing implementation. */
-/* btw, rintf() is existing on fbsd too -- alex */
-static always_inline long int lrintf(float x)
-{
-#ifdef CONFIG_WIN32
-# ifdef ARCH_X86
- int32_t i;
- asm volatile(
- "fistpl %0\n\t"
- : "=m" (i) : "t" (x) : "st"
- );
- return i;
-# else
- /* XXX: incorrect, but make it compile */
- return (int)(x + (x < 0 ? -0.5 : 0.5));
-# endif
-#else
- return (int)(rint(x));
-#endif
-}
-#else
-#ifndef _ISOC9X_SOURCE
-#define _ISOC9X_SOURCE
-#endif
-#include <math.h>
-#endif
-
#endif