Math Products
GoFast® for NEC V83x
Fast Floating Point Library
Features
- Fast
- Reentrant
- ROMable
- Conforms to IEEE 754 Format
- "Link and Go" compiler support for Diab Data C/C++
- Includes startup code
- Includes test programs and make file
Compiler Support
GoFast® libraries are designed for “link and go” operation with each compiler. These
libraries provide the user with a significant speed advantage when no floating point
coprocessor hardware is available. This is of particular significance in real-time
embedded systems.
GoFast for NEC V83x includes drop-in libraries for “link and go” seamless operation
with Green Hills C compiler. The GoFast routines directly replace the compiler’s
floating point runtime library routines.
Capabilities and Accuracy
GoFast is reentrant. There is no need to perform any special state save/restore.
GoFast is ROMable. GoFast is IEEE 754 and ANSI C compatible.
The basic functions + - * / and the conversions perform the IEEE 754 "nearest or
even" rounding exactly. The other functions are accurate within one mantissa unit.
GoFast routines make no distinction between quiet and signaling Not-a-Numbers
(NaNs). In the case of an invalid operation, the answer is always a standard quiet NaN.
GoFast routines support IEEE 754 masked exception handling for overflows
invalid operations. No unmasked exceptions are supported. Underflow and
precision are not reported. Division by zero is treated as an invalid operation.
GoFast Support
US Software maintains a test lab where comprehensive confidence tests are
performed on GoFast in each target environment. A demonstration test program
included with your product delivery, and you are encouraged to run it on your own
target hardware to verify system operation. Phone and fax support can be provided
with the product. Extended support is also available.
Functionality
GoFast contains the following floating point routines in both single and double
precision:
add, subtract, multiply, divide
compare operations
conversion operations
sin, cos, tan
asin, acos, atan, atan2
sinh, cosh, tanh
exp, pow
log, log10
fabs, ceil, floor
modf, fmod, frexp, ldexp
Performance
GoFast delivers the optimized performance you can expect with the NEC V83x
processor. The following timings were measured using GoFast library calls with an
NEC V830 processor at 33 MHz on an RTE-V830-PC board. The test used the Green
Hills v1.8.8 compiler.
Microsecond Timings
Function |
double |
single |
add |
8.3 |
5.0 |
subtract |
10.5 |
6.1 |
multiply |
7.6 |
13.2 |
divide |
14.4 |
6.3 |
sqrt |
24.7 |
13.7 |
exp |
34.4 |
13.3 |
log |
52.7 |
16.6 |
log10 |
56.1 |
18.6 |
sin |
32.3 |
14.5 |
cos |
31.4 |
13.9 |
tan |
46.9 |
16.7 |
asin |
68.5 |
33.6 |
acos |
74.2 |
37.3 |
atan |
46.9 |
18.2 |
atan2 |
55.0 |
26.2 |
pow |
78.3 |
36.2 |
|