Skip to content

Instantly share code, notes, and snippets.

# 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',
#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 {