CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
vpp_tools.h
Go to the documentation of this file.
1 #include <iostream>
2 #include <fstream>
3 
4 // concatenation of two signal_s
5 #define sigcat(s1,n1,s2,n2) ((s1 << n2) | s2)
6 
7 // signal_ declaration
8 #define Signal(s) ULLONG s, RC_##s, CH_##s
9 
10 // signal_ initialization
11 #define siginit(s) {if ((CH_##s = s - RC_##s) != 0) {__glob__change__ = 1; RC_##s = s;}}
12 
13 // memory initialization
14 #define meminit(s) for (unsigned __mem_ind__ = 0; __mem_ind__ < sizeof(s)/sizeof(ULLONG); __mem_ind__++) siginit(s[__mem_ind__]);
15