MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / av_normalize_sf

Function av_normalize_sf

libavutil/softfloat.h:57–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57static av_const SoftFloat av_normalize_sf(SoftFloat a){
58 if(a.mant){
59#if 1
60 while((a.mant + 0x1FFFFFFFU)<0x3FFFFFFFU){
61 a.mant += a.mant;
62 a.exp -= 1;
63 }
64#else
65 int s=ONE_BITS - av_log2(FFABS(a.mant));
66 a.exp -= s;
67 a.mant <<= s;
68#endif
69 if(a.exp < MIN_EXP){
70 a.exp = MIN_EXP;
71 a.mant= 0;
72 }
73 }else{
74 a.exp= MIN_EXP;
75 }
76 return a;
77}
78
79static inline av_const SoftFloat av_normalize1_sf(SoftFloat a){
80#if 1

Callers 3

av_add_sfFunction · 0.85
av_int2sfFunction · 0.85
mainFunction · 0.85

Calls 1

av_log2Function · 0.85

Tested by 1

mainFunction · 0.68