From b26680baee2875ceb4aabdc6df3ce85009b297b8 Mon Sep 17 00:00:00 2001 From: Robb Matzke Date: Fri, 25 Jan 2002 11:21:01 -0500 Subject: [svn-r4861] ./hdf5-devel/src/H5T.c More optimizing for byte order conversion. Mostly just making code easier to follow by simplifying Duff's device coding of the loops. I also split the conversion function into two functions with different names so output from H5T debugging indicates whether the optimized or unoptimized case was invoked. 2002-01-25 10:47:13 Robb Matzke * H5T_init_interface: Registered conversion function H5T_conv_order_opt() under two names. H5T debugging will report the conversion function as either "ibo(opt)" or "fbo(opt)". --- src/H5T.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/H5T.c b/src/H5T.c index 6feed09..88c26be 100644 --- a/src/H5T.c +++ b/src/H5T.c @@ -1761,7 +1761,9 @@ H5T_init_interface(void) status |= H5T_register(H5T_PERS_SOFT, "s_s", string, string, H5T_conv_s_s); status |= H5T_register(H5T_PERS_SOFT, "b_b", bitfield, bitfield, H5T_conv_b_b); status |= H5T_register(H5T_PERS_SOFT, "ibo", fixedpt, fixedpt, H5T_conv_order); + status |= H5T_register(H5T_PERS_SOFT, "ibo(opt)", fixedpt, fixedpt, H5T_conv_order_opt); status |= H5T_register(H5T_PERS_SOFT, "fbo", floatpt, floatpt, H5T_conv_order); + status |= H5T_register(H5T_PERS_SOFT, "fbo(opt)", floatpt, floatpt, H5T_conv_order_opt); status |= H5T_register(H5T_PERS_SOFT, "struct(no-opt)", compound, compound, H5T_conv_struct); status |= H5T_register(H5T_PERS_SOFT, "struct(opt)", compound, compound, H5T_conv_struct_opt); status |= H5T_register(H5T_PERS_SOFT, "enum", enum_type, enum_type, H5T_conv_enum); -- cgit v0.12