惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

腾讯CDC
N
Netflix TechBlog - Medium
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
F
Fortinet All Blogs
大猫的无限游戏
大猫的无限游戏
I
InfoQ
V
V2EX
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
有赞技术团队
有赞技术团队
G
Google Developers Blog
L
LangChain Blog
博客园_首页
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
月光博客
月光博客
IT之家
IT之家
量子位
宝玉的分享
宝玉的分享
S
SegmentFault 最新的问题
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
雷峰网
雷峰网

博客园 - octoberfirst

Service注册发现及其调用-分布式服务框架 比较成熟的支持数据分票的数据库产品 CodeCommit on Amazon AWS 使用yeoman来搭建webapp脚手架 5美元的互联网硬件主板 互联网创业的逻辑 Pyramid, Django, 和 Flask 51 Best DevOps Tools for #DevOps Engineers 目前的流行的一些开源框架 bank business Use HttpApplication.CompleteRequest Instead of Response.End A low-level Look at the ASP.NET Architecture Bit-tricks and other nifty little snippets. Endianess The best method for counting bits in a 32-bit integer Scalability Best Practices: Lessons from eBay Changes to JavaScript, Part 1: EcmaScript 5 Enterprise Service Bus Overview Inheriting From a Native C++ Class in C# - octoberfirst
The best method for counting bits in a 32-bit integer(2)
octoberfirst · 2010-03-13 · via 博客园 - octoberfirst
long count_bits(long n) {     
  unsigned int c; // c accumulates the total bits set in v
  for (c = 0; n; c++)
    n &= n - 1; // clear the least significant bit set
  return c;
}

http://gurmeetsingh.wordpress.com/2008/08/05/fast-bit-counting-routines/