Exemple #1
0
void __attribute__((noinline)) do_one(void)
{
  unsigned long i;

  obfuscate(x, y, &a);

  for (i = 0; i < SIZE; i++)
    y[i] = a * x[i];

  obfuscate(x, y, &a);
}
Exemple #2
0
static void __attribute__((noinline)) do_one(void)
{
 unsigned long i;

 obfuscate(x, y, &a);

 for (i = 0; i < (16384/sizeof(unsigned short)); i++)
  y[i] = a * x[i];

 obfuscate(x, y, &a);
}
void GSTraceFormatter::formatFiltered(
	std::ostream &stream, const util::TraceRecord &record) {
	const bool codeAndSymbolCombined = true;

	stream << record.dateTime_ << " ";

	if (record.hostName_ != NULL) {
		stream << record.hostName_ << " ";
	}

	stream << util::Thread::getSelfId() << " ";

	formatLevel(stream, record);

	if (!codeAndSymbolCombined) {
		formatMainErrorCode(stream, record, false, " ");
	}

	if (record.tracerName_ != NULL) {
		stream << " " << record.tracerName_;
	}

	if (codeAndSymbolCombined) {
		if (formatMainErrorCode(stream, record, false, " [")) {
			formatMainErrorCode(stream, record, true, ":");
			stream << "]";
		}
	}
	else {
		formatMainErrorCode(stream, record, true, " ");
	}

	if (record.message_ != NULL && *record.message_ != '\0') {
		stream << (codeAndSymbolCombined ? " " : " : ") << record.message_;
	}

	if (record.cause_ != NULL) {
		stream << " <";
		if (secret_) {
			util::NormalOStringStream oss;
			formatMainLocation(oss, record, "");
			formatCause(oss, record, " ");
			util::NormalIStringStream iss(obfuscate(oss.str()));

			util::Base64Converter::encode(stream, iss);
		}
		else {
			formatMainLocation(stream, record, "");
			formatCause(stream, record, " ");
		}
		stream << ">";
	}
}
	void DMPint::set(DMPstring val)
	{
		myvalue = val.getint();
		obfuscate();
	}
	void DMPint::set(DMPdouble val)
	{
		myvalue = val.getint();
		obfuscate();
	}
    /*double MyMathFuncs::Add(double a, double b)
    {
        return a + b;
    }*/
	void DMPint::set(int val)
	{
		myvalue = val;
		obfuscate();
	}