diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2005-08-13 21:06:26 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2005-08-13 21:06:26 (GMT) |
commit | c7bf502798ed500d9637ff3dd23a83420afd5070 (patch) | |
tree | a29e4bc6023564b9db5b435e4646b2b667171da2 /test/bittests.c | |
parent | 5ad5d1a6d1190bbc6ed064eaae7ca1d2e361cb0a (diff) | |
download | hdf5-c7bf502798ed500d9637ff3dd23a83420afd5070.zip hdf5-c7bf502798ed500d9637ff3dd23a83420afd5070.tar.gz hdf5-c7bf502798ed500d9637ff3dd23a83420afd5070.tar.bz2 |
[svn-r11246] Purpose:
Code cleanup
Description:
Trim trailing whitespace, which is making 'diff'ing the two branches
difficult.
Solution:
Ran this script in each directory:
foreach f (*.[ch] *.cpp)
sed 's/[[:blank:]]*$//' $f > sed.out && mv sed.out $f
end
Platforms tested:
FreeBSD 4.11 (sleipnir)
Too minor to require h5committest
Diffstat (limited to 'test/bittests.c')
-rw-r--r-- | test/bittests.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/test/bittests.c b/test/bittests.c index 6e5f7da..a329bd5 100644 --- a/test/bittests.c +++ b/test/bittests.c @@ -50,7 +50,7 @@ test_find (void) uint8_t v1[8]; int i; ssize_t n; - + TESTING("bit search operations"); /* The zero length buffer */ @@ -67,7 +67,7 @@ test_find (void) puts (" Zero length test failed (msb)!"); goto failed; } - + /* The zero buffer */ memset (v1, 0, sizeof v1); @@ -101,7 +101,7 @@ test_find (void) goto failed; } } - + /* The one buffer */ memset (v1, 0xff, sizeof v1); n = H5T_bit_find (v1, 0, 8*sizeof(v1), H5T_BIT_LSB, FALSE); @@ -134,7 +134,7 @@ test_find (void) goto failed; } } - + PASSED(); return 0; @@ -170,7 +170,7 @@ test_copy (void) size_t s_offset, d_offset, size; int i, j; ssize_t n; - + TESTING("bit copy operations"); for (i=0; i<NTESTS; i++) { @@ -180,7 +180,7 @@ test_copy (void) size = MIN3 (size, 8*sizeof(v1)-s_offset, 8*sizeof(v2)-d_offset); memset (v1, 0xff, sizeof v1); memset (v2, 0x00, sizeof v2); - + /* Copy some bits to v2 and make sure something was copied */ H5T_bit_copy (v2, d_offset, v1, s_offset, size); for (j=0; j<(int)sizeof(v2); j++) if (v2[j]) break; @@ -194,7 +194,7 @@ test_copy (void) puts (" Found copied bits when we shouldn't have"); goto failed; } - + /* Look for the zeros and ones */ n = H5T_bit_find (v2, 0, 8*sizeof(v2), H5T_BIT_LSB, 1); @@ -292,7 +292,7 @@ test_set (void) size_t d_offset, size; int i, j; ssize_t n; - + TESTING("bit set operations"); for (i=0; i<NTESTS; i++) { @@ -300,7 +300,7 @@ test_set (void) size = (unsigned)HDrand() % (8*sizeof(v2)); size = MIN (size, 8*sizeof(v2)-d_offset); memset (v2, 0x00, sizeof v2); - + /* Set some bits in v2 */ H5T_bit_set (v2, d_offset, size, TRUE); for (j=0; j<(int)sizeof(v2); j++) if (v2[j]) break; @@ -314,7 +314,7 @@ test_set (void) puts (" Found set bits when we shouldn't have"); goto failed; } - + /* Look for the zeros and ones */ n = H5T_bit_find (v2, 0, 8*sizeof(v2), H5T_BIT_LSB, 1); @@ -409,7 +409,7 @@ test_clear (void) size_t d_offset, size; int i, j; ssize_t n; - + TESTING("bit clear operations"); for (i=0; i<NTESTS; i++) { @@ -417,7 +417,7 @@ test_clear (void) size = (unsigned)HDrand() % (8*sizeof(v2)); size = MIN (size, 8*sizeof(v2)-d_offset); memset (v2, 0xff, sizeof v2); - + /* Clear some bits in v2 */ H5T_bit_set (v2, d_offset, size, FALSE); for (j=0; j<(int)sizeof(v2); j++) if (0xff!=v2[j]) break; @@ -431,7 +431,7 @@ test_clear (void) puts (" Found cleared bits when we shouldn't have"); goto failed; } - + /* Look for the zeros and ones */ n = H5T_bit_find (v2, 0, 8*sizeof(v2), H5T_BIT_LSB, 0); @@ -506,11 +506,11 @@ test_clear (void) /*------------------------------------------------------------------------- * Function: main * - * Purpose: + * Purpose: * - * Return: Success: + * Return: Success: * - * Failure: + * Failure: * * Programmer: Robb Matzke * Tuesday, June 16, 1998 |