Skip to content
Snippets Groups Projects

Adding gaussian noise part

+ 0
17
@@ -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 )
Loading