I hereby claim:
- I am tripack45 on github.
- I am tripack (https://keybase.io/tripack) on keybase.
- I have a public key ASDXMpOxLInKbl_nwEIrksaDzBpf4-TuyBudhOU2qyEWdAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#include <iostream> | |
#include <cstdio> | |
#include <bitset> | |
#include <x86intrin.h> | |
using namespace std; | |
// The majority gate | |
inline unsigned char | |
majority (unsigned char a, |
// | |
// Created by tripack on 2017/10/14. | |
// | |
#ifndef SRC_FORMATTER_H | |
#define SRC_FORMATTER_H | |
#include <string> |
#include <type_traits> | |
#include <iostream> | |
struct Unit {}; | |
struct Id { | |
template <class X> using V = X; | |
}; | |
struct True { |
The following is the SML code to perform the dump
fun dumpBits x =
let val vec = Unsafe.blastWrite x
val lst = Word8Vector.toList vec
val items = List.map (fn x => " " ^ Word8.fmt StringCvt.HEX x) lst
val items = List.map (StringCvt.padLeft #"0" 2) items
in
print (String.concat items ^ "\n")