Changeset 952
- Timestamp:
- Jun 9, 2004, 11:18:53 AM (22 years ago)
- Location:
- trunk/psLib
- Files:
-
- 3 edited
-
src/collections/psBitSet.c (modified) (2 diffs)
-
src/types/psBitSet.c (modified) (2 diffs)
-
test/collections/tst_psBitSet_06.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psBitSet.c
r836 r952 4 4 * 5 5 * Bit masks are useful tools for toggling various flags and options. This set of functions module provides 6 * a mechanism to create an array of bits of arbitrary length and manipulate them with basic binary 6 * a mechanism to create an array of bits of arbitrary length and manipulate them with basic binary 7 7 * operations. A print function is also provided to display the entire set of bits in binary format as a 8 8 * string. 9 9 * 10 10 * @author Ross Harman, MHPCC 11 * 12 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-06-0 3 00:32:32$11 * 12 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-06-09 21:18:24 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 80 80 81 81 if(n <= 0) { 82 psError(__func__, " : Line %d - Allocation size must be > =0: size = %d\n", __LINE__, n);82 psError(__func__, " : Line %d - Allocation size must be > 0: size = %d\n", __LINE__, n); 83 83 return 0; 84 84 } -
trunk/psLib/src/types/psBitSet.c
r836 r952 4 4 * 5 5 * Bit masks are useful tools for toggling various flags and options. This set of functions module provides 6 * a mechanism to create an array of bits of arbitrary length and manipulate them with basic binary 6 * a mechanism to create an array of bits of arbitrary length and manipulate them with basic binary 7 7 * operations. A print function is also provided to display the entire set of bits in binary format as a 8 8 * string. 9 9 * 10 10 * @author Ross Harman, MHPCC 11 * 12 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-06-0 3 00:32:32$11 * 12 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-06-09 21:18:24 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 80 80 81 81 if(n <= 0) { 82 psError(__func__, " : Line %d - Allocation size must be > =0: size = %d\n", __LINE__, n);82 psError(__func__, " : Line %d - Allocation size must be > 0: size = %d\n", __LINE__, n); 83 83 return 0; 84 84 } -
trunk/psLib/test/collections/tst_psBitSet_06.c
r717 r952 6 6 * A) Create two psBitSets 7 7 * B) Perform invalid binary operation with psBitSets 8 * C) Free psBitSets 8 * C) Attempt to create negative size bitset 9 * D) Free psBitSets 9 10 * 10 11 * @author Ross Harman, MHPCC 11 12 * 12 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-0 5-18 19:22:34$13 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-06-09 21:18:53 $ 14 15 * 15 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 47 48 48 49 49 // Test C - Free psBitSets 50 // Test C - Attempt to create negative size bitset 51 printNegativeTestHeader(stdout,"psBitSet", "Create negative size bitset", 52 "Allocation size must be >= 0: size = -4", 0); 53 psBitSetAlloc(-4); 54 printFooter(stdout, "psBitSet", "Create negative size bitset", true); 55 56 57 // Test D - Free psBitSets 50 58 printPositiveTestHeader(stdout, "psBitSet", "Free psBitSets"); 51 59 psBitSetFree(bs1);
Note:
See TracChangeset
for help on using the changeset viewer.
