Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing STBIRDEF to allow multiple stb_image_resize2.h implementations #1739

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions stb_image_resize2.h
Original file line number Diff line number Diff line change
Expand Up @@ -1451,8 +1451,8 @@ static stbir__inline stbir_uint8 stbir__linear_to_srgb_uchar(float in)
#include <smmintrin.h>
#define stbir__simdf_pack_to_8words(out,reg0,reg1) out = _mm_packus_epi32(_mm_cvttps_epi32(_mm_max_ps(_mm_min_ps(reg0,STBIR__CONSTF(STBIR_max_uint16_as_float)),_mm_setzero_ps())), _mm_cvttps_epi32(_mm_max_ps(_mm_min_ps(reg1,STBIR__CONSTF(STBIR_max_uint16_as_float)),_mm_setzero_ps())))
#else
STBIR__SIMDI_CONST(stbir__s32_32768, 32768);
STBIR__SIMDI_CONST(stbir__s16_32768, ((32768<<16)|32768));
STBIRDEF STBIR__SIMDI_CONST(stbir__s32_32768, 32768);
STBIRDEF STBIR__SIMDI_CONST(stbir__s16_32768, ((32768<<16)|32768));

#define stbir__simdf_pack_to_8words(out,reg0,reg1) \
{ \
Expand Down