不知道算不算是编码习惯方面的问题?!
在阅读源码时,有时会遇到像 #define PIDHASH_SZ (4096 >> 2) 这样的语句,我不知道为什么要写成4096>>2这样的形式,它和1024有区别吗? from performance point of view, it is the same.but it is more understandable. 我想和传统I386下页面尺寸是4KB有关吧,别的平台或是I386的2MB页面尺寸都是4KB的整数倍。。。。 from performance point of view, it is the same.
but it is more understandable.
why is it more understandable?
What should we get from it? i feel.:-Dpersonal feeling.
页:
[1]