IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 23, 2004, 1:16:36 PM (22 years ago)
Author:
gusciora
Message:

Added tests for input parameters.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/pmSubtractSky.c

    r2810 r2812  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-12-23 20:27:51 $
     8 *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-12-23 23:16:36 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    12  *
     12xd *
    1313 */
    1414
     
    2020
    2121/******************************************************************************
    22 p_psDetermineNumBits(data): This routine takes an insigned int as an argument
    23 and returns the number of non-zero bits.
    24  *****************************************************************************/
    25 psS32 p_psDetermineNumBits(psU32 data)
     22p_psDetermineNumBits(data): This routine takes an enum psStatsOptions as an
     23argument and returns the number of non-zero bits.
     24 *****************************************************************************/
     25psStatsOptions p_psDetermineNumBits(psStatsOptions data)
    2626{
    2727    psS32 i;
    28     psU32 tmpData = data;
     28    psU64 tmpData = data;
    2929    psS32 numBits = 0;
    3030
    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) {
    3333            numBits++;
    3434        }
Note: See TracChangeset for help on using the changeset viewer.