Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-11 17:16:38 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-06-11 17:16:38 +0300
commitdaf1158d77438383e1d465dfe5c905d76182d2df (patch)
tree84f5dcbe3c1a92aeba9ee8b0a98e869498d380e0 /libavutil/softfloat.h
parent54f685a0ee5e0953d6e4792205d0634a5a74ad54 (diff)
avutil/softfloat: Move av_sf2double() to header
It was not intended to be a static private function Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/softfloat.h')
-rw-r--r--libavutil/softfloat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavutil/softfloat.h b/libavutil/softfloat.h
index 392b6d814c..70a9adfd27 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