You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
822 B
25 lines
822 B
diff --git a/h5py/h5t.pyx b/h5py/h5t.pyx
|
|
index e7aae14..89418e2 100644
|
|
--- a/h5py/h5t.pyx
|
|
+++ b/h5py/h5t.pyx
|
|
@@ -282,18 +282,7 @@ cdef (int, int, int) _correct_float_info(ftype_, finfo):
|
|
nmant = finfo.nmant
|
|
maxexp = finfo.maxexp
|
|
minexp = finfo.minexp
|
|
- # workaround for numpy's buggy finfo on float128 on ppc64 archs
|
|
- if ftype_ == np.longdouble and MACHINE == 'ppc64':
|
|
- # values reported by hdf5
|
|
- nmant = 116
|
|
- maxexp = 1024
|
|
- minexp = -1022
|
|
- elif ftype_ == np.longdouble and MACHINE == 'ppc64le':
|
|
- # values reported by hdf5
|
|
- nmant = 52
|
|
- maxexp = 1024
|
|
- minexp = -1022
|
|
- elif nmant == 63 and finfo.nexp == 15:
|
|
+ if nmant == 63 and finfo.nexp == 15:
|
|
# This is an 80-bit float, correct mantissa size
|
|
nmant += 1
|
|
|