Starting to remove windows.h includes from things.

This commit is contained in:
Ben Vanik
2015-07-13 20:49:29 -07:00
parent 31dab70a3a
commit 72ad899e9e
33 changed files with 195 additions and 109 deletions

View File

@@ -11,26 +11,8 @@
#include <algorithm>
#if !XE_PLATFORM_WIN32
#include <unistd.h>
#endif // !XE_PLATFORM_WIN32
namespace xe {
size_t page_size() {
static size_t value = 0;
if (!value) {
#if XE_PLATFORM_WIN32
SYSTEM_INFO si;
GetSystemInfo(&si);
value = si.dwAllocationGranularity;
#else
value = getpagesize();
#endif // XE_PLATFORM_WIN32
}
return value;
}
// TODO(benvanik): fancy AVX versions.
// http://gnuradio.org/redmine/projects/gnuradio/repository/revisions/cb32b70b79f430456208a2cd521d028e0ece5d5b/entry/volk/kernels/volk/volk_16u_byteswap.h
// http://gnuradio.org/redmine/projects/gnuradio/repository/revisions/f2bc76cc65ffba51a141950f98e75364e49df874/entry/volk/kernels/volk/volk_32u_byteswap.h