All pastes #746643 Raw Edit

Stuff

public cpp v1 · immutable
·published 2007-10-23 11:41 UTC
rendered paste body
__forceinline float dsp_tanhf_noclip(float x){	return x * ( 27 + x * x ) / ( 27 + 9 * x * x );}__forceinline float dsp_tanhf(float x){    if( x < -3 )        return -1;    else if( x > 3 )        return 1;    else        return dsp_tanhf_noclip(x);}