I'm trying to implement a support for double
and float
and corresponding basic arithmetic on a CPU without an FPU.
I know that it is possible on all AVR ATmega controllers
. An ATmega also has no FPU. So here comes the question: How does it work? If there any suggestions for literature or links with explanations and examples?
At the best case I will provide a support for code like this:
double twice ( double x )
{
return x*x;
}
Many thanks in advance, Alex
Here are AVR related links with explanations and examples for implementing soft double: