[Bf-blender-cvs] [a90b69d0659] master: Build: add more libc compatibility functions for upcoming libraries update

Brecht Van Lommel noreply at git.blender.org
Thu Jul 9 18:10:20 CEST 2020


Commit: a90b69d06593625ae21d5d1cefea2871fe4249f2
Author: Brecht Van Lommel
Date:   Thu Jul 9 18:04:13 2020 +0200
Branches: master
https://developer.blender.org/rBa90b69d06593625ae21d5d1cefea2871fe4249f2

Build: add more libc compatibility functions for upcoming libraries update

These are needed by the x264 library.

===================================================================

M	intern/libc_compat/libc_compat.c

===================================================================

diff --git a/intern/libc_compat/libc_compat.c b/intern/libc_compat/libc_compat.c
index 8da3ca218af..78e387e3117 100644
--- a/intern/libc_compat/libc_compat.c
+++ b/intern/libc_compat/libc_compat.c
@@ -28,6 +28,7 @@
 #  if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 31)
 
 double __exp_finite(double x);
+double __exp2_finite(double x);
 double __acos_finite(double x);
 double __asin_finite(double x);
 double __log2_finite(double x);
@@ -35,6 +36,7 @@ double __log10_finite(double x);
 double __log_finite(double x);
 double __pow_finite(double x, double y);
 float __expf_finite(float x);
+float __exp2f_finite(float x);
 float __acosf_finite(float x);
 float __asinf_finite(float x);
 float __log2f_finite(float x);
@@ -47,6 +49,11 @@ double __exp_finite(double x)
   return exp(x);
 }
 
+double __exp2_finite(double x)
+{
+  return exp2(x);
+}
+
 double __acos_finite(double x)
 {
   return acos(x);
@@ -82,6 +89,11 @@ float __expf_finite(float x)
   return expf(x);
 }
 
+float __exp2f_finite(float x)
+{
+  return exp2f(x);
+}
+
 float __acosf_finite(float x)
 {
   return acosf(x);



More information about the Bf-blender-cvs mailing list