namespace HDK_Sample {
#define CV_SIZE 8
static void
{
int i;
{
}
}
static void
{
int i;
N[i].assign(0, 1, 0);
}
static void
{
int i;
{
s[i] = (
fpreal)i / (CV_SIZE-1);
t[i] = 1-s[i];
}
}
static void
{
int i;
}
static void
{
int i;
printf(
"{%g,%g,%g}", v[0].
x(), v[0].
y(), v[0].
z());
printf(
", {%g,%g,%g}", v[i].
x(), v[i].
y(), v[i].
z());
}
static void
{
return;
{
break;
break;
default:
printf(
"No output supported currently\n");
}
}
static void
{
int i;
for (i = 0; i < list.
entries(); i++)
{
{
default:
printf(
"unknown");
break;
}
}
}
}
using namespace HDK_Sample;
int
{
memset(zero, 0, sizeof(zero));
if (!cvex.
load(argc-1, argv+1))
{
fprintf(stderr,
"Unable to load cvex function: %s\n", argv[1]);
return 1;
}
if (Pval)
{
fillP(P);
}
if (Nval)
{
fillN(N);
}
if (sval || tval)
{
fillST(s, t);
if (sval) sval->setTypedData(s,
CV_SIZE);
if (tval) tval->setTypedData(t,
CV_SIZE);
}
if (!CfVal && !OfVal)
fprintf(stderr,
"%s doesn't seem to write to Cf or Of\n", argv[1]);
if (CfVal)
if (OfVal)
if (sout)
if (tout)
printf(
"Calling VEX ----------------------------\n\n");
printf(
"\n\nFinished VEX ----------------------------\n");
dumpValue(CfVal);
dumpValue(OfVal);
dumpValue(sout);
dumpValue(tout);
return 0;
}