From febbc34a168bfa50d8bab390b73f55812f50f137 Mon Sep 17 00:00:00 2001 From: Fabian Giesen Date: Wed, 24 Dec 2014 10:53:31 +0100 Subject: [PATCH] stb_image: Rename SSE2/NEON IDCTs to idct_simd. --- stb_image.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stb_image.h b/stb_image.h index 647f8a9..4550308 100644 --- a/stb_image.h +++ b/stb_image.h @@ -1888,7 +1888,7 @@ static void stbi__idct_block(stbi_uc *out, int out_stride, short data[64]) // sse2 integer IDCT. not the fastest possible implementation but it // produces bit-identical results to the generic C version so it's // fully "transparent". -static void stbi__idct_sse2(stbi_uc *out, int out_stride, short data[64]) +static void stbi__idct_simd(stbi_uc *out, int out_stride, short data[64]) { // This is constructed to match our regular (generic) integer IDCT exactly. __m128i row0, row1, row2, row3, row4, row5, row6, row7; @@ -2069,7 +2069,7 @@ static void stbi__idct_sse2(stbi_uc *out, int out_stride, short data[64]) // NEON integer IDCT. should produce bit-identical // results to the generic C version. -static void stbi__idct_neon(stbi_uc *out, int out_stride, short data[64]) +static void stbi__idct_simd(stbi_uc *out, int out_stride, short data[64]) { int16x8_t row0, row1, row2, row3, row4, row5, row6, row7; @@ -3118,7 +3118,7 @@ static void stbi__setup_jpeg(stbi__jpeg *j) #ifdef STBI_SSE2 if (stbi__sse2_available()) { - j->idct_block_kernel = stbi__idct_sse2; + j->idct_block_kernel = stbi__idct_simd; #ifndef STBI_JPEG_OLD j->YCbCr_to_RGB_kernel = stbi__YCbCr_to_RGB_simd; #endif @@ -3127,7 +3127,7 @@ static void stbi__setup_jpeg(stbi__jpeg *j) #endif #ifdef STBI_NEON - j->idct_block_kernel = stbi__idct_neon; + j->idct_block_kernel = stbi__idct_simd; #ifndef STBI_JPEG_OLD j->YCbCr_to_RGB_kernel = stbi__YCbCr_to_RGB_simd; #endif