Compare commits
No commits in common. "3b2b535ad5d03b8da996cd307f71f778fc3c6f68" and "696bce8bda1e4a988b8c6ce93884dda61408cc6c" have entirely different histories.
3b2b535ad5
...
696bce8bda
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#include "utility_fixedpoint.hpp"
|
#include "utility_fixedpoint.hpp"
|
||||||
|
|
||||||
using FP15 = Utility::FixedPoint<std::uint32_t, 15>;
|
using FP15 = Peripherals::FixedPoint<std::uint32_t, 15>;
|
||||||
|
|
||||||
TEST_CASE("FP constructors work appropriately.", "[utility],[fixed point]")
|
TEST_CASE("FP constructors work appropriately.", "[utility],[fixed point]")
|
||||||
{
|
{
|
||||||
@ -172,7 +172,7 @@ TEST_CASE("FP arithmetic operators work appropriately.", "[utility],[fixed point
|
|||||||
TEMPLATE_TEST_CASE("FP converting back to integral values works appropriately.", "[utility],[fixed point]",
|
TEMPLATE_TEST_CASE("FP converting back to integral values works appropriately.", "[utility],[fixed point]",
|
||||||
std::int8_t, std::int16_t, std::int32_t)
|
std::int8_t, std::int16_t, std::int32_t)
|
||||||
{
|
{
|
||||||
using FP = Utility::FixedPoint<TestType, 4>;
|
using FP = Peripherals::FixedPoint<TestType, 4>;
|
||||||
|
|
||||||
FP fp(4);
|
FP fp(4);
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
|
||||||
namespace Utility
|
namespace Peripherals
|
||||||
{
|
{
|
||||||
|
|
||||||
namespace Details
|
namespace Details
|
||||||
@ -301,6 +301,6 @@ using Q7 = FixedPoint<std::int8_t, 7>;
|
|||||||
using Q15 = FixedPoint<std::int16_t, 15>;
|
using Q15 = FixedPoint<std::int16_t, 15>;
|
||||||
using Q31 = FixedPoint<std::int32_t, 31>;
|
using Q31 = FixedPoint<std::int32_t, 31>;
|
||||||
|
|
||||||
}// namespace Utility
|
}// namespace Peripherals
|
||||||
|
|
||||||
#endif//SKULLC_UTILITY_FIXEDPOINT_HPP_
|
#endif//SKULLC_UTILITY_FIXEDPOINT_HPP_
|
||||||
|
|||||||
@ -38,13 +38,6 @@ public:
|
|||||||
virtual void log(const char* format, ...) = 0;
|
virtual void log(const char* format, ...) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct NullLogSink : ILogger
|
|
||||||
{
|
|
||||||
void log(const char*, ...) override
|
|
||||||
{
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
}// namespace Utility
|
}// namespace Utility
|
||||||
|
|
||||||
#endif// SKULLC_UTILITY_ILOGGER_HPP_
|
#endif// SKULLC_UTILITY_ILOGGER_HPP_
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user