Changeset 4425 for trunk/psModules/src/pmReadoutCombine.c
- Timestamp:
- Jun 28, 2005, 3:39:10 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/pmReadoutCombine.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/pmReadoutCombine.c
r4168 r4425 5 5 * @author GLG, MHPCC 6 6 * 7 * @version $Revision: 1.2 3$ $Name: not supported by cvs2svn $8 * @date $Date: 2005-06- 09 00:59:54$7 * @version $Revision: 1.24 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2005-06-29 01:39:10 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 18 18 19 19 /****************************************************************************** 20 p_psDetermineNumBits(data): This routine takes an enum psStatsOptions as an20 DetermineNumBits(data): This routine takes an enum psStatsOptions as an 21 21 argument and returns the number of non-zero bits. 22 22 *****************************************************************************/ 23 psStatsOptionsDetermineNumBits(psStatsOptions data)23 static psS32 DetermineNumBits(psStatsOptions data) 24 24 { 25 25 psS32 i; … … 27 27 psS32 numBits = 0; 28 28 29 for (i=0;i< 8 * sizeof(psStatsOptions);i++) {29 for (i=0;i<(8 * sizeof(psStatsOptions));i++) { 30 30 if (0x0001 & tmpData) { 31 31 numBits++; … … 37 37 38 38 /****************************************************************************** 39 p_psDetermineNumBits(data): This routine takes an enum psStatsOptions as an40 argument and returns the number of non-zero bits.41 42 39 XXX: Must add support for S16 and S32 types. F32 currently supported. 43 40 *****************************************************************************/
Note:
See TracChangeset
for help on using the changeset viewer.
