From: Sam Hocevar Date: Thu, 16 Feb 2006 22:00:46 +0000 (+0000) Subject: * encoder/ratecontrol.c: OS X support for exp2f and sqrtf. X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=e5ed306c33a9b03d083660bb521758c76bdf36bd;p=x264.git * encoder/ratecontrol.c: OS X support for exp2f and sqrtf. git-svn-id: svn://svn.videolan.org/x264/trunk@439 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/encoder/ratecontrol.c b/encoder/ratecontrol.c index ff1d382b..33680548 100644 --- a/encoder/ratecontrol.c +++ b/encoder/ratecontrol.c @@ -38,6 +38,10 @@ #if defined(SYS_FREEBSD) || defined(SYS_BEOS) || defined(SYS_NETBSD) #define exp2f(x) powf( 2, (x) ) #endif +#if defined(SYS_MACOSX) +#define exp2f(x) (float)pow( 2, (x) ) +#define sqrtf sqrt +#endif #if defined(_MSC_VER) #define isfinite _finite #endif