2016-12-27から1日間の記事一覧
a/bをする場合、bが2の乗数であれば「aの指数 - log2(b)」で除算ができます。 #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; }; SingleFloa</cmath></cassert></cstdint></bitset></iostream>…
Version 1.63.0 - Boost C++ Libraries Boost 1.63.0リリースノート - boostjp Boost 1.63.0がリリースされました。リリースノートはいつものように、翻訳・情報補完したものをboostjpサイトで公開しています。 このバージョンは、まだリリースされていないV…