Changeset 11668 for trunk/psLib/src/mathtypes
- Timestamp:
- Feb 6, 2007, 11:36:09 AM (20 years ago)
- Location:
- trunk/psLib/src/mathtypes
- Files:
-
- 3 edited
-
psImage.c (modified) (4 diffs)
-
psVector.c (modified) (2 diffs)
-
psVector.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/mathtypes/psImage.c
r10999 r11668 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.12 1$ $Name: not supported by cvs2svn $12 * @date $Date: 2007-0 1-09 22:38:53$11 * @version $Revision: 1.122 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2007-02-06 21:36:09 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 780 780 ps##TYPE V10 = 0; \ 781 781 ps##TYPE V11 = 0; \ 782 psBool valid00 = false; \783 psBool valid01 = false; \784 psBool valid10 = false; \785 psBool valid11 = false; \782 bool valid00 = false; \ 783 bool valid01 = false; \ 784 bool valid10 = false; \ 785 bool valid11 = false; \ 786 786 \ 787 787 if (floorY >= 0 && floorY <= lastY) { \ … … 821 821 \ 822 822 RETURNTYPE V0 = 0.0; \ 823 psBool valid0 = true; \823 bool valid0 = true; \ 824 824 if (valid00 && valid10) { \ 825 825 V0 = V00*FRACFUNC(1-fracX)+V10*FRACFUNC(fracX); \ … … 833 833 \ 834 834 RETURNTYPE V1 = 0.0; \ 835 psBool valid1 = true; \835 bool valid1 = true; \ 836 836 if (valid01 && valid11) { \ 837 837 V1 = V01*FRACFUNC(1-fracX)+V11*FRACFUNC(fracX); \ -
trunk/psLib/src/mathtypes/psVector.c
r10999 r11668 9 9 * @author Robert DeSonia, MHPCC 10 10 * 11 * @version $Revision: 1.9 0$ $Name: not supported by cvs2svn $12 * @date $Date: 2007-0 1-09 22:38:53$11 * @version $Revision: 1.91 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2007-02-06 21:36:09 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 693 693 // This is a little ugly, because psVector doesn't have a boolean type yet. 694 694 int temp = va_arg(argp, int); 695 psBool value = temp;695 bool value = temp; 696 696 if (!value) { 697 memset(vector->data.U8, 0, vector->n * sizeof( psBool));697 memset(vector->data.U8, 0, vector->n * sizeof(bool)); 698 698 } else { 699 699 for (long i = 0; i < vector->n; i++) { -
trunk/psLib/src/mathtypes/psVector.h
r11248 r11668 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.6 1$ $Name: not supported by cvs2svn $12 * @date $Date: 2007-0 1-23 22:47:23$11 * @version $Revision: 1.62 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2007-02-06 21:36:09 $ 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 14 14 */ … … 199 199 /** Print a vector to a stream 200 200 * 201 * @return psBool TRUE is successful, otherwise FALSE.201 * @return bool TRUE is successful, otherwise FALSE. 202 202 */ 203 203 bool p_psVectorPrint (
Note:
See TracChangeset
for help on using the changeset viewer.
