IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12431 for trunk/psLib/src/sys


Ignore:
Timestamp:
Mar 13, 2007, 2:39:51 PM (20 years ago)
Author:
Paul Price
Message:

Removing complex number support. No-one was using it, and it prevents compilation on Solaris.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psType.h

    r11694 r12431  
    1010*  @author Ross Harman, MHPCC
    1111*
    12 *  @version $Revision: 1.56 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2007-02-08 01:59:28 $
     12*  @version $Revision: 1.57 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2007-03-14 00:39:51 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    … …  
    2222/// @{
    2323
    24 #include <complex.h>
    2524#include <stdint.h>
    2625#include <float.h>
    … …  
    5049typedef float psF32;                   ///< 32-bit floating point
    5150typedef double psF64;                  ///< 64-bit floating point
    52 
    53 #ifdef SWIG
    54 /** 32-bit complex value */
    55 typedef struct
    56 {
    57     float re, im;
    58 }
    59 psC32;
    60 
    61 
    62 /** 64-bit complex value */
    63 typedef struct
    64 {
    65     double re,im;
    66 }
    67 psC64;
    68 
    69 
    70 #else // SWIG
    71 typedef float complex psC32;          ///< complex with 32-bit floating point Real and Imagary numbers
    72 typedef double complex psC64;         ///< complex with 64-bit floating point Real and Imagary numbers
    73 #endif // !SWIG
    74 
    7551typedef char* psString;                ///< string value
    7652typedef void* psPtr;                   ///< void pointer
     53
    7754// XXX psBool can't be removed until all macros that 'generate' this type are
    7855// fixed -JH
    … …  
    9875    PS_TYPE_F32  = 0x0404,             ///< Single-precision Floating point.
    9976    PS_TYPE_F64  = 0x0408,             ///< Double-precision floating point.
    100     PS_TYPE_C32  = 0x0808,             ///< Complex numbers consisting of single-precision floating point.
    101     PS_TYPE_C64  = 0x0810,             ///< Complex numbers consisting of double-precision floating point.
    10277    PS_TYPE_BOOL = 0x1301              ///< Boolean.
    10378} psElemType;
    … …  
    170145#define PS_MIN_F32       -FLT_MAX      /**< minimum valid psF32 value */
    171146#define PS_MIN_F64       -DBL_MAX      /**< minimum valid psF64 value */
    172 #define PS_MIN_C32       -FLT_MAX      /**< minimum valid real or imaginary psC32 value */
    173 #define PS_MIN_C64       -DBL_MAX      /**< minimum valid real or imaginary psC32 value */
    174147
    175148#define PS_MAX_S8        INT8_MAX      /**< maximum valid psS8 value */
    … …  
    183156#define PS_MAX_F32       FLT_MAX       /**< maximum valid psF32 value */
    184157#define PS_MAX_F64       DBL_MAX       /**< maximum valid psF64 value */
    185 #define PS_MAX_C32       FLT_MAX       /**< maximum valid real or imaginary psC32 value */
    186 #define PS_MAX_C64       DBL_MAX       /**< maximum valid real or imaginary psC32 value */
    187158
    188159#define PS_TYPE_BOOL_NAME "psBool"
    … …  
    197168#define PS_TYPE_F32_NAME  "psF32"
    198169#define PS_TYPE_F64_NAME  "psF64"
    199 #define PS_TYPE_C32_NAME  "psC32"
    200 #define PS_TYPE_C64_NAME  "psC64"
    201170
    202171#define PS_TYPE_NAME(value,type) \
    … …  
    234203case PS_TYPE_F64: \
    235204    value = PS_TYPE_F64_NAME; \
    236     break; \
    237 case PS_TYPE_C32: \
    238     value = PS_TYPE_C32_NAME; \
    239     break; \
    240 case PS_TYPE_C64: \
    241     value = PS_TYPE_C64_NAME; \
    242205    break; \
    243206default: \
    … …  
    261224/// Macro to determine if the psElemType is unsigned.
    262225#define PS_IS_PSELEMTYPE_UNSIGNED(x) ((x & 0x200) == 0x200)
    263 /// Macro to determine if the psElemType is a real (non-complex) floating-point type.
     226/// Macro to determine if the psElemType is a real floating-point type.
    264227#define PS_IS_PSELEMTYPE_REAL(x) ((x & 0x400) == 0x400)
    265 /// Macro to determine if the psElemType is complex number type.
    266 #define PS_IS_PSELEMTYPE_COMPLEX(x) ((x & 0x800) == 0x800)
    267228/// Macro to determine if the psElemType is boolean type.
    268229#define PS_IS_PSELEMTYPE_BOOL(x) ((x & 0x1000) == 0x1000)
Note: See TracChangeset for help on using the changeset viewer.