From 71d9bc1ec83979000547c5134a45d1ee8cb4b55e Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 2 Mar 2020 13:54:19 +0100 Subject: [PATCH] Move math types to a separate types/ subdirectory. --- {legacy => include}/lol/math/constants.h | 6 +++--- include/lol/{math => types}/bigint.h | 0 include/lol/{math => types}/half.h | 0 include/lol/{math => types}/private/real.ipp | 0 include/lol/{math => types}/real.h | 0 5 files changed, 3 insertions(+), 3 deletions(-) rename {legacy => include}/lol/math/constants.h (90%) rename include/lol/{math => types}/bigint.h (100%) rename include/lol/{math => types}/half.h (100%) rename include/lol/{math => types}/private/real.ipp (100%) rename include/lol/{math => types}/real.h (100%) diff --git a/legacy/lol/math/constants.h b/include/lol/math/constants.h similarity index 90% rename from legacy/lol/math/constants.h rename to include/lol/math/constants.h index 49185987..d75e9702 100644 --- a/legacy/lol/math/constants.h +++ b/include/lol/math/constants.h @@ -1,7 +1,7 @@ // // Lol Engine // -// Copyright © 2010—2015 Sam Hocevar +// Copyright © 2010—2020 Sam Hocevar // // Lol Engine is free software. It comes without any warranty, to // the extent permitted by applicable law. You can redistribute it @@ -27,7 +27,7 @@ namespace lol static double const D_##name = (double)LD_##name; \ static float const F_##name = (float)LD_##name; -/* These values are truncated, not rounded, because I don’t care. */ +// These values get truncated, not rounded, because I don’t care much LOL_MATH_CONSTANT(TAU, 6.28318530717958647692528676655900576839433879875L) @@ -45,5 +45,5 @@ LOL_MATH_CONSTANT(SQRT_1_2, 0.70710678118654752440084436210484903928483593768L) #undef LOL_MATH_CONSTANT -} /* namespace lol */ +} // namespace lol diff --git a/include/lol/math/bigint.h b/include/lol/types/bigint.h similarity index 100% rename from include/lol/math/bigint.h rename to include/lol/types/bigint.h diff --git a/include/lol/math/half.h b/include/lol/types/half.h similarity index 100% rename from include/lol/math/half.h rename to include/lol/types/half.h diff --git a/include/lol/math/private/real.ipp b/include/lol/types/private/real.ipp similarity index 100% rename from include/lol/math/private/real.ipp rename to include/lol/types/private/real.ipp diff --git a/include/lol/math/real.h b/include/lol/types/real.h similarity index 100% rename from include/lol/math/real.h rename to include/lol/types/real.h