Document toolboxDocument toolbox

(8.D.2.4) PowFract32

Overview

Computes the function pow(x, y) using the math library.

Discussion

Computes the function pow(abs(x), y) using the math library.

Type Definition

typedef struct _ModulePowFract32 { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure INT32* postShift; // Array of number of bits to shift after the fractional multiply. fract32* log_output; // log10 output array. fract32* mul_output; // multiplication output array. } ModulePowFract32Class;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

postShift

int*

parameter

0

[32 x 1]

Unrestricted

 

log_output

fract32*

parameter

0

[32 x 1]

Unrestricted

 

mul_output

fract32*

parameter

0

[32 x 1]

Unrestricted

 

Pins

Input Pins

Name: x

Description: Input signal x

Data type: fract32

Channel range: Unrestricted

Block size range: Unrestricted

Sample rate range: Unrestricted

Complex support: Real

 

Name: y

Description: Input signal y

Data type: fract32

Channel range: Unrestricted

Block size range: Unrestricted

Sample rate range: Unrestricted

Complex support: Real

Output Pins

Name: out

Description: Output signal pow(abs(x), y)

Data type: fract32

MATLAB Usage

File Name: pow_fract32_module.m

M=pow_fract32_module(NAME, BLOCKSIZE) Creates an Audio Weaver module that computes the function pow(x, y) using the standard math library. NAME - name of the module. BLOCKSIZE - size of blocks to process

Â