return masked value
b
number of bits
p
position in word
Definition at line 375 of file seedstructs.cc.
References DATRW_assert, Mword, and value().
Referenced by value().
378 "use at least 1 byte");
381 DATRW_assert((p<
int(32/b)),
"ERROR (Steim2Word::extract): " 383 int signmask=int(1 << (b-1));
384 int valmask=signmask - 1;
387 int sign=int((
Mword >> nshift) & signmask);
391 int retval= sign ? (
value | ~valmask) :
value;
#define DATRW_assert(C, M)
Check an assertion and report by throwing an exception.
int value(const int &i) const