Skip to content

Commit

Permalink
MinMax empty constructor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
snake-biscuits committed Apr 25, 2024
1 parent ca3c2f4 commit f65385e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bounds.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <cmath>
#include <cstdint>
#include <immintrin.h>
#include <limits>

#include "titanfall.hpp"

Expand All @@ -9,8 +10,8 @@ struct MinMax {
__m128 min, max;

MinMax() {
min = _mm_setzero_ps();
max = _mm_setzero_ps();
min = _mm_set_ps1(std::numeric_limits<float>::max());
max = _mm_set_ps1(std::numeric_limits<float>::lowest());
}

MinMax(const __m128 &start) {
Expand Down

0 comments on commit f65385e

Please sign in to comment.