fork download
#include <stdio.h>

int main(void) {
    int test = 129;
    int modValue, andValue;
    modValue = test % -8;
    andValue = test % 7;
    printf("Mod Value = %d And Value = %d\n", modValue, andValue);
    
    
    int counter = 0;
    for(counter = 0; counter < 10000; counter++) {
    	modValue = abs(-counter % -16);
    	andValue = counter & 15;
    	if(modValue != andValue) {
    		printf("diff found at %d\n", counter);
    	}
    }
    
    printf("loop done");
	return 0;
}
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
Mod Value = 1 And Value = 3
loop done