Skip to content

Latest commit

 

History

History
9 lines (8 loc) · 158 Bytes

README.md

File metadata and controls

9 lines (8 loc) · 158 Bytes

2.42

int div16(int x){
    int sign = (x >> 31) ; // if x < 0 then sign is 0xFFFFFFFF;
    int bias = sign & 0xF;
    return (x + bias) >> 4;
}