4. 11. 2015 12:48
static inline bool overflow_usub( unsigned int a, unsigned int b, unsigned int *res) { *res = a - b; return *res > a ? true : false; }
4. 11. 2015 13:37
O to hůř, to fakt nechápu. Tyhle kudrliny jsou nakonec vždycky tím nejproblematičtějším kódem.