diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-03-04 22:56:44 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-03-04 22:56:44 (GMT) |
commit | dfbf976509bea0b4d598716d0dd73be494efacdd (patch) | |
tree | 891886081cf2ed280788eb2a33c609c55dfe2391 /src/H5private.h | |
parent | 0e708b387c78f5a286ab82eda55214fddf6c2127 (diff) | |
download | hdf5-dfbf976509bea0b4d598716d0dd73be494efacdd.zip hdf5-dfbf976509bea0b4d598716d0dd73be494efacdd.tar.gz hdf5-dfbf976509bea0b4d598716d0dd73be494efacdd.tar.bz2 |
[svn-r12004] Purpose:
New feature & code cleanup
Description:
Update fractal heap to be able to insert objects into a direct block
hanging off the header.
Extract "octal dump" code into separate routine so that both the local
heaps & fractal heaps can use it.
Other code cleanups & support to get this far.
Platforms tested:
FreeBSD 4.11 (sleipnir)
Linux 2.4
Diffstat (limited to 'src/H5private.h')
-rw-r--r-- | src/H5private.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h index 1b904e3..e7f339b 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -325,6 +325,9 @@ # define SIGN(a) ((a)>0 ? 1 : (a)<0 ? -1 : 0) #endif +/* test for number that is a power of 2 */ +# define POWER_OF_TWO(n) ((((n) - 1) & (n)) == 0 && (n) > 0) + /* * HDF Boolean type. */ @@ -1411,5 +1414,9 @@ H5_DLL int H5S_term_interface(void); H5_DLL int H5T_term_interface(void); H5_DLL int H5Z_term_interface(void); +/* Functions for debugging */ +H5_DLL herr_t H5_buffer_dump(FILE *stream, int indent, uint8_t *buf, + uint8_t *marker, size_t buf_offset, size_t buf_size); + #endif |