Windows build fix, warning removal.

This commit is contained in:
Adam Ierymenko 2017-01-20 12:00:18 -08:00
parent 91a37ec639
commit 9a475eeff9
3 changed files with 13 additions and 94 deletions

View file

@ -65,6 +65,12 @@ public:
Node(void *uptr,const struct ZT_Node_Callbacks *callbacks,uint64_t now);
virtual ~Node();
// Get rid of alignment warnings on 32-bit Windows and possibly improve performance
#ifdef __WINDOWS__
void * operator new(size_t i) { return _mm_malloc(i,16); }
void operator delete(void* p) { _mm_free(p); }
#endif
// Public API Functions ----------------------------------------------------
ZT_ResultCode processWirePacket(