Changeset 1041
- Timestamp:
- Jun 14, 2004, 4:45:43 PM (22 years ago)
- Location:
- trunk/psLib
- Files:
-
- 13 edited
-
src/Makefile.Globals (modified) (4 diffs)
-
src/collections/psBitSet.c (modified) (2 diffs)
-
src/sysUtils/psHash.d (modified) (1 diff)
-
src/types/psBitSet.c (modified) (2 diffs)
-
test/Makefile (modified) (2 diffs)
-
test/collections/verified/tst_psBitSet_01.stdout (modified) (2 diffs)
-
test/collections/verified/tst_psBitSet_02.stdout (modified) (2 diffs)
-
test/collections/verified/tst_psBitSet_03.stdout (modified) (2 diffs)
-
test/collections/verified/tst_psBitSet_04.stdout (modified) (2 diffs)
-
test/collections/verified/tst_psBitSet_05.stdout (modified) (1 diff)
-
test/collections/verified/tst_psBitSet_06.stdout (modified) (1 diff)
-
test/dataManip/Makefile (modified) (2 diffs)
-
test/image/tst_psImageStats00.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/Makefile.Globals
r1008 r1041 5 5 ## Assumptions: Variable "prefix" already defined 6 6 ## 7 ## $Revision: 1.1 0$ $Name: not supported by cvs2svn $8 ## $Date: 2004-06-1 2 01:33:16$7 ## $Revision: 1.11 $ $Name: not supported by cvs2svn $ 8 ## $Date: 2004-06-15 02:45:42 $ 9 9 ## 10 10 ## Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 46 46 # Set initial value for LDFLAGS which will include all OS common flags for GCC and required libraries. 47 47 48 LDFLAGS := -g2 -pipe -lcfitsio -lgsl -lgslcblas -lfftw3f 48 EXTLIBS := -lcfitsio -lgsl -lgslcblas -lfftw3f 49 LDFLAGS := -g2 -pipe $(EXTLIBS) 49 50 50 51 # Define or refine variables for the Linux OS … … 64 65 CFLAGS += -Wno-long-double -DDARWIN 65 66 CFLAGS_RELOC := $(CFLAGS) 67 LDFLAGS := $(LDFLAGS) -lmx 66 68 LDFLAGS_SO := $(LDFLAGS) -bundle -flat_namespace -undefined suppress 67 69 LDFLAGS_DLL := $(LDFLAGS) -dynamiclib … … 70 72 DOCS = 71 73 BUILD_DYNAMIC1 = libtool -dynamic 72 BUILD_DYNAMIC2 = -lm -l gcc-o74 BUILD_DYNAMIC2 = -lm -lmx -lgcc $(EXTLIBS) -o 73 75 endif 74 76 -
trunk/psLib/src/collections/psBitSet.c
r965 r1041 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-06-1 0 00:29:09$12 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-06-15 02:45:43 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 222 222 int i = 0; 223 223 int numBits = inBitSet->n*8; 224 char* outString = psAlloc((size_t)numBits );224 char* outString = psAlloc((size_t)numBits+1); 225 225 for(i=0; i<numBits; i++) { 226 226 outString[numBits-i-1] = (psBitSetTest(inBitSet, i) == 1)?'1':'0'; 227 227 } 228 228 229 outString[numBits] = 0; 230 229 231 return outString; 230 232 } -
trunk/psLib/src/sysUtils/psHash.d
r986 r1041 1 1 psHash.o psHash.d : psHash.c psHash.h ../collections/psList.h \ 2 2 ../collections/psVector.h ../collections/psType.h \ 3 ../sysUtils/psMemory.h ps Memory.h psString.h psTrace.h psAbort.h3 ../sysUtils/psMemory.h psString.h psTrace.h psAbort.h -
trunk/psLib/src/types/psBitSet.c
r965 r1041 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-06-1 0 00:29:09$12 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-06-15 02:45:43 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 222 222 int i = 0; 223 223 int numBits = inBitSet->n*8; 224 char* outString = psAlloc((size_t)numBits );224 char* outString = psAlloc((size_t)numBits+1); 225 225 for(i=0; i<numBits; i++) { 226 226 outString[numBits-i-1] = (psBitSetTest(inBitSet, i) == 1)?'1':'0'; 227 227 } 228 228 229 outString[numBits] = 0; 230 229 231 return outString; 230 232 } -
trunk/psLib/test/Makefile
r1021 r1041 3 3 ## Makefile: test 4 4 ## 5 ## $Revision: 1. 5$ $Name: not supported by cvs2svn $6 ## $Date: 2004-06-1 4 19:38:06$5 ## $Revision: 1.6 $ $Name: not supported by cvs2svn $ 6 ## $Date: 2004-06-15 02:45:43 $ 7 7 ## 8 8 ## Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 47 47 48 48 libpstest.$(DLL): $(SRC_OBJS) 49 $(CC) $(LDFLAGS_DLL) $(SRC_OBJS) -o $@49 $(CC) $(LDFLAGS_DLL) -L../lib -lpslib $(SRC_OBJS) -o $@ 50 50 51 51 # Define PHONY target "install" which will install necessary files -
trunk/psLib/test/collections/verified/tst_psBitSet_01.stdout
r1034 r1041 6 6 7 7 Creating psBitSet with 24 bits... 8 000000000000000000000000 ïŸÞ8 000000000000000000000000 9 9 10 10 … … 20 20 Setting third bit... 21 21 Setting last bit... 22 100000000000000000000101 ïŸÞ22 100000000000000000000101 23 23 24 24 -
trunk/psLib/test/collections/verified/tst_psBitSet_02.stdout
r1034 r1041 5 5 \**********************************************************************************/ 6 6 7 000000000000000000000000 ïŸÞ8 000000000000000000000000 ïŸÞ7 000000000000000000000000 8 000000000000000000000000 9 9 10 10 Setting all bits true... 11 111111111111111111111111 ïŸÞ12 111111111111111111111111 ïŸÞ11 111111111111111111111111 12 111111111111111111111111 13 13 14 14 … … 22 22 23 23 Result: 24 111111111111111111111111 ïŸÞ24 111111111111111111111111 25 25 26 26 ---> TESTPOINT PASSED (psBitSet{Perform binary AND with psBitSets} | tst_psBitSet_02.c) -
trunk/psLib/test/collections/verified/tst_psBitSet_03.stdout
r1034 r1041 5 5 \**********************************************************************************/ 6 6 7 000000000000000000000000 ïŸÞ8 000000000000000000000000 ïŸÞ7 000000000000000000000000 8 000000000000000000000000 9 9 10 10 Setting all bits true... 11 111111111111111111111111 ïŸÞ12 111111111111111111111111 ïŸÞ11 111111111111111111111111 12 111111111111111111111111 13 13 14 14 … … 22 22 23 23 Result: 24 111111111111111111111111 ïŸÞ24 111111111111111111111111 25 25 26 26 ---> TESTPOINT PASSED (psBitSet{Perform binary OR with psBitSets} | tst_psBitSet_03.c) -
trunk/psLib/test/collections/verified/tst_psBitSet_04.stdout
r1034 r1041 5 5 \**********************************************************************************/ 6 6 7 000000000000000000000000 ïŸÞ8 000000000000000000000000 ïŸÞ7 000000000000000000000000 8 000000000000000000000000 9 9 10 10 Setting all bits true... 11 111111111111111111111111 ïŸÞ12 111111111111111111111111 ïŸÞ11 111111111111111111111111 12 111111111111111111111111 13 13 14 14 … … 22 22 23 23 Result: 24 000000000000000000000000 ïŸÞ24 000000000000000000000000 25 25 26 26 ---> TESTPOINT PASSED (psBitSet{Perform binary XOR with psBitSets} | tst_psBitSet_04.c) -
trunk/psLib/test/collections/verified/tst_psBitSet_05.stdout
r1034 r1041 5 5 \**********************************************************************************/ 6 6 7 000000000000000000000000 ïŸÞ8 0000000000000000000000000000000000000000 ïŸÞ7 000000000000000000000000 8 0000000000000000000000000000000000000000 9 9 10 10 -
trunk/psLib/test/collections/verified/tst_psBitSet_06.stdout
r1034 r1041 5 5 \**********************************************************************************/ 6 6 7 000000000000000000000000 ïŸÞ8 000000000000000000000000 ïŸÞ7 000000000000000000000000 8 000000000000000000000000 9 9 10 10 -
trunk/psLib/test/dataManip/Makefile
r1011 r1041 3 3 ## Makefile: test/sysUtils 4 4 ## 5 ## $Revision: 1.1 4$ $Name: not supported by cvs2svn $6 ## $Date: 2004-06-1 2 02:17:42$5 ## $Revision: 1.15 $ $Name: not supported by cvs2svn $ 6 ## $Date: 2004-06-15 02:45:43 $ 7 7 ## 8 8 ## Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 66 66 67 67 % : builddir/%.o 68 $(CC) -o $@ $< -L$(PSLIB_LIB_DIR) -lpslib -lpstest -lgsl -lgslcblas$(LDFLAGS)68 $(CC) -o $@ $< -L$(PSLIB_LIB_DIR) -lpslib -lpstest $(LDFLAGS) 69 69 70 70 distclean: clean -
trunk/psLib/test/image/tst_psImageStats00.c
r904 r1041 65 65 for (i=0;i<tmpImage->numRows;i++) { 66 66 for (j=0;j<tmpImage->numCols;j++) { 67 tmpImage->data.F32[i][j] = (float) (i + j );67 tmpImage->data.F32[i][j] = (float) (i + j + 0.1); 68 68 } 69 69 }
Note:
See TracChangeset
for help on using the changeset viewer.
