Michael R. Crusoe pushed to branch master at Debian Med / libssw
Commits: a19c1469 by Michael R. Crusoe at 2020-06-25T20:08:24+02:00 incomplete endianness patch - - - - - 3 changed files: - + debian/clean - + debian/patches/endian - debian/patches/series Changes: ===================================== debian/clean ===================================== @@ -0,0 +1 @@ +src/libssw.so ===================================== debian/patches/endian ===================================== @@ -0,0 +1,52 @@ +Author: Michael R. Crusoe <[email protected]> +Description: incomplete patch to fix endianness issue +--- libssw.orig/src/ssw.c ++++ libssw/src/ssw.c +@@ -610,7 +610,11 @@ + j = i + band_width; end = end < j ? end : j; // band end + edge = end + 1 < width - 1 ? end + 1 : width - 1; + f = h_b[0] = e_b[0] = h_b[edge] = e_b[edge] = h_c[0] = 0; +- direction_line = direction + width_d * i * 3; ++ #ifdef __LITTE_ENDIAN__ ++ direction_line = direction + width_d * i * 3; ++ #else ++ direction_line = direction - width_d * i * 3; ++ #endif + + for (j = beg; LIKELY(j <= end); j ++) { + int32_t b, e1, f1, d, de, df, dh; +@@ -661,19 +665,31 @@ + --i; + --j; + temp2 = 2; +- direction_line -= width_d * 3; ++ #ifdef __LITTLE_ENDIAN__ ++ direction_line -= width_d * 3; ++ #else ++ direction_line += width_d * 3; ++ #endif + op = 'M'; + break; + case 2: + --i; + temp2 = 0; // e +- direction_line -= width_d * 3; ++ #ifdef __LITTLE_ENDIAN__ ++ direction_line -= width_d * 3; ++ #else ++ direction_line += width_d * 3; ++ #endif + op = 'I'; + break; + case 3: + --i; + temp2 = 2; +- direction_line -= width_d * 3; ++ #ifdef __LITTLE_ENDIAN__ ++ direction_line -= width_d * 3; ++ #else ++ direction_line += width_d * 3; ++ #endif + op = 'I'; + break; + case 4: ===================================== debian/patches/series ===================================== @@ -3,3 +3,4 @@ hardening.patch rename_tool.patch simde.patch malloc +#endian View it on GitLab: https://salsa.debian.org/med-team/libssw/-/commit/a19c146931e078e0e56abc85684f5a3583165e63 -- View it on GitLab: https://salsa.debian.org/med-team/libssw/-/commit/a19c146931e078e0e56abc85684f5a3583165e63 You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
