Browse Source

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>
tags/n2.8
Michael Niedermayer 10 years ago
parent
commit
daf1158d77
2 changed files with 6 additions and 6 deletions
  1. +0
    -6
      libavutil/softfloat.c
  2. +6
    -0
      libavutil/softfloat.h

+ 0
- 6
libavutil/softfloat.c View File

@@ -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;


+ 6
- 0
libavutil/softfloat.h View File

@@ -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


Loading…
Cancel
Save