├── .appveyor.yml ├── .gitignore ├── .gitmodules ├── .travis.yml ├── COPYING.md ├── README.md ├── atomic ├── README.md └── atomic.h ├── builtin ├── README.md └── builtin.h ├── check ├── README.md └── check.h ├── clock ├── README.md └── clock.h ├── cpu ├── README.md ├── cpu.c └── cpu.h ├── debug-trap ├── README.md └── debug-trap.h ├── endian ├── README.md └── endian.h ├── exact-int ├── README.md └── exact-int.h ├── once ├── README.md └── once.h ├── random ├── README.md ├── random.c └── random.h ├── safe-math ├── README.md └── safe-math.h ├── tests ├── CMakeLists.txt ├── atomic.c ├── builtin.c ├── clock.c ├── cmake │ ├── AddCompilerFlags.cmake │ └── FindClockGettime.cmake ├── cpu.c ├── endian.c ├── once.c ├── random.c ├── safe-math.c └── unaligned.c └── unaligned ├── README.md └── unaligned.h /.appveyor.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/.appveyor.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | *# 3 | *.bak 4 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/.gitmodules -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/.travis.yml -------------------------------------------------------------------------------- /COPYING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/COPYING.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/README.md -------------------------------------------------------------------------------- /atomic/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/atomic/README.md -------------------------------------------------------------------------------- /atomic/atomic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/atomic/atomic.h -------------------------------------------------------------------------------- /builtin/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/builtin/README.md -------------------------------------------------------------------------------- /builtin/builtin.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/builtin/builtin.h -------------------------------------------------------------------------------- /check/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/check/README.md -------------------------------------------------------------------------------- /check/check.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/check/check.h -------------------------------------------------------------------------------- /clock/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/clock/README.md -------------------------------------------------------------------------------- /clock/clock.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/clock/clock.h -------------------------------------------------------------------------------- /cpu/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/cpu/README.md -------------------------------------------------------------------------------- /cpu/cpu.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/cpu/cpu.c -------------------------------------------------------------------------------- /cpu/cpu.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/cpu/cpu.h -------------------------------------------------------------------------------- /debug-trap/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/debug-trap/README.md -------------------------------------------------------------------------------- /debug-trap/debug-trap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/debug-trap/debug-trap.h -------------------------------------------------------------------------------- /endian/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/endian/README.md -------------------------------------------------------------------------------- /endian/endian.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/endian/endian.h -------------------------------------------------------------------------------- /exact-int/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/exact-int/README.md -------------------------------------------------------------------------------- /exact-int/exact-int.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/exact-int/exact-int.h -------------------------------------------------------------------------------- /once/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/once/README.md -------------------------------------------------------------------------------- /once/once.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/once/once.h -------------------------------------------------------------------------------- /random/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/random/README.md -------------------------------------------------------------------------------- /random/random.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/random/random.c -------------------------------------------------------------------------------- /random/random.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/random/random.h -------------------------------------------------------------------------------- /safe-math/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/safe-math/README.md -------------------------------------------------------------------------------- /safe-math/safe-math.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/safe-math/safe-math.h -------------------------------------------------------------------------------- /tests/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/tests/CMakeLists.txt -------------------------------------------------------------------------------- /tests/atomic.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/tests/atomic.c -------------------------------------------------------------------------------- /tests/builtin.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/tests/builtin.c -------------------------------------------------------------------------------- /tests/clock.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/tests/clock.c -------------------------------------------------------------------------------- /tests/cmake/AddCompilerFlags.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/tests/cmake/AddCompilerFlags.cmake -------------------------------------------------------------------------------- /tests/cmake/FindClockGettime.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/tests/cmake/FindClockGettime.cmake -------------------------------------------------------------------------------- /tests/cpu.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/tests/cpu.c -------------------------------------------------------------------------------- /tests/endian.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/tests/endian.c -------------------------------------------------------------------------------- /tests/once.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/tests/once.c -------------------------------------------------------------------------------- /tests/random.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/tests/random.c -------------------------------------------------------------------------------- /tests/safe-math.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/tests/safe-math.c -------------------------------------------------------------------------------- /tests/unaligned.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/tests/unaligned.c -------------------------------------------------------------------------------- /unaligned/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/unaligned/README.md -------------------------------------------------------------------------------- /unaligned/unaligned.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nemequ/portable-snippets/HEAD/unaligned/unaligned.h --------------------------------------------------------------------------------