[gdal-dev] Different results when reading a GeoTIFF with GDAL 2.1.2 vs 3.x

Momtchil Momtchev momtchil at momtchev.com
Sun Dec 29 13:36:24 PST 2019


     Disabling HAVE_SSSE3_AT_COMPILE_TIME had no effect, but after 
short-circuiting the #ifdef I got a correct result.

On 29/12/2019 22:18, Even Rouault wrote:
> On dimanche 29 décembre 2019 22:04:23 CET Momtchil Momtchev wrote:
>>       That was my first idea too so I rebuilt without SSE,
> --without-sse will have no effect on a 64-bit build on the part of the code
> I'm suspecting (it only affects gdal_grid). As all Intel/AMD CPUs supporting
> 64-bit have SSE and SSE2, SSE2 optimizations are unconditionally enabled.
>
> In gcore/rasterio.cpp, can you change line 2869
>
> #if (defined(__x86_64) || defined(_M_X64)) &&  !(defined(__GNUC__) && __GNUC__
> < 4)
>
> to
>
> #if 0
>
> to remove any SSE2 (and SSSE3) optimization ?
>
-- 
Momtchil Momtchev <momtchil at momtchev.com>



More information about the gdal-dev mailing list