Deprecate BitTwiddling module, fix obsolete standard header inclusion

This commit is contained in:
2025-02-02 22:09:43 -05:00
parent 437113437f
commit 1a5737a356
2 changed files with 4 additions and 21 deletions

View File

@@ -165,7 +165,7 @@ namespace J3ML::BitTwiddling {
u32 BinaryStringToValue(const char* s); u32 BinaryStringToValue(const char* s);
/// Returns the number of 1's set in the given value. /// Returns the number of 1's set in the given value.
inline int CountBitsSet(u32 value); //inline int CountBitsSet(u32 value);
} }
namespace J3ML::Math { namespace J3ML::Math {

View File

@@ -10,8 +10,7 @@
#include <format> #include <format>
#include <iomanip> #include <iomanip>
#include <strstream> #include <J3ML/J3ML.hpp>
#include "J3ML/J3ML.hpp"
#include <sstream> #include <sstream>
@@ -133,9 +132,7 @@ namespace J3ML::Math::Functions::Trigonometric {
} }
namespace J3ML::Math::Functions { namespace J3ML::Math::Functions { }
}
namespace J3ML { namespace J3ML {
@@ -169,9 +166,6 @@ namespace J3ML {
return 1.f / Sqrt(x); return 1.f / Sqrt(x);
} }
int SigFigsTable[] = {0,0,0,1,0,0,1,0,0,1}; int SigFigsTable[] = {0,0,0,1,0,0,1,0,0,1};
int DivBy[] = {1,1,1, 1000,1000,1000, 1000000, 1000000, 1000000, 1000000000, 1000000000,1000000000}; int DivBy[] = {1,1,1, 1000,1000,1000, 1000000, 1000000, 1000000, 1000000000, 1000000000,1000000000};
@@ -297,8 +291,6 @@ namespace J3ML {
return 1.f / x; return 1.f / x;
} }
Math::Rotation::Rotation() : valueInRadians(0) {} Math::Rotation::Rotation() : valueInRadians(0) {}
Math::Rotation::Rotation(float value) : valueInRadians(value) {} Math::Rotation::Rotation(float value) : valueInRadians(value) {}
@@ -311,19 +303,10 @@ namespace J3ML {
return {valueInRadians + rhs.valueInRadians}; return {valueInRadians + rhs.valueInRadians};
} }
// int BitTwiddling::CountBitsSet(u32 value) { }
int BitTwiddling::CountBitsSet(u32 value) {
}
namespace Math::Functions { namespace Math::Functions {
bool IsPow2(u32 number) { bool IsPow2(u32 number) {
return (number & (number - 1)) == 0; return (number & (number - 1)) == 0;
} }