This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit d36cf66ec8846f1a84547bb0e6ac5e4f99b5a166
Author:     Kacper Michajłow <[email protected]>
AuthorDate: Mon Sep 7 03:52:58 2026 +0200
Commit:     Kacper Michajłow <[email protected]>
CommitDate: Sat Sep 12 23:52:20 2026 +0000

    avutil/mips: include the lrintf optimization from internal.h
    
    libm.h is about to go away. internal.h reaches every translation unit
    of the libraries through common.h.
    
    Signed-off-by: Kacper Michajłow <[email protected]>
---
 libavutil/internal.h       | 4 ++++
 libavutil/libm.h           | 5 -----
 libavutil/mips/libm_mips.h | 2 ++
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/libavutil/internal.h b/libavutil/internal.h
index 59cb0c2724..db597cce32 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -51,6 +51,10 @@
 #endif
 #endif
 
+#if HAVE_MIPSFPU && HAVE_INLINE_ASM
+#   include "mips/libm_mips.h"
+#endif
+
 #if HAVE_PRAGMA_DEPRECATED
 #    if defined(__ICL) || defined (__INTEL_COMPILER)
 #        define FF_DISABLE_DEPRECATION_WARNINGS __pragma(warning(push)) 
__pragma(warning(disable:1478))
diff --git a/libavutil/libm.h b/libavutil/libm.h
index 224cfa3c6e..53a565d8ba 100644
--- a/libavutil/libm.h
+++ b/libavutil/libm.h
@@ -25,11 +25,6 @@
 #define AVUTIL_LIBM_H
 
 #include <math.h>
-#include "config.h"
 #include "mathematics.h"
 
-#if HAVE_MIPSFPU && HAVE_INLINE_ASM
-#include "libavutil/mips/libm_mips.h"
-#endif /* HAVE_MIPSFPU && HAVE_INLINE_ASM*/
-
 #endif /* AVUTIL_LIBM_H */
diff --git a/libavutil/mips/libm_mips.h b/libavutil/mips/libm_mips.h
index e40a0cd74d..57e9c46ca5 100644
--- a/libavutil/mips/libm_mips.h
+++ b/libavutil/mips/libm_mips.h
@@ -53,6 +53,8 @@
 #ifndef AVUTIL_MIPS_LIBM_MIPS_H
 #define AVUTIL_MIPS_LIBM_MIPS_H
 
+#include <math.h>
+
 #include "libavutil/attributes.h"
 
 static av_always_inline av_const long int lrintf_mips(float x)

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to