summaryrefslogtreecommitdiff
path: root/src/common/memory_hook.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-04-11 20:26:37 -0400
committerLioncash <mathew1800@gmail.com>2019-04-11 20:36:19 -0400
commit9cb4b7be40dd93d4982d78a5f420326fd9c628a8 (patch)
tree31a11148138dece030895b70a0e5304d27401129 /src/common/memory_hook.cpp
parent598954436ffd4da2d6cf8c6737b4c675afcb8447 (diff)
common/swap: Simplify swap function ifdefs
Including every OS' own built-in byte swapping functions is kind of undesirable, since it adds yet another build path to ensure compilation succeeds on. Given we only support clang, GCC, and MSVC for the time being, we can utilize their built-in functions directly instead of going through the OS's API functions. This shrinks the overall code down to just if (msvc) use msvc's functions else if (clang or gcc) use clang/gcc's builtins else use the slow path
Diffstat (limited to 'src/common/memory_hook.cpp')
0 files changed, 0 insertions, 0 deletions