libavutil/softfloat.h File Reference

#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  SoftFloat

Defines

#define MIN_EXP   -126
#define MAX_EXP   126
#define ONE_BITS   29

Functions

static SoftFloat av_normalize_sf (SoftFloat a)
static SoftFloat av_normalize1_sf (SoftFloat a)
static SoftFloat av_mul_sf (SoftFloat a, SoftFloat b)
static SoftFloat av_div_sf (SoftFloat a, SoftFloat b)
 b has to be normalized and not zero
static int av_cmp_sf (SoftFloat a, SoftFloat b)
static SoftFloat av_add_sf (SoftFloat a, SoftFloat b)
static SoftFloat av_sub_sf (SoftFloat a, SoftFloat b)
static SoftFloat av_int2sf (int v, int frac_bits)
static int av_sf2int (SoftFloat v, int frac_bits)
 rounding is to -inf


Define Documentation

#define MAX_EXP   126

Definition at line 27 of file softfloat.h.

#define MIN_EXP   -126

Definition at line 26 of file softfloat.h.

Referenced by av_normalize_sf().

#define ONE_BITS   29

Definition at line 28 of file softfloat.h.

Referenced by av_div_sf(), av_int2sf(), av_mul_sf(), av_normalize_sf(), and av_sf2int().


Function Documentation

static SoftFloat av_add_sf ( SoftFloat  a,
SoftFloat  b 
) [inline, static]

Definition at line 102 of file softfloat.h.

Referenced by av_sub_sf(), and main().

static int av_cmp_sf ( SoftFloat  a,
SoftFloat  b 
) [inline, static]

Definition at line 96 of file softfloat.h.

static SoftFloat av_div_sf ( SoftFloat  a,
SoftFloat  b 
) [static]

b has to be normalized and not zero

Returns:
will not be more denormalized then a

Definition at line 90 of file softfloat.h.

Referenced by main().

static SoftFloat av_int2sf ( int  v,
int  frac_bits 
) [inline, static]

Definition at line 114 of file softfloat.h.

Referenced by main().

static SoftFloat av_mul_sf ( SoftFloat  a,
SoftFloat  b 
) [inline, static]

Returns:
will not be more denormalized then a+b, so if either input is normalized then the output wont be worse then the other input if both are normalized then the output will be normalized

Definition at line 79 of file softfloat.h.

Referenced by main().

static SoftFloat av_normalize1_sf ( SoftFloat  a  )  [inline, static]

Definition at line 57 of file softfloat.h.

Referenced by av_add_sf(), av_div_sf(), and av_mul_sf().

static SoftFloat av_normalize_sf ( SoftFloat  a  )  [static]

Definition at line 35 of file softfloat.h.

Referenced by av_int2sf(), and main().

static int av_sf2int ( SoftFloat  v,
int  frac_bits 
) [inline, static]

rounding is to -inf

Definition at line 122 of file softfloat.h.

Referenced by main().

static SoftFloat av_sub_sf ( SoftFloat  a,
SoftFloat  b 
) [inline, static]

Definition at line 108 of file softfloat.h.


Generated on Fri Oct 3 22:47:01 2008 for ffmpeg by  doxygen 1.5.6