18 #ifdef CSC_RENDER_PLUGIN
82 std::ostringstream st;
107 while (std::string::npos !=
pos || std::string::npos != lastPos) {
108 tokens.push_back(
str.substr(lastPos,
pos - lastPos));
109 lastPos =
str.find_first_not_of(delimiters,
pos);
110 pos =
str.find_first_of(delimiters, lastPos);
112 return tokens.size();
125 while (std::string::npos !=
pos || std::string::npos != lastPos) {
127 lastPos =
str.find_first_not_of(delim,
pos);
128 pos =
str.find_first_of(delim, lastPos);
138 if (
pos != std::string::npos) {
140 pos =
str.find_first_not_of(
' ');
141 if (
pos != std::string::npos) {
156 TPRegexp* re = const_cast<TPRegexp*>(&re_expression);
157 return re->MatchB(message);
167 return regexMatch(TPRegexp(expression), message);
190 TPRegexp* re = const_cast<TPRegexp*>(&re_expression);
192 message = static_cast<const char*>(
s);
221 TPRegexp* re = const_cast<TPRegexp*>(&re_expression);
227 #if (defined(__GNUC__) && defined(__i386__)) || defined(__WATCOMC__) || defined(_MSC_VER) || defined(__BORLANDC__) || \
229 #define get16bits(d) (*((const uint16_t*)(d)))
232 #if !defined(get16bits)
233 #define get16bits(d) ((((uint32_t)(((const uint8_t*)(d))[1])) << 8) + (uint32_t)(((const uint8_t*)(d))[0]))
246 if (len <= 0 ||
data ==
nullptr)
252 for (; len > 0; len--) {
256 data += 2 *
sizeof(uint16_t);
265 hash ^=
data[
sizeof(uint16_t)] << 18;
303 const unsigned int n,
304 const double low_threshold,
305 const double high_threshold,
306 const double low_sigfail,
307 const double high_sigfail) {
309 double eps_meas = (1.0 *
n) / (1.0 *
N);
310 if (eps_meas < low_threshold) {
314 }
else if (eps_meas > high_threshold) {
316 if (
S > high_sigfail)
333 const double eps_meas = (1.0 *
n) / (1.0 *
N);
361 double eps_meas = (1.0 *
n) / (1.0 *
N);
362 double a = 1.0,
b = 1.0;
365 for (
unsigned int r = 0;
r <
n;
r++)
366 a =
a * (eps_meas / l_eps);
370 for (
unsigned int r = 0;
r < (
N -
n);
r++)
371 b =
b * (1 - eps_meas) / (1 - l_eps);
389 double no = 1.0 *
n, ne = 1.0 *
N;
390 return sqrt(2.0 * (no * (
log(no / ne) - 1) + ne));
399 const unsigned postLS1_map[] = {841, 842, 843, 844, 845, 846, 847, 848, 849, 831, 832, 833,
400 834, 835, 836, 837, 838, 839, 861, 862, 863, 864, 865, 866,
401 867, 868, 869, 851, 852, 853, 854, 855, 856, 857, 858, 859};
403 for (
int i = 0;
i < 36;
i++) {
404 if (ddu_id == postLS1_map[
i]) {