I have a code segment that requires the remainder of two ints. I am using modulus operator as usual but I am hearing that it takes more time. So I am asking that is there any way to get the remainder more efficiently than mod operation... The following will be my code
int rem=gid%bpp
gid
being any int and bpp
being 2,4,8,16,32.