dsPIC30F
12.1
Math Library
TABLE 12-2:
MEMORY USAGE AND
The dsPIC30F Math Library is the compiled version of
the math library that is distributed with the highly
PERFORMANCE
Memory Usage (bytes) (1)(2)
optimized, ANSI-compliant dsPIC30F MPLAB ? C30
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 dsPIC30F 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 12-2 shows the memory usage and performance
of the Math Library. Table 12-3 lists the math functions
Code size
Data size
add
sub
mul
div
Rem
Sqrt
Note 1:
2:
3:
5250
4
Performance (cycles) (1)(3)
122
124
109
361
385
492
Results are based on using dsPIC30F
MPLAB C30 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 perfor-
that are included.
TABLE 12-3:
mance results.
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
DS70043F-page 50
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.
相关PDF资料
MA320002 MODULE PLUG-IN PIC32 USB OTG
MA320011 MODULE PLUG-IN PIC32MX220F32D
MA330024 MODULE PLUG-IN DSPIC33F 100TQFP
MA330027 MODULE PLUG-IN DSPIC33F 100TQFP
MA330029 MODULE PLUG-IN DSPIC33FJ16GP102
MA9D00-42 DSUB CONN W/DIAGNOSTIC PORT STRT
MAI ADAPTER PUSH-ON/M-SWTCH ATTCHMNT
MAV0020RP VARISTOR ARRY 2ELEMENT 120V 0405
相关代理商/技术参数
MA300013 制造商:Microchip Technology Inc 功能描述:Tools Development kit Kit Con
MA300014 功能描述:子卡和OEM板 dsPIC30F 80L Plug In Sample (6014A) RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
MA300015 功能描述:子卡和OEM板 dsPIC30F 80L Plug In Sample (6010A). RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
MA300016 功能描述:子卡和OEM板 dsPICDEM 80-PIN PIM RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
MA300118 功能描述:子卡和OEM板 _ RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
MA300128 功能描述:子卡和OEM板 _ RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
MA300140 功能描述:子卡和OEM板 _ RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
MA300228 功能描述:子卡和OEM板 _ RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit