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

#include "extra_ispc.h"

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

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

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

  return 0;
}