This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <cstring> // memcpy | |
| #include <type_traits> // is_trivially_copyable | |
| // http://src.chromium.org/viewvc/chrome/trunk/src/base/basictypes.h?view=markup | |
| // bit_cast<Dest,Source> is a template function that implements the | |
| // equivalent of "*reinterpret_cast<Dest*>(&source)". We need this in | |
| // very low-level functions like the protobuf library and fast math | |
| // support. | |
| // |