消息 [77918]
Regarding the last few posts:
* Raymond's implementation, while ugly, provides a completely orthogonal
way to test compute numbits, useful in unit tests if nothing else.
* Using x >> 1 in a reference implementation is perfectly reasonable.
If the person using the reference implementation to produce a real
C-based implementation doesn't understand the equivalence of x // 2
and x >> 1, heaven help us.
Skip |
|
| 日期 |
用户 |
动作 |
参数 |
| 2008-12-16 18:33:20 | skip.montanaro | 修改 | recipients:
+ skip.montanaro, loewis, rhettinger, terry.reedy, mark.dickinson, pitrou, vstinner, fredrikj |
| 2008-12-16 18:33:20 | skip.montanaro | 修改 | messageid: <1229452400.39.0.130886056827.issue3439@psf.upfronthosting.co.za> |
| 2008-12-16 18:33:19 | skip.montanaro | 链接 | issue3439 messages |
| 2008-12-16 18:33:18 | skip.montanaro | 创建 | |
|