|
@@ -8,11 +8,15 @@
|
|
#include <AK/StringFloatingPointConversions.h>
|
|
#include <AK/StringFloatingPointConversions.h>
|
|
#include <LibTest/TestCase.h>
|
|
#include <LibTest/TestCase.h>
|
|
|
|
|
|
-static bool operator!=(AK::FloatingPointExponentialForm a, AK::FloatingPointExponentialForm b)
|
|
|
|
|
|
+namespace AK {
|
|
|
|
+
|
|
|
|
+static bool operator!=(FloatingPointExponentialForm a, FloatingPointExponentialForm b)
|
|
{
|
|
{
|
|
return a.sign != b.sign || a.exponent != b.exponent || a.fraction != b.fraction;
|
|
return a.sign != b.sign || a.exponent != b.exponent || a.fraction != b.fraction;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+}
|
|
|
|
+
|
|
template<>
|
|
template<>
|
|
struct AK::Formatter<AK::FloatingPointExponentialForm> : Formatter<FormatString> {
|
|
struct AK::Formatter<AK::FloatingPointExponentialForm> : Formatter<FormatString> {
|
|
ErrorOr<void> format(FormatBuilder& builder, AK::FloatingPointExponentialForm value)
|
|
ErrorOr<void> format(FormatBuilder& builder, AK::FloatingPointExponentialForm value)
|