diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2002-05-29 15:07:55 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2002-05-29 15:07:55 (GMT) |
commit | e69e970a1c71621c39a5f5fa656a185948ed1df8 (patch) | |
tree | 6d62761aa80d47e1713786bdeadabed02cc3c8f0 /src/H5AC.c | |
parent | 0ba943194ec2c8b74bbfd6531ee7a9b110803974 (diff) | |
download | hdf5-e69e970a1c71621c39a5f5fa656a185948ed1df8.zip hdf5-e69e970a1c71621c39a5f5fa656a185948ed1df8.tar.gz hdf5-e69e970a1c71621c39a5f5fa656a185948ed1df8.tar.bz2 |
[svn-r5471] Purpose:
Code cleanup
Description:
Broke the FUNC_ENTER macro into several macros, with more specialized
uses (which followup mail will describe). This was designed to move
most/all of the checks which could be done at compile time to that point,
instead of needlessly performing them (over & over :-) at run-time.
This reduces the library's size (and thus staticly linked binaries) and
has a minor speedup effect also.
Platforms tested:
IRIX64 6.5 (modi4) with parallel & FORTRAN enabled, and additional testing
on FreeBSD and Solaris immediately after the checkin.
Diffstat (limited to 'src/H5AC.c')
-rw-r--r-- | src/H5AC.c | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -89,7 +89,8 @@ int H5AC_create(H5F_t *f, int size_hint) { H5AC_t *cache = NULL; - FUNC_ENTER(H5AC_create, FAIL); + + FUNC_ENTER_NOAPI(H5AC_create, FAIL); assert(f); assert(NULL == f->shared->cache); @@ -137,7 +138,8 @@ herr_t H5AC_dest(H5F_t *f) { H5AC_t *cache = NULL; - FUNC_ENTER(H5AC_dest, FAIL); + + FUNC_ENTER_NOAPI(H5AC_dest, FAIL); assert(f); assert(f->shared->cache); @@ -221,7 +223,7 @@ H5AC_find_f(H5F_t *f, const H5AC_class_t *type, haddr_t addr, H5AC_info_t **info = NULL; H5AC_t *cache = NULL; - FUNC_ENTER(H5AC_find, NULL); + FUNC_ENTER_NOAPI(H5AC_find, NULL); assert(f); assert(f->shared->cache); @@ -404,7 +406,7 @@ H5AC_flush(H5F_t *f, const H5AC_class_t *type, haddr_t addr, hbool_t destroy) unsigned nslots; H5AC_t *cache = NULL; - FUNC_ENTER(H5AC_flush, FAIL); + FUNC_ENTER_NOAPI(H5AC_flush, FAIL); assert(f); assert(f->shared->cache); @@ -536,7 +538,7 @@ H5AC_set(H5F_t *f, const H5AC_class_t *type, haddr_t addr, void *thing) H5AC_info_t **info = NULL; H5AC_t *cache = NULL; - FUNC_ENTER(H5AC_set, FAIL); + FUNC_ENTER_NOAPI(H5AC_set, FAIL); assert(f); assert(f->shared->cache); @@ -610,7 +612,7 @@ H5AC_rename(H5F_t *f, const H5AC_class_t *type, haddr_t old_addr, herr_t status; H5AC_t *cache = NULL; - FUNC_ENTER(H5AC_rename, FAIL); + FUNC_ENTER_NOAPI(H5AC_rename, FAIL); assert(f); assert(f->shared->cache); @@ -720,7 +722,7 @@ H5AC_protect(H5F_t *f, const H5AC_class_t *type, haddr_t addr, } #endif - FUNC_ENTER(H5AC_protect, NULL); + FUNC_ENTER_NOAPI(H5AC_protect, NULL); /* check args */ assert(f); @@ -836,7 +838,7 @@ H5AC_unprotect(H5F_t *f, const H5AC_class_t *type, haddr_t addr, void *thing) H5AC_t *cache = NULL; H5AC_info_t **info = NULL; - FUNC_ENTER(H5AC_unprotect, FAIL); + FUNC_ENTER_NOAPI(H5AC_unprotect, FAIL); /* check args */ assert(f); @@ -923,7 +925,7 @@ H5AC_debug(H5F_t UNUSED *f) double miss_rate; #endif - FUNC_ENTER(H5AC_debug, FAIL); + FUNC_ENTER_NOAPI(H5AC_debug, FAIL); #ifdef H5AC_DEBUG if (H5DEBUG(AC)) { |