Changeset 2812 for trunk/psModules/src/pmSubtractSky.c
- Timestamp:
- Dec 23, 2004, 1:16:36 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/pmSubtractSky.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/pmSubtractSky.c
r2810 r2812 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.1 1$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-12-23 2 0:27:51$8 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-12-23 23:16:36 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 12 *12 xd * 13 13 */ 14 14 … … 20 20 21 21 /****************************************************************************** 22 p_psDetermineNumBits(data): This routine takes an insigned int as an argument23 a nd returns the number of non-zero bits.24 *****************************************************************************/ 25 psS 32 p_psDetermineNumBits(psU32data)22 p_psDetermineNumBits(data): This routine takes an enum psStatsOptions as an 23 argument and returns the number of non-zero bits. 24 *****************************************************************************/ 25 psStatsOptions p_psDetermineNumBits(psStatsOptions data) 26 26 { 27 27 psS32 i; 28 psU 32tmpData = data;28 psU64 tmpData = data; 29 29 psS32 numBits = 0; 30 30 31 for (i=0;i< sizeof(psU32);i++) {32 if (0x0001 & &tmpData) {31 for (i=0;i<4 * sizeof(psStatsOptions);i++) { 32 if (0x0001 & tmpData) { 33 33 numBits++; 34 34 }
Note:
See TracChangeset
for help on using the changeset viewer.
