fix: applied fixes for g++

This commit is contained in:
2025-12-20 21:58:48 +01:00
parent a1d8d374c5
commit 3b06e581c6
3 changed files with 9 additions and 7 deletions

View File

@@ -1,11 +1,12 @@
#ifndef FASTMATH_H
#define FASTMATH_H
#include <iostream>
#include <math.h>
#include <iostream>
#include <stdint.h>
#include <stdlib.h>
#include <vector>
#include <iostream>
#define SHIFT_AMOUNT 16
#define HALF_SHIFT (SHIFT_AMOUNT / 2)
@@ -26,7 +27,7 @@ struct decimal {
decimal(double i) : i(TO_INT(i)) {}
decimal(int32_t i) : i(i) {}
friend std::ostream &operator<<(std::ostream &os, const decimal &d) {
friend std::ostream& operator<<(std::ostream& os, const decimal &d) {
return (os << TO_FLOAT(d.i));
}