Changeset 9552
- Timestamp:
- Oct 13, 2006, 2:02:31 PM (20 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 3 edited
-
math/psBinaryOp.c (modified) (3 diffs)
-
math/psUnaryOp.c (modified) (3 diffs)
-
sys/psType.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psBinaryOp.c
r8627 r9552 30 30 * @author Robert DeSonia, MHPCC 31 31 * 32 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $33 * @date $Date: 2006- 08-26 04:34:28$32 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 33 * @date $Date: 2006-10-14 00:02:31 $ 34 34 * 35 35 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 423 423 PS_ASSERT_PTR_DIMEN_GENERAL_NOT(input2, PS_DIMEN_OTHER, psBinaryOp_EXIT); 424 424 425 ps Type* psType1 = (psType*)in1;426 ps Type* psType2 = (psType*)in2;425 psMathType* psType1 = (psMathType*)in1; 426 psMathType* psType2 = (psMathType*)in2; 427 427 psDimen dim1 = psType1->dimen; 428 428 psDimen dim2 = psType2->dimen; … … 451 451 452 452 if (dim1 == PS_DIMEN_SCALAR) { 453 if ( out != NULL && ((ps Type*)out)->dimen != dim2) {453 if ( out != NULL && ((psMathType*)out)->dimen != dim2) { 454 454 if (out != in1 && out != in2) { 455 455 psFree(out); -
trunk/psLib/src/math/psUnaryOp.c
r8627 r9552 30 30 * @author Robert DeSonia, MHPCC 31 31 * 32 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $33 * @date $Date: 2006- 08-26 04:34:28$32 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 33 * @date $Date: 2006-10-14 00:02:31 $ 34 34 * 35 35 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 291 291 } 292 292 293 ps Type* psTypeIn = (psType* ) in;293 psMathType* psTypeIn = (psMathType* ) in; 294 294 295 295 PS_ASSERT_GENERAL_PTR_NON_NULL(in, psUnaryOp_EXIT); … … 299 299 case PS_DIMEN_SCALAR: 300 300 if (out == NULL || 301 ((ps Type*)out)->dimen != PS_DIMEN_SCALAR ||301 ((psMathType*)out)->dimen != PS_DIMEN_SCALAR || 302 302 ((psScalar*)out)->type.type != psTypeIn->type) { 303 303 psFree(out); -
trunk/psLib/src/sys/psType.h
r7901 r9552 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.5 1$ $Name: not supported by cvs2svn $13 * @date $Date: 2006- 07-14 02:26:25$12 * @version $Revision: 1.52 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-10-14 00:02:31 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 283 283 typedef struct 284 284 { 285 psElemType type; ///< Primitive type.286 psDimen dimen; ///< Dimensionality.287 }288 psType;289 290 typedef struct291 {292 285 psElemType type; ///< The type 293 286 psDimen dimen; ///< The dimensionality.
Note:
See TracChangeset
for help on using the changeset viewer.
