pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/py-Pillow py-Pillow: disable wrong hack for G...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cfbccc20f4fe
branches:  trunk
changeset: 373973:cfbccc20f4fe
user:      adam <adam%pkgsrc.org@localhost>
date:      Fri Jan 12 19:50:52 2018 +0000

description:
py-Pillow: disable wrong hack for GCC <4.9

diffstat:

 graphics/py-Pillow/distinfo                                    |   3 +-
 graphics/py-Pillow/patches/patch-src_libImaging_ImagingUtils.h |  23 ++++++++++
 2 files changed, 25 insertions(+), 1 deletions(-)

diffs (40 lines):

diff -r 28b758f4c578 -r cfbccc20f4fe graphics/py-Pillow/distinfo
--- a/graphics/py-Pillow/distinfo       Fri Jan 12 15:56:23 2018 +0000
+++ b/graphics/py-Pillow/distinfo       Fri Jan 12 19:50:52 2018 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.29 2018/01/04 20:59:49 adam Exp $
+$NetBSD: distinfo,v 1.30 2018/01/12 19:50:52 adam Exp $
 
 SHA1 (Pillow-5.0.0.tar.gz) = 595b035920996d43dcdb4164ac45cd9f30e653f1
 RMD160 (Pillow-5.0.0.tar.gz) = 0f88642e5b38a464682828ac0857822223546b5c
 SHA512 (Pillow-5.0.0.tar.gz) = f6f1e138effe44a89897f48032a36406dab3c4ddff2a97b7d01e99c05865abad5cffa3ab0eefcacb243e422778063b49243b1a538012fe9c39a1e4329c0978f3
 Size (Pillow-5.0.0.tar.gz) = 14220993 bytes
 SHA1 (patch-setup.py) = 742b6c24b49e1f797b0e012ee7e094f35f60740f
+SHA1 (patch-src_libImaging_ImagingUtils.h) = 72b191be439c05b74c278109f1afc6066e5dbad6
diff -r 28b758f4c578 -r cfbccc20f4fe graphics/py-Pillow/patches/patch-src_libImaging_ImagingUtils.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/py-Pillow/patches/patch-src_libImaging_ImagingUtils.h    Fri Jan 12 19:50:52 2018 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-src_libImaging_ImagingUtils.h,v 1.1 2018/01/12 19:50:52 adam Exp $
+
+Disable the work around; it does not really work.
+
+--- src/libImaging/ImagingUtils.h.orig 2018-01-12 19:46:54.000000000 +0000
++++ src/libImaging/ImagingUtils.h
+@@ -30,16 +30,4 @@
+     (MULDIV255(in1, (255 - mask), tmp1) + in2)
+ 
+ 
+-/* This is to work around a bug in GCC prior 4.9 in 64 bit mode.
+-   GCC generates code with partial dependency which is 3 times slower.
+-   See: http://stackoverflow.com/a/26588074/253146 */
+-#if defined(__x86_64__) && defined(__SSE__) &&  ! defined(__NO_INLINE__) && \
+-    ! defined(__clang__) && defined(GCC_VERSION) && (GCC_VERSION < 40900)
+-static float __attribute__((always_inline)) inline _i2f(int v) {
+-    float x;
+-    __asm__("xorps %0, %0; cvtsi2ss %1, %0" : "=X"(x) : "r"(v) );
+-    return x;
+-}
+-#else
+ static float inline _i2f(int v) { return (float) v; }
+-#endif



Home | Main Index | Thread Index | Old Index