From be5802612544e3189d4673d0fa1c5e0425a7491f Mon Sep 17 00:00:00 2001 From: Lilith River Date: Mon, 23 Mar 2026 19:50:43 -0600 Subject: [PATCH] fix: demote off_l16.tif to smoke test (LogLuv exp() platform variance) log16_to_y() uses f32::exp() which is not required to be correctly rounded by IEEE 754. Apple libm on arm64 differs by 1 ULP from glibc on x86_64, producing different CRC32 checksums for the decoded output. Same issue as off_luv32.tif which was already demoted in commit 617dc6e. A deterministic LUT-based approach could fix both in a follow-up. --- tests/decode_libtiffpic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/decode_libtiffpic.rs b/tests/decode_libtiffpic.rs index 2479fd7..3bcd888 100644 --- a/tests/decode_libtiffpic.rs +++ b/tests/decode_libtiffpic.rs @@ -184,7 +184,7 @@ const FILES: &[(&str, Option)] = &[ ("tests/libtiffpic/jim___dg.tif", Some(0x8c6a5e8f)), ("tests/libtiffpic/jim___gg.tif", Some(0x8c6a5e8f)), ("tests/libtiffpic/ladoga.tif", Some(0x9b118511)), - ("tests/libtiffpic/off_l16.tif", Some(0xd434a2d9)), + ("tests/libtiffpic/off_l16.tif", Some(0)), // LogLuv decoder output varies across platforms ("tests/libtiffpic/off_luv24.tif", Some(0x2bee71a2)), ("tests/libtiffpic/off_luv32.tif", Some(0)), // LogLuv decoder output varies across platforms ("tests/libtiffpic/oxford.tif", Some(0x355d2e3e)),