Commit Graph

2320 Commits

Author SHA1 Message Date
6a8b78cdd7 fixup: add minimal filesystem implementation
Implement the minimum possible surface of std::experimental::filesystem
in terms of POSIX APIs so that we can compile under mingw
2016-11-17 18:38:09 +11:00
cb32823248 hash: add xxhash implementation 2016-11-17 18:38:09 +11:00
5b44b8f3e0 hash/simple: forward arguments to hash function 2016-11-17 18:38:09 +11:00
a10c091114 introspection: use pointers over arrays for type_name
It's too hard to diagnose undefined symbol issues under clang so we use
pointers for the time being.
2016-11-17 18:38:09 +11:00
67f2aee701 io_win32: rename util::fd to posix::fd 2016-11-17 18:38:08 +11:00
31e9270e6b build: fix missing windows includes 2016-11-17 18:38:08 +11:00
d24c979c6b range: define static members before first use 2016-11-17 18:38:08 +11:00
286dd1278f build: remove sign comparison mismatch 2016-11-17 18:38:08 +11:00
947ec5cdb2 stringid: remove explicit synchronisation
It is more appropriate to synchronise externally, and it simplifies
building across mingw which lacks std::mutex and friends.
2016-11-17 18:38:08 +11:00
e85c31f526 build: unconditionally build posix fd/dir
These are always safe with mingw
2016-11-17 18:38:08 +11:00
246357e279 random: remove typed randomisers without generators 2016-11-17 18:38:08 +11:00
9a6a406fa2 build: use path objects over c_str calls 2016-11-17 18:07:57 +11:00
a93dd90da9 types: remove elems function, prefer std::size
Now that std::size is part of our supported compilers we can remove the
old elems function.
2016-11-17 18:06:39 +11:00
70f0fdd830 build: fix for mingw32 and libssp 2016-11-17 18:05:10 +11:00
a2cbcc88c6 m4/nc: bump for filesystem library 2016-11-02 22:12:03 +11:00
d9de1c3f58 configure: bump to AM-1.15, drop dist-bzip2 2016-11-02 22:08:02 +11:00
4f3fd9547d region: add three dimensional typedefs 2016-10-25 20:02:19 +11:00
77c7d87d60 region: remove incorrect union accessors
the union accessors x,y,w,h were predicated on the dimension being 2.
for higher/lower dimensions this resulted in the incorrect variable
being returned.

rather than do something fancy with unions and coord storage type for
access to the underlying data we force the user to acknowledge the split
storage of point/extent.

unfortunately we have pretty shitty names for the components as a
result.
2016-10-25 19:59:53 +11:00
249f8adfed region: forward is_valid to component point and extent 2016-10-25 19:59:06 +11:00
17423ca1c7 extent: instantiate is_valid for more types 2016-10-25 19:58:38 +11:00
7121415c5f point: add is_valid specialisation 2016-10-25 19:58:19 +11:00
919c635f63 coord/base: assert we are using arithmetic types 2016-10-25 19:57:37 +11:00
1662856e82 io: use size_t result for mapped_file::size 2016-10-25 19:57:13 +11:00
c04b153242 m4/nc: bump for sanitizer options 2016-10-25 17:50:11 +11:00
1b5ad41b5d io: use intmax for size to match mmap output 2016-10-25 17:50:11 +11:00
6781f7a361 cast: allow trunc_cast to same type
this makes templated code slightly easier to write
2016-10-25 17:50:11 +11:00
e5d44d0c6d coord: instantiate signed types 2016-10-25 17:50:11 +11:00
9546526c1f region: remove extent_t/point_t distinction
it's too problematic to retain signedness distinctions between base
points and region extents. just use the same types, but retain the
named typedefs for compatibility.
2016-10-25 17:50:11 +11:00
ec78216813 coord: prefer int/unsigned to intmax/size_t 2016-10-25 17:46:36 +11:00
0d9d6317fc quaternion: add second optimised vector rotate
The original code was supposed to be from a stackexchange derivation,
but it clearly doesnt match the link.
2016-10-18 16:45:57 +11:00
3a4b711467 quaternion: add assignment-multiply operator 2016-10-18 16:45:38 +11:00
e549f3d554 matrix: move identity and zeroes into constexpr funcs 2016-10-17 22:34:53 +11:00
e96ef7af32 quaternion: move out of coord infrastructure 2016-10-17 22:30:16 +11:00
b5b7ae3a9a quaternion: use consistent order for naive impl 2016-10-17 18:58:45 +11:00
df27f5f89e quaternion: add naive from_to implementation 2016-10-17 18:58:41 +11:00
1582af98e6 quaterion: orthogonalise up before use in look 2016-10-17 18:56:10 +11:00
607aaceb29 matrix: fix transposed matrix in look_at 2016-10-17 16:51:26 +11:00
9cff1e9c85 test/affine: add trivial origin rotation test 2016-10-17 16:51:06 +11:00
b927c8b8e7 vector: make cross function constexpr 2016-10-17 16:49:26 +11:00
c4bb04dee7 build: add posix forward decl 2016-10-14 18:01:16 +11:00
1d53c32de0 quaternion: add trivial from_to tests 2016-10-12 23:03:33 +11:00
db076ad6f4 quaternion: update look, from_to, rotate 2016-10-12 23:03:33 +11:00
1af6ed4ca8 matrix: fix look_at multiply ordering 2016-10-12 23:03:33 +11:00
2c6011394f coord/ops: assert when normalising zero coords 2016-10-12 22:58:13 +11:00
9a798446b5 build: remove unnecessary includes
discovered with include-what-you-use
2016-10-12 15:08:22 +11:00
be6ca2e1d2 build: workaround unknown warning warning in clang 2016-10-11 21:44:25 +11:00
2015e71f64 build: workaround enum-to-int cast warnings in LOG calls 2016-10-11 21:44:04 +11:00
68fa98e70e build: workaround gcc synthesis constructor cast warnings 2016-10-11 21:43:28 +11:00
98350fedab build: silence unused var/func warnings 2016-10-11 21:43:07 +11:00
5a810010fe posix/fd: add lseek member function 2016-10-11 20:58:31 +11:00