mardi 28 février 2017

Avoid branching in the following statement

I got the following computation:

if (x==0) x=1.0;
Y = x * A

Any idea how can i avoid the "if" branching above by using some math clamping/step functions.

Aucun commentaire:

Enregistrer un commentaire