libmpcdec: include/mpcdec/math.h File Reference

Main Page | Class List | Directories | File List | Class Members | File Members | Related Pages

# math.h File Reference

Go to the source code of this file.

## Defines

#define | MPC_FIXED_POINT_SHIFT 16
#define | MAKE_MPC_SAMPLE(X) ((MPC_SAMPLE_FORMAT)(X))
#define | MAKE_MPC_SAMPLE_EX(X, Y) ((MPC_SAMPLE_FORMAT)(X))
#define | MPC_MULTIPLY_FRACT(X, Y) ((X)*(Y))
#define | MPC_MAKE_FRACT_CONST(X) (X)
#define | MPC_MULTIPLY_FRACT_CONST(X, Y) MPC_MULTPLY_FRACT(X,MPC_MAKE_FRACT_CONST(Y))
#define | MPC_MULTIPLY_FRACT_CONST_SHR(X, Y, Z) MPC_MULTIPLY_FRACT(X,MPC_MAKE_FRACT_CONST( Y ))
#define | MPC_MULTIPLY_FRACT_CONST_FIX(X, Y, Z) MPC_MULTIPLY_FRACT(X,MPC_MAKE_FRACT_CONST( Y ))
#define | MPC_MULTIPLY_FLOAT_INT(X, Y) ((X)*(Y))
#define | MPC_MULTIPLY(X, Y) ((X)*(Y))
#define | MPC_MULTIPLY_EX(X, Y, Z) ((X)*(Y))
#define | MPC_SCALE_CONST(X, Y, Z) ((X)*(Y))
#define | MPC_SCALE_CONST_SHL(X, Y, Z, S) ((X)*(Y))
#define | MPC_SCALE_CONST_SHR(X, Y, Z, S) ((X)*(Y))
#define | MPC_SHR(X, Y) (X)
#define | MPC_SHL(X, Y) (X)

## Typedefs

typedef float | MPC_SAMPLE_FORMAT

## Detailed Description

Libmpcdec internal math routines.

Definition in file math.h.