Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>> DSPs often use saturating overflow IIRC

I've used them, and used that feature. It was an option that could be turned on and off. The basic arithmetic was the same as any other CPU unless that was enabled.



Similar to above comments about wrapping_add, Rust has saturating_add as well.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: