Fix #771: make smoothstep(x,a,b) work if a > b
Merge pull request #772 from gre/dev

Fix #771: make smoothstep(x,a,b) work if a > b