07.03.2014 Views

IQmath Library

IQmath Library

IQmath Library

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

IQNsqrt<br />

Fixed point Square-root<br />

Description<br />

This module computes the square root of the input using table lookup<br />

and Newton-Raphson approximation.<br />

input<br />

IQNsqrt<br />

output<br />

Availability<br />

C-Callable Assembly (CcA)<br />

Module Properties<br />

Type: Target Independent, Application Independent<br />

Target Devices: x28xx<br />

C/CPP Interface Files: <strong>IQmath</strong>Lib.h, <strong>IQmath</strong>CPP.h & <strong>IQmath</strong>.lib<br />

Item C-Callable ASM Comments<br />

Code Size<br />

66 words<br />

Data RAM<br />

0 words<br />

Multiple instances N/A<br />

Reentrancy Yes<br />

Multiple Invocation Yes<br />

Stack usage 2 words Stack grows by 2 words<br />

31<br />

Accuracy = log ( 2 ) 20log ( 6)<br />

20<br />

2<br />

−<br />

2<br />

=29 bits<br />

©Texas Instruments Inc., June 2002 54

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!