misc/coverity_model.c
author unc0rr
Sat, 03 Nov 2018 10:57:47 +0100
changeset 14114 9eca6f2cac6d
parent 10498 bcd1d7ad2f3e
permissions -rw-r--r--
You cannot optimize integral division like this. You end up multiplying by 0, 1 or 2 instead of whole spectre of ratios.

void fpcrtl_halt(int num) {
    __coverity_panic__();
}

int fpcrtl_abs(int num) {
    return num >= 0 ? num : -num;
}