From b63d8488466fd0871b33f7f6c4c345785416c5d0 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 15 Aug 2019 02:27:36 -0400 Subject: [PATCH] hecl/hecl: Amend lingering formatting inconsistencies Amends formatting issues that were pre-existing to get them out of the way. --- hecl/include/hecl/hecl.hpp | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/hecl/include/hecl/hecl.hpp b/hecl/include/hecl/hecl.hpp index b1ae1441f..b19fa3cd6 100644 --- a/hecl/include/hecl/hecl.hpp +++ b/hecl/include/hecl/hecl.hpp @@ -591,7 +591,8 @@ public: return SystemString(beginIt, absPathForward.cend()); } } - LogModule.report(logvisor::Fatal, fmt(_SYS_STR("unable to resolve '{}' as project relative '{}'")), absPath, m_projRoot); + LogModule.report(logvisor::Fatal, fmt(_SYS_STR("unable to resolve '{}' as project relative '{}'")), absPath, + m_projRoot); return SystemString(); } @@ -1209,13 +1210,25 @@ constexpr uint32_t SBig(uint32_t val) { return bswap32(val); } constexpr int64_t SBig(int64_t val) { return bswap64(val); } constexpr uint64_t SBig(uint64_t val) { return bswap64(val); } constexpr float SBig(float val) { - union { float f; atInt32 i; } uval1 = {val}; - union { atInt32 i; float f; } uval2 = {bswap32(uval1.i)}; + union { + float f; + atInt32 i; + } uval1 = {val}; + union { + atInt32 i; + float f; + } uval2 = {bswap32(uval1.i)}; return uval2.f; } constexpr double SBig(double val) { - union { double f; atInt64 i; } uval1 = {val}; - union { atInt64 i; double f; } uval2 = {bswap64(uval1.i)}; + union { + double f; + atInt64 i; + } uval1 = {val}; + union { + atInt64 i; + double f; + } uval2 = {bswap64(uval1.i)}; return uval2.f; } #ifndef SBIG @@ -1267,7 +1280,7 @@ constexpr double SBig(double val) { return val; } template constexpr void hash_combine_impl(SizeT& seed, SizeT value) { - seed ^= value + 0x9e3779b9 + (seed<<6) + (seed>>2); + seed ^= value + 0x9e3779b9 + (seed << 6) + (seed >> 2); } } // namespace hecl