I came across this line of code in a reseach paper for "Efficient Integral Image Computation on the GPU":
for (int d = n>>1; d>0; d>>=1){...}
(int) n is an input variable.
I am familiar with for-loops and c++ in general. So I just could figure out the parts n>>1
and d>>=1
. I havent seen this before. Could someone provide a short explanation?
Thank you.