{"height":"190","version":"1.0","categories":["Programming","C"],"type":"rich","title":"\u30d3\u30c3\u30c8\u30ea\u30d0\u30fc\u30b9","url":"https://qnighy.hatenablog.com/entry/20091006/1254832950","author_url":"https://blog.hatena.ne.jp/qnighy/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fqnighy.hatenablog.com%2Fentry%2F20091006%2F1254832950\" title=\"\u30d3\u30c3\u30c8\u30ea\u30d0\u30fc\u30b9 - \u7c21\u6f54\u306aQ\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://qnighy.hatenablog.com/","author_name":"qnighy","provider_url":"https://hatena.blog","description":"\u30d3\u30c3\u30c8\u3092\u6570\u3048\u308b\u30fb\u63a2\u3059\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306epopcount\u3092\u3061\u3087\u3063\u3068\u6539\u5909\u3059\u308c\u3070\u3044\u3044\u3060\u3051\u3084\u3093\u3051\u3002 #include <stdio.h> unsigned int bitreverse(unsigned int x) { x = (x & 0x55555555)<<1 | (x & 0xaaaaaaaa)>>1; x = (x & 0x33333333)<<2 | (x & 0xcccccccc)>>2; x = (x & 0x0f0f0f0f)<<4 | (x & 0xf0f0f0f0)>>4; x = (x & 0x00ff00ff)<<8 | (x & 0xff00ff00)>>8; x = (x \u2026","published":"2009-10-06 21:42:30","blog_title":"\u7c21\u6f54\u306aQ","width":"100%","image_url":null,"provider_name":"Hatena Blog"}