Project

General

Profile

Revision 137

corrected problem in 5th function

View differences:

utils.c
36 36
    return (x >= 0) ? (int16_t)(x) : (int16_t)(-x);
37 37
}
38 38

  
39
uint16_t min(uint16_t a, uint16_t b){
40
    return (b < a ? b : a);
41
}
39
int16_t min(int16_t a, int16_t b){ return (b < a ? b : a); }
40
int16_t max(int16_t a, int16_t b){ return (a < b ? b : a); }

Also available in: Unified diff