Add namespace; fix warning

This commit is contained in:
Eric Fischer 2017-08-29 13:31:59 -07:00
parent 18b2a2c39c
commit 5f09ccae88

View File

@ -9,12 +9,14 @@
#include <stdint.h>
#endif
namespace milo {
#define UINT64_C2(h, l) ((static_cast<uint64_t>(h) << 32) | static_cast<uint64_t>(l))
struct DiyFp {
DiyFp() {}
DiyFp(uint64_t f, int e) : f(f), e(e) {}
DiyFp(uint64_t ff, int ee) : f(ff), e(ee) {}
DiyFp(double d) {
union {
@ -399,3 +401,5 @@ inline void dtoa_milo(double value, char* buffer) {
Prettify(buffer, length, K);
}
}
}