Skip to content
Snippets Groups Projects
Commit 2eec85b7 authored by Ezekiel Dohmen's avatar Ezekiel Dohmen
Browse files

Not adding llog yet, userapp code might define

parent 1407f74d
No related branches found
No related tags found
4 merge requests!439RCG 5.0 release fro deb 10,!366Merge with branch 4.2,!365Merge branch 'branch-4.2' into master-branch-4.2-merge,!354Adding gaussian noise part
......@@ -108,23 +108,6 @@ llog10( double __x )
return __result;
}
/* Fast Pentium FPU log(x) (natural logarithm) command */
inline double
llog( double __x )
{
register double __result;
//This assembly pushes log(e)(2) onto the FPU stack : fldln2
//Swaps contents of registers ST(0) and ST(i) : fxch %%st(1)
//Then computes (ST(1) ∗ log2 (ST(0))), stores the result in register ST(1),
// and pops the FPU register stack. : fyl2x
__asm __volatile__( "fldln2\n\t fxch %%st(1)\n\t fyl2x"
: "=t"( __result )
: "0"( __x ) );
return __result;
}
/* Fast Pentium absolute value */
inline double
lfabs( double __x )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment