In ripn jet, handle zero values correctly. (#1214)

This commit is contained in:
benjamin-tlon 2019-02-25 15:33:45 -08:00 committed by GitHub
parent a35cce2746
commit 19a53f97c7

View File

@ -11,7 +11,9 @@
/*
Divide, rounding up.
*/
#define DIVCEIL(x,y) 1 + ((x - 1) / y);
#define DIVCEIL(x,y) \
(x==0) ? 0 : \
1 + ((x - 1) / y);
/*
`ripn` breaks `atom` into a list of blocks, of bit-width `bits`. The