Skip to content

Commit

Permalink
Adds missing limits.h
Browse files Browse the repository at this point in the history
  • Loading branch information
aous72 committed Nov 5, 2024
1 parent c73bfe4 commit 6a4824d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/core/codestream/ojph_codestream_avx2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
// Date: 15 May 2022
//***************************************************************************/

#include <climits>
#include <immintrin.h>
#include "ojph_defs.h"

Expand Down
3 changes: 2 additions & 1 deletion src/core/codestream/ojph_codestream_sse2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
// Date: 15 May 2022
//***************************************************************************/

#include <climits>
#include <immintrin.h>
#include "ojph_defs.h"

Expand Down Expand Up @@ -81,7 +82,7 @@ namespace ojph {

// convert to sign and magnitude and keep max_val
ui32 shift = 31 - K_max;
__m128i m0 = _mm_set1_epi32((int)0x80000000);
__m128i m0 = _mm_set1_epi32(INT_MIN);
__m128i zero = _mm_setzero_si128();
__m128i one = _mm_set1_epi32(1);
__m128i tmax = _mm_loadu_si128((__m128i*)max_val);
Expand Down
1 change: 1 addition & 0 deletions src/core/transform/ojph_colour_sse2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
// Date: 11 October 2019
//***************************************************************************/

#include <climits>
#include <cmath>

#include "ojph_defs.h"
Expand Down
1 change: 1 addition & 0 deletions src/core/transform/ojph_transform_avx2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
// Date: 28 August 2019
//***************************************************************************/

#include <climits>
#include <cstdio>

#include "ojph_defs.h"
Expand Down
1 change: 1 addition & 0 deletions src/core/transform/ojph_transform_sse2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
// Date: 28 August 2019
//***************************************************************************/

#include <climits>
#include <cstdio>

#include "ojph_defs.h"
Expand Down

0 comments on commit 6a4824d

Please sign in to comment.