32 sum with saturation
Posted on January 08, 2016 at 18:25hello forumI am using a Cortex M0+ and I am looking for suggestions about handling saturation with 32 bit addition.I found this code in the web uint32_t sadd32(uint32_t a, uint32_t b){ return (a > (1<<32-1) - b) ? ...