cancel
Showing results for 
Search instead for 
Did you mean: 

IEEE754-compliant floating-point routines in asm

chris7
Associate
Posted on August 30, 2004 at 05:35

IEEE754-compliant floating-point routines in asm

3 REPLIES 3
chris7
Associate
Posted on August 27, 2004 at 12:43

Hi,

Does anyone know of a standard implementation of the IEEE754 floating point routines for the ST7 and would be willing to point me in the right direction?

Kindest regards,

Chris.
fggnrc
Associate II
Posted on August 27, 2004 at 14:10

Chris,

the floating point routines are too heavy load for a simple microcontroller like the ST7!

Its hardware can only afford unsigned multiplication while unsigned division has to be done by a software routine.

If you need the basic floating point operations, try to encode your data in a fixed point representation and use integer operations to ''simulate'' the floating point ones.

Regards,

EtaPthi
luca239955_st
Associate III
Posted on August 30, 2004 at 05:35

Hi,

The Cosmic compiler/libraries provide this implementation, including the source code for all operations (mostly asm for the basic operations, mostly C for the complex ones).

Hope this helps.

Regards,

Luca (Cosmic)