Changeset 1663 in Sophya for trunk/ArchTOIPipe/Kernel
- Timestamp:
- Oct 1, 2001, 4:01:35 PM (24 years ago)
- Location:
- trunk/ArchTOIPipe/Kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/Kernel/Makefile.in
r1480 r1663 40 40 ifeq ($(CXX), cxx) 41 41 CXXFLAGS := -O -g -D__USE_STD_IOSTREAM 42 LIBS := $(LIBS) -pthread 42 43 endif 43 44 endif … … 77 78 libatkern.a: $(FILES) 78 79 $(AR) -cr libatkern.a $(FILES) 80 ranlib libatkern.a 79 81 ln -f libatkern.a ../libatkern.a 80 82 … … 84 86 85 87 %: %.o $(FILES) 86 $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -pthread-o $@ -lm88 $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ -lm 87 89 88 90 %.o:$(srcdir)/%.cc 89 $(COMPILE.cc) - pthread -o $@ $<91 $(COMPILE.cc) -o $@ $< 90 92 91 93 %.o:$(srcdir)/%.c 92 $(COMPILE.c) -pthread-o $@ $<94 $(COMPILE.c) -o $@ $< 93 95 94 96 -
trunk/ArchTOIPipe/Kernel/toiprocessor.cc
r1629 r1663 2 2 #include "toimanager.h" 3 3 #include <pthread.h> 4 5 #ifdef HAVE_VALUES_H 4 6 #include <values.h> 7 #endif 8 9 #ifndef MAXINT 10 #define MAXINT 2147483647 11 #endif 12 13 #ifdef HAVE_STDINT_H 14 #include <stdint.h> 15 #endif 5 16 6 17 #ifdef WITH_SOPHYA … … 88 99 89 100 int TOIProcessor::getMaxIn() { 90 int nIn = inIx.size();91 int maxIn = MAXINT;101 int_4 nIn = inIx.size(); 102 int_4 maxIn = MAXINT; 92 103 for (int i=0; i<nIn; i++) { 93 104 TOI* toi = inTOIs[i]; 94 105 if (toi == NULL) continue; // Protection - Reza 13/3/2001 95 int x = toi->getMaxSn();106 int_4 x = toi->getMaxSn(); 96 107 if (x < maxIn) maxIn = x; 97 108 }
Note:
See TracChangeset
for help on using the changeset viewer.