English
Language : 

DSPIC33FJ256MC710-IPT Datasheet, PDF (49/90 Pages) Microchip Technology – dsPIC® DSC High-Performance 16-Bit Digital Signal Controllers
dsPIC33F
11.1 Math Library
The dsPIC33F Math Library is the compiled version of
the math library that is distributed with the highly
optimized, ANSI-compliant dsPIC33F MPLAB C30 C
Compiler (SW006012). It contains advanced single and
double-precision floating-point arithmetic and
trigonometric functions from the standard ‘C’ header
file (math.h). The library delivers small program code
size and data size, reduced cycles and high accuracy.
Features
• The math library is callable from either MPLAB
C30 or dsPIC33F assembly language.
• The functions are IEEE-754 compliant, with
signed zero, signed infinity, NaN (Not a Number)
and denormal support and operated in the “Round
to Nearest” mode.
• Compatible with MPLAB ASM30 and MPLAB
LINK30, which are available at no charge from
Microchip’s web site.
Table 11-2 shows the memory usage and performance
of the Math Library. Table 11-3 lists the math functions
that are included.
TABLE 11-2: MEMORY USAGE AND
PERFORMANCE
Memory Usage (bytes)(1,2)
Code size
Data size
5250
4
Performance (cycles)(1,3)
add
sub
mul
div
Rem
Sqrt
Note 1:
2:
3:
122
124
109
361
385
492
Results are based on using dsPIC33F
MPLAB C30 C Compiler (SW006012),
version 1.20.
Maximum “Memory Usage” when all
functions in the library are loaded. Most
applications will use less.
Average 32-bit floating-point performance
results.
TABLE 11-3: MATH FUNCTIONS
Single and Double-Precision Floating-Point Functions
Arithmetic Functions
Root and Power Functions
Trigonometric and Hyperbolic Functions
Logarithmic and Exponential Functions
Rounding Functions
Absolute Value Functions
Modular Arithmetic Functions
Comparison and Conversions
add, subtract, multiply, divide, remainder
pow, sqrt
acos, asin, atan, atan2, cos, cosh, sin, sinh, tan, tanh
exp, log, log10, frexp, ldexp
ceil, floor
fabs
fmod, modf
comparison, integer and floating-point conversions
© 2005 Microchip Technology Inc.
Preliminary
DS70155C-page 47