On 4/17/20 9:22 AM, Stephen Long wrote: > +#define DO_RADDHN(N, M, SH) ((N + M + (1 << (SH - 1))) >> SH)
This formula will overflow. See DO_RSHR -- with some added parenthesis, we could actually reuse that macro. r~
On 4/17/20 9:22 AM, Stephen Long wrote: > +#define DO_RADDHN(N, M, SH) ((N + M + (1 << (SH - 1))) >> SH)
This formula will overflow. See DO_RSHR -- with some added parenthesis, we could actually reuse that macro. r~