source: proto/RE/output/demo1src/pr.cpp @ 3803

Last change on this file since 3803 was 3803, checked in by cameron, 5 years ago

I2result files

File size: 781 bytes
Line 
1
2#include <stdio.h>
3#include <stdlib.h>
4#include <unistd.h>
5#include <errno.h>
6#include <sys/types.h>
7#include <sys/stat.h>
8
9#include <simd-lib/bitblock.hpp>
10#include <simd-lib/s2p.hpp>
11
12
13int main(int argc, char * argv[]) {
14  // Initialize a temporary bitblock value.
15  BitBlock volatile temp1 = simd<8>::constant<0x33>();
16  // print it out.
17  print_register<BitBlock>("temp1", temp1);
18  // And another.
19  BitBlock volatile temp2 = simd<16>::constant<0x3344>();
20  print_register<BitBlock>("temp2", temp2);
21  //
22  BitBlock rslt = simd<8>::eq(temp1, temp2);
23  print_register("simd<8>::eq(temp1, temp2)", rslt);
24  uint32_t msk = hsimd<64>::signmask(rslt);
25  printf("  hsimd<64>::signmask(rslt) = %u\n", msk);
26
27  // Done.   Exit normally.
28  return(0);
29}
30
Note: See TracBrowser for help on using the repository browser.