[FFmpeg-cvslog] avutil/softfloat: Move av_sf2double() to header

Michael Niedermayer git at videolan.org
Thu Jun 11 17:00:28 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jun 11 16:16:38 2015 +0200| [daf1158d77438383e1d465dfe5c905d76182d2df] | committer: Michael Niedermayer

avutil/softfloat: Move av_sf2double() to header

It was not intended to be a static private function

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=daf1158d77438383e1d465dfe5c905d76182d2df
---

 libavutil/softfloat.c |    6 ------
 libavutil/softfloat.h |    6 ++++++
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/libavutil/softfloat.c b/libavutil/softfloat.c
index 980e556..28bea58 100644
--- a/libavutil/softfloat.c
+++ b/libavutil/softfloat.c
@@ -23,12 +23,6 @@
 #include "common.h"
 #include "log.h"
 
-static av_const double av_sf2double(SoftFloat v) {
-    v.exp -= ONE_BITS +1;
-    if(v.exp > 0) return (double)v.mant * (double)(1 << v.exp);
-    else          return (double)v.mant / (double)(1 << (-v.exp));
-}
-
 void av_sincos_sf(int a, int *s, int *c)
 {
     int idx, sign;
diff --git a/libavutil/softfloat.h b/libavutil/softfloat.h
index 392b6d8..70a9adf 100644
--- a/libavutil/softfloat.h
+++ b/libavutil/softfloat.h
@@ -36,6 +36,12 @@ typedef struct SoftFloat{
     int32_t  exp;
 }SoftFloat;
 
+static inline av_const double av_sf2double(SoftFloat v) {
+    v.exp -= ONE_BITS +1;
+    if(v.exp > 0) return (double)v.mant * (double)(1 << v.exp);
+    else          return (double)v.mant / (double)(1 << (-v.exp));
+}
+
 static av_const SoftFloat av_normalize_sf(SoftFloat a){
     if(a.mant){
 #if 1



More information about the ffmpeg-cvslog mailing list