QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1201|回复: 4

不知道算不算是编码习惯方面的问题?!

[复制链接]
发表于 2003-9-20 15:54:31 | 显示全部楼层 |阅读模式
在阅读源码时,有时会遇到像 #define PIDHASH_SZ (4096 >> 2) 这样的语句,我不知道为什么要写成4096>>2这样的形式,它和1024有区别吗?
发表于 2003-9-20 23:03:34 | 显示全部楼层
from performance point of view, it is the same.
but it is more understandable.
回复

使用道具 举报

发表于 2003-9-28 15:33:56 | 显示全部楼层
我想和传统I386下页面尺寸是4KB有关吧,别的平台或是I386的2MB页面尺寸都是4KB的整数倍。。。。
回复

使用道具 举报

发表于 2003-9-29 09:59:12 | 显示全部楼层
[quote:7b6e8845b5="Dragonfly"]from performance point of view, it is the same.
but it is more understandable.[/quote]

why is it more understandable?
What should we get from it?
回复

使用道具 举报

发表于 2003-10-4 05:04:47 | 显示全部楼层
i feel.    personal feeling.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-28 04:19 , Processed in 0.093070 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表