{"type":"rich","width":"100%","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F2016%2F12%2F27%2F171040\" title=\"\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\u30922\u306e\u4e57\u6570\u3067\u5272\u308b - Faith and Brave - C++\u3067\u904a\u307c\u3046\" 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://faithandbrave.hateblo.jp/","blog_title":"Faith and Brave - C++\u3067\u904a\u307c\u3046","published":"2016-12-27 17:10:40","author_name":"faith_and_brave","version":"1.0","description":"a/b\u3092\u3059\u308b\u5834\u5408\u3001b\u304c2\u306e\u4e57\u6570\u3067\u3042\u308c\u3070\u300ca\u306e\u6307\u6570 - log2(b)\u300d\u3067\u9664\u7b97\u304c\u3067\u304d\u307e\u3059\u3002 #include <iostream> #include <bitset> #include <cstdint> #include <cassert> #include <cmath> union SingleFloat { float value; struct { int fraction : 23; int exponent : 8; bool sign : 1; } parts; }; SingleFloat divide(SingleFloat a, std::uint32_t b) { // \u2026","provider_url":"https://hatena.blog","categories":["C++"],"url":"https://faithandbrave.hateblo.jp/entry/2016/12/27/171040","image_url":null,"height":"190","author_url":"https://blog.hatena.ne.jp/faith_and_brave/","title":"\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\u30922\u306e\u4e57\u6570\u3067\u5272\u308b"}