1 #ifndef _VPPC_SIM_LIB_H_FILE_
2 #define _VPPC_SIM_LIB_H_FILE_
16 #define ull unsigned int
17 #define dull unsigned long long
18 #define sull 32 // size of unsigned __int32
19 #define sdull 64 // size of double variable
20 #define mull (0xffffffffUL) // max value
21 #define mdull (0xffffffffffffffffULL)
23 #define max_temp_sig 64 // has to be power of 2
24 #define temp_i_mask (max_temp_sig - 1) // temp signal index mask
26 #define const__p const_s_p
29 #define repeat(a) for (int __rep_counter__ = 0; __rep_counter__ < a; __rep_counter__++)
30 #define Swrite(cl, ...) Sfwrite(stdout_sig, cl, ##__VA_ARGS__)
31 #define Sdisplay(cl, ...) Sfwrite(stdout_sig, (string)cl + "\n", ##__VA_ARGS__)
32 #define Sfdisplay(fd,cl, ...) Sfwrite(fd, (string)cl + "\n", ##__VA_ARGS__)
43 void bw(
size_t ih,
size_t il);
44 void add_dim(
size_t h,
size_t l);
51 size_t btw,
wn, byten;
62 void bw(
size_t h,
size_t l);
64 ull get_ull(
size_t bnum);
65 void set_ull(
size_t bnum,
size_t bcnt,
ull val);
68 void add_dim(
size_t h,
size_t l);
81 ull operator++ (
int){
return *
this = *
this + 1;};
82 ull operator-- (
int){
return *
this = *
this - 1;};
124 friend bool posedge (
signal_&);
125 friend bool negedge (
signal_&);
signal_ Sfopen(string fname, string mode="w")
mathSSE::Vec4< double > operator|(mathSSE::Vec4< double > a, mathSSE::Vec4< double > b)
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
MatrixMeschach operator+(const MatrixMeschach &mat1, const MatrixMeschach &mat2)
signal_ & const_s(size_t sz, unsigned long long val)
mathSSE::Vec4< double > operator&(mathSSE::Vec4< double > a, mathSSE::Vec4< double > b)
bool operator>(l1t::Jet &a, l1t::Jet &b)
MatrixMeschach operator-(const MatrixMeschach &mat1, const MatrixMeschach &mat2)
Basic3DVector & operator-=(const Basic3DVector< U > &p)
bool operator!=(debugging_allocator< X > const &, debugging_allocator< Y > const &)
int Sfgets(signal_ &line, signal_ &fd)
Basic3DVector< long double > operator/(const Basic3DVector< long double > &v, S s)
bool operator<=(View< T > const &, View< T > const &)
signal_ & const_l(size_t sz, size_t count,...)
bool operator>=(View< T > const &, View< T > const &)
int Ssscanf(signal_ &line, string format,...)
bool operator<(const FedChannelConnection &, const FedChannelConnection &)
void Sreadmemh(string fname, signal_ &dest, size_t adr=0)
bool operator==(const QGLikelihoodParameters &lhs, const QGLikelihoodCategory &rhs)
Test if parameters are compatible with category.
unsigned int const_(size_t sz, unsigned int val)
T operator[](int i) const
signal_ & const_s_p(size_t sz, unsigned long long val)
Basic3DVector & operator/=(T t)
Scaling by a scalar value (division)
void Sfclose(signal_ &fd)
void Sfwrite(signal_ &fd, string format,...)
signal_ & const_l_p(size_t sz, size_t count,...)
mathSSE::Vec4< double > operator^(mathSSE::Vec4< double > a, mathSSE::Vec4< double > b)
Basic3DVector & operator+=(const Basic3DVector< U > &p)