Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Scroll Documents: Update page title prefix

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

Code Block
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

...

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

...