summaryrefslogtreecommitdiffstats
path: root/src/H5Tprecis.c
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2005-01-06 19:04:15 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2005-01-06 19:04:15 (GMT)
commitad633eafcc9f1961bcd56d0508263caf9931b3b0 (patch)
treeb99b65a80700e9a982bf2fc76f636bd9aefae960 /src/H5Tprecis.c
parent48822308a7e5f25f203c99e3da13dac585b90b02 (diff)
downloadhdf5-ad633eafcc9f1961bcd56d0508263caf9931b3b0.zip
hdf5-ad633eafcc9f1961bcd56d0508263caf9931b3b0.tar.gz
hdf5-ad633eafcc9f1961bcd56d0508263caf9931b3b0.tar.bz2
[svn-r9758] Purpose:
Adding framework of N-bit filter Description: N-bit filter is required for NetCDF project. To add N-bit filter, configure.in configure, Makefile.in under src and other filter-related source code needs to be updated. Currently, N-bit tests are turned off from the library. So the change will affect daily test. Solution: Platforms tested: sol 2.7, linux 2.4, aix 5.1 Misc. update:
Diffstat (limited to 'src/H5Tprecis.c')
-rw-r--r--src/H5Tprecis.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/H5Tprecis.c b/src/H5Tprecis.c
index 9728172..b7a37d3 100644
--- a/src/H5Tprecis.c
+++ b/src/H5Tprecis.c
@@ -245,12 +245,17 @@ H5T_set_precision(const H5T_t *dt, size_t prec)
* first when decreasing the precision of a floating point
* type.
*/
+ /*printf("\nsign: %d ", dt->shared->u.atomic.u.f.sign);
+ printf("epos: %d ", dt->shared->u.atomic.u.f.epos);
+ printf("esize: %d ", dt->shared->u.atomic.u.f.esize);
+ printf("mpos: %d ", dt->shared->u.atomic.u.f.mpos);
+ printf("msize: %d ", dt->shared->u.atomic.u.f.msize);
+ printf("prec: %d\n", prec); */
if (dt->shared->u.atomic.u.f.sign >= prec ||
dt->shared->u.atomic.u.f.epos + dt->shared->u.atomic.u.f.esize > prec ||
dt->shared->u.atomic.u.f.mpos + dt->shared->u.atomic.u.f.msize > prec)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "adjust sign, mantissa, and exponent fields first")
- break;
-
+ break;
default:
HGOTO_ERROR(H5E_ARGS, H5E_UNSUPPORTED, FAIL, "operation not defined for datatype class")
} /* end switch */ /*lint !e788 All appropriate cases are covered */