1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
Description: fix build after migration to IEEE 128-bit long double on ppc64le
Origin: fedora, https://src.fedoraproject.org/rpms/h5py/c/4578df64e4c923d1c3edf1213a209500e7caf453
Author: Dan HorĂ¡k <dan@danny.cz>
Last-Update: 2022-06-15
Index: h5py/h5py/h5t.templ.pyx
===================================================================
--- h5py.orig/h5py/h5t.templ.pyx 2025-11-03 15:00:25.877353377 +0100
+++ h5py/h5py/h5t.templ.pyx 2025-11-03 15:00:25.872493437 +0100
@@ -317,11 +317,6 @@
nmant = 116
maxexp = 1024
minexp = -1022
- elif ftype_ == np.longdouble and _IS_PPC64LE:
- # values reported by hdf5
- nmant = 52
- maxexp = 1024
- minexp = -1022
elif nmant == 63 and finfo.nexp == 15:
# This is an 80-bit float, correct mantissa size
nmant += 1
Index: h5py/h5py/tests/test_dtype.py
===================================================================
--- h5py.orig/h5py/tests/test_dtype.py 2025-11-03 14:59:28.000000000 +0100
+++ h5py/h5py/tests/test_dtype.py 2025-11-03 15:01:07.099656571 +0100
@@ -13,7 +13,7 @@
from .common import ut, TestCase
-UNSUPPORTED_LONG_DOUBLE = ('i386', 'i486', 'i586', 'i686', 'ppc64le')
+UNSUPPORTED_LONG_DOUBLE = ('i386', 'i486', 'i586', 'i686', 'ppc')
UNSUPPORTED_LONG_DOUBLE_TYPES = ('float96', 'float128', 'complex192',
'complex256')
|