Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
phy_qmath.c File Reference
#include "phy_qmath.h"

Go to the source code of this file.

Macros

#define LOG_TABLE_SIZE   32 /* log_table size */
 
#define LOG2_LOG_TABLE_SIZE   5 /* log2(log_table size) */
 
#define Q_LOG_TABLE   15 /* qformat of log_table */
 
#define LOG10_2   19728 /* log10(2) in q.16 */
 

Functions

u16 qm_mulu16 (u16 op1, u16 op2)
 
s16 qm_muls16 (s16 op1, s16 op2)
 
s32 qm_add32 (s32 op1, s32 op2)
 
s16 qm_add16 (s16 op1, s16 op2)
 
s16 qm_sub16 (s16 op1, s16 op2)
 
s32 qm_shl32 (s32 op, int shift)
 
s16 qm_shl16 (s16 op, int shift)
 
s16 qm_shr16 (s16 op, int shift)
 
s16 qm_norm32 (s32 op)
 
void qm_log10 (s32 N, s16 qN, s16 *log10N, s16 *qLog10N)
 

Macro Definition Documentation

#define LOG10_2   19728 /* log10(2) in q.16 */

Definition at line 221 of file phy_qmath.c.

#define LOG2_LOG_TABLE_SIZE   5 /* log2(log_table size) */

Definition at line 219 of file phy_qmath.c.

#define LOG_TABLE_SIZE   32 /* log_table size */

Definition at line 218 of file phy_qmath.c.

#define Q_LOG_TABLE   15 /* qformat of log_table */

Definition at line 220 of file phy_qmath.c.

Function Documentation

s16 qm_add16 ( s16  op1,
s16  op2 
)

Definition at line 70 of file phy_qmath.c.

s32 qm_add32 ( s32  op1,
s32  op2 
)

Definition at line 53 of file phy_qmath.c.

void qm_log10 ( s32  N,
s16  qN,
s16 log10N,
s16 qLog10N 
)

Definition at line 242 of file phy_qmath.c.

s16 qm_muls16 ( s16  op1,
s16  op2 
)

Definition at line 37 of file phy_qmath.c.

u16 qm_mulu16 ( u16  op1,
u16  op2 
)

Definition at line 24 of file phy_qmath.c.

s16 qm_norm32 ( s32  op)

Definition at line 167 of file phy_qmath.c.

s16 qm_shl16 ( s16  op,
int  shift 
)

Definition at line 134 of file phy_qmath.c.

s32 qm_shl32 ( s32  op,
int  shift 
)

Definition at line 109 of file phy_qmath.c.

s16 qm_shr16 ( s16  op,
int  shift 
)

Definition at line 158 of file phy_qmath.c.

s16 qm_sub16 ( s16  op1,
s16  op2 
)

Definition at line 89 of file phy_qmath.c.