This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: py -3 ./oh_generate_vectors.py [header filename] [header guard name] | |
# eg py -3 ./oh_generate_vectors.py oh_generate_vectors.py.h OH_GENERATE_VECTORS_PY_H | |
from collections import namedtuple | |
from itertools import chain, product | |
from contextlib import contextmanager | |
import re | |
import sys | |
Prim = namedtuple('prim', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef OH_GENERATE_VECTORS_PY_H | |
#define OH_GENERATE_VECTORS_PY_H | |
#pragma warning(disable: 4201) | |
union u8t2 { | |
struct { u8t x; u8t y; }; | |
struct { u8t u; u8t v; }; | |
u8t E[2]; | |
}; | |
union u8t3 { |
OlderNewer