misc/coverity_model.c
author antonc27 <antonc27@mail.ru>
Wed, 04 Nov 2015 03:40:38 +0100
branchios-revival
changeset 11289 55127cfac9a6
parent 10498 bcd1d7ad2f3e
permissions -rw-r--r--
- '-Os' fpc optimization compiler flag replaced with '-O2' Note 1: '-Os' cause crash on device. Seems like fpc bug. Note 2: Higher optimization flags ('-O3' and '-O4') has bad side effects, like wrong drawing of hogs.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10498
bcd1d7ad2f3e Model file for coverity checks
unc0rr
parents:
diff changeset
     1
void fpcrtl_halt(int num) {
bcd1d7ad2f3e Model file for coverity checks
unc0rr
parents:
diff changeset
     2
    __coverity_panic__();
bcd1d7ad2f3e Model file for coverity checks
unc0rr
parents:
diff changeset
     3
}
bcd1d7ad2f3e Model file for coverity checks
unc0rr
parents:
diff changeset
     4
bcd1d7ad2f3e Model file for coverity checks
unc0rr
parents:
diff changeset
     5
int fpcrtl_abs(int num) {
bcd1d7ad2f3e Model file for coverity checks
unc0rr
parents:
diff changeset
     6
    return num >= 0 ? num : -num;
bcd1d7ad2f3e Model file for coverity checks
unc0rr
parents:
diff changeset
     7
}