FFmpeg
4.0
|
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | SoftFloat_IEEE754 |
Macros | |
#define | EXP_BIAS 127 |
#define | MANT_BITS 23 |
Functions | |
static SoftFloat_IEEE754 | av_normalize_sf_ieee754 (SoftFloat_IEEE754 sf) |
Normalize the softfloat as defined by IEEE 754 single-recision floating point specification. More... | |
static SoftFloat_IEEE754 | av_int2sf_ieee754 (int64_t n, int e) |
Convert integer to softfloat. More... | |
static SoftFloat_IEEE754 | av_bits2sf_ieee754 (uint32_t n) |
Make a softfloat out of the bitstream. More... | |
static int | av_sf2int_ieee754 (SoftFloat_IEEE754 a) |
Convert the softfloat to integer. More... | |
static SoftFloat_IEEE754 | av_div_sf_ieee754 (SoftFloat_IEEE754 a, SoftFloat_IEEE754 b) |
Divide a by b. More... | |
static SoftFloat_IEEE754 | av_mul_sf_ieee754 (SoftFloat_IEEE754 a, SoftFloat_IEEE754 b) |
Multiply a with b return normalized result. More... | |
static int | av_cmp_sf_ieee754 (SoftFloat_IEEE754 a, SoftFloat_IEEE754 b) |
Compare a with b strictly. More... | |
Variables | |
static const SoftFloat_IEEE754 | FLOAT_0 = {0, 0, -126} |
static const SoftFloat_IEEE754 | FLOAT_1 = {0, 0, 0} |
#define EXP_BIAS 127 |
Definition at line 26 of file softfloat_ieee754.h.
Referenced by read_diff_float_data().
#define MANT_BITS 23 |
Definition at line 27 of file softfloat_ieee754.h.
Referenced by av_div_sf_ieee754(), av_int2sf_ieee754(), and av_mul_sf_ieee754().
|
inlinestatic |
Normalize the softfloat as defined by IEEE 754 single-recision floating point specification.
Definition at line 41 of file softfloat_ieee754.h.
Referenced by av_cmp_sf_ieee754(), av_div_sf_ieee754(), av_int2sf_ieee754(), and av_mul_sf_ieee754().
|
inlinestatic |
Convert integer to softfloat.
Definition at line 53 of file softfloat_ieee754.h.
Referenced by read_diff_float_data().
|
inlinestatic |
Make a softfloat out of the bitstream.
Assumes the bits are in the form as defined by the IEEE 754 spec.
Definition at line 66 of file softfloat_ieee754.h.
Referenced by multiply(), and read_diff_float_data().
|
inlinestatic |
Convert the softfloat to integer.
Definition at line 72 of file softfloat_ieee754.h.
|
inlinestatic |
Divide a by b.
b should not be zero.
Definition at line 80 of file softfloat_ieee754.h.
Referenced by read_diff_float_data().
|
inlinestatic |
Multiply a with b return normalized result.
Definition at line 93 of file softfloat_ieee754.h.
|
inlinestatic |
Compare a with b strictly.
Definition at line 106 of file softfloat_ieee754.h.
Referenced by read_diff_float_data().
|
static |
Definition at line 35 of file softfloat_ieee754.h.
|
static |
Definition at line 36 of file softfloat_ieee754.h.