mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-04-24 00:30:57 +08:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user