Sound Open Firmware
Loading...
Searching...
No Matches
lut_trig.h File Reference

Fast lookup-table trigonometric sine approximation routines. More...

Include dependency graph for lut_trig.h:

Go to the source code of this file.

Functions

int16_t sofm_lut_sin_fixed_16b (int32_t w)
 Fast lookup-table 16-bit fixed-point sine approximation.
 

Detailed Description

Fast lookup-table trigonometric sine approximation routines.

Function Documentation

◆ sofm_lut_sin_fixed_16b()

int16_t sofm_lut_sin_fixed_16b ( int32_t  w)

Fast lookup-table 16-bit fixed-point sine approximation.

Parameters
wInput phase angle in radians formatted as Q4.28.
Returns
Sine approximation in Q1.15 format.