comparison VMS.h @ 146:a49f02980151

fixed: hist index error, zero devision
author Merten Sach <msach@mailbox.tu-berlin.de>
date Thu, 12 May 2011 14:23:41 +0200
parents 9c3107044f86
children c11b9dcf6d24
comparison
equal deleted inserted replaced
36:3dbb551a7aa7 66:384733971082
48 #define DEBUG1( bool, msg, param) \ 48 #define DEBUG1( bool, msg, param) \
49 // if(bool){printf(msg, param); fflush(stdin);} 49 // if(bool){printf(msg, param); fflush(stdin);}
50 #define DEBUG2( bool, msg, p1, p2) \ 50 #define DEBUG2( bool, msg, p1, p2) \
51 // if(bool) {printf(msg, p1, p2); fflush(stdin);} 51 // if(bool) {printf(msg, p1, p2); fflush(stdin);}
52 52
53 #define ERROR(msg) printf(msg); fflush(stdin); 53 #define ERROR(msg) printf(msg);
54 #define ERROR1(msg, param) printf(msg, param); fflush(stdin); 54 #define ERROR1(msg, param) printf(msg, param);
55 #define ERROR2(msg, p1, p2) printf(msg, p1, p2); fflush(stdin); 55 #define ERROR2(msg, p1, p2) printf(msg, p1, p2);
56 56
57 //=========================== STATS ======================= 57 //=========================== STATS =======================
58 58
59 //when MEAS__TIME_STAMP_SUSP is defined, causes code to be inserted and 59 //when MEAS__TIME_STAMP_SUSP is defined, causes code to be inserted and
60 // compiled-in that saves the low part of the time stamp count just before 60 // compiled-in that saves the low part of the time stamp count just before
399 _VMSMasterEnv->measHists[idx] = \ 399 _VMSMasterEnv->measHists[idx] = \
400 makeFixedBinHist( numBins, startVal, binWidth, name ); 400 makeFixedBinHist( numBins, startVal, binWidth, name );
401 401
402 402
403 #define MEAS__SUB_CREATE /*turn on/off subtraction of create from plugin*/ 403 #define MEAS__SUB_CREATE /*turn on/off subtraction of create from plugin*/
404 #define createHistIdx 1 404 #define createHistIdx 0
405 #define mutexLockHistIdx 2 405 #define mutexLockHistIdx 1
406 #define mutexUnlockHistIdx 3 406 #define mutexUnlockHistIdx 2
407 #define condWaitHistIdx 4 407 #define condWaitHistIdx 3
408 #define condSignalHistIdx 5 408 #define condSignalHistIdx 4
409 409
410 410
411 #define MakeTheMeasHists \ 411 #define MakeTheMeasHists \
412 _VMSMasterEnv->measHistsInfo = \ 412 _VMSMasterEnv->measHistsInfo = \
413 makePrivDynArrayOfSize( &(_VMSMasterEnv->measHists), 200);\ 413 makePrivDynArrayOfSize( &(_VMSMasterEnv->measHists), 200);\