diff options
author | Djordje Pesut <djordje.pesut@imgtec.com> | 2015-07-20 13:36:17 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-07-20 17:20:16 +0200 |
commit | f85bc147fb87de048ccc5767e186ac59ec0284ef (patch) | |
tree | b94b04d6110ec84a79fa1466d29c700d04d1f841 /libavutil/softfloat.h | |
parent | b0414da90d6da34144ad9dadd5445fe62cf755a6 (diff) | |
download | ffmpeg-f85bc147fb87de048ccc5767e186ac59ec0284ef.tar.gz |
avcodec: Implementation of AAC_fixed_decoder (SBR-module)
Add fixed poind code.
Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavutil/softfloat.h')
-rw-r--r-- | libavutil/softfloat.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/softfloat.h b/libavutil/softfloat.h index 4272363489..642a675d67 100644 --- a/libavutil/softfloat.h +++ b/libavutil/softfloat.h @@ -36,6 +36,14 @@ typedef struct SoftFloat{ int32_t exp; }SoftFloat; +static const SoftFloat FLOAT_0 = { 0, 0}; +static const SoftFloat FLOAT_05 = { 0x20000000, 0}; +static const SoftFloat FLOAT_1 = { 0x20000000, 1}; +static const SoftFloat FLOAT_EPSILON = { 0x29F16B12, -16}; +static const SoftFloat FLOAT_1584893192 = { 0x32B771ED, 1}; +static const SoftFloat FLOAT_100000 = { 0x30D40000, 17}; +static const SoftFloat FLOAT_0999999 = { 0x3FFFFBCE, 0}; + 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); |