summaryrefslogtreecommitdiffstats
path: root/Tests/ISPC/ObjectLibrary/main.cxx
blob: a6b91a6663355571f2a7932f040fda5cf591296c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>

#include "simple_ispc.h"

int main()
{
  float vin[16], vout[16];
  for (int i = 0; i < 16; ++i)
    vin[i] = i;

  ispc::simple(vin, vout, 16);

  for (int i = 0; i < 16; ++i)
    printf("%d: simple(%f) = %f\n", i, vin[i], vout[i]);
}