1. 12 Apr, 2019 3 commits
    • Lioncash's avatar
      common/swap: Mark byte swapping free functions with [[nodiscard]] and noexcept · 66b73fd3
      Lioncash authored
      Allows the compiler to inform when the result of a swap function is
      being ignored (which is 100% a bug in all usage scenarios). We also mark
      them noexcept to allow other functions using them to be able to be
      marked as noexcept and play nicely with things that potentially inspect
      "nothrowability".
      66b73fd3
    • Lioncash's avatar
      common/swap: Simplify swap function ifdefs · 9cb4b7be
      Lioncash authored
      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
      9cb4b7be
    • Lioncash's avatar
      common/swap: Remove 32-bit ARM path · 59895443
      Lioncash authored
      We don't plan to support host 32-bit ARM execution environments, so this
      is essentially dead code.
      59895443
  2. 09 Apr, 2019 10 commits
  3. 08 Apr, 2019 3 commits
  4. 07 Apr, 2019 16 commits
  5. 06 Apr, 2019 8 commits