Skip to content

Instantly share code, notes, and snippets.

View gamozolabs's full-sized avatar
🎯
Writing some very cool data structures

gamozolabs

🎯
Writing some very cool data structures
View GitHub Profile
@gamozolabs
gamozolabs / coverage.rs
Created April 19, 2019 21:56
Compare coverage implementation in the old Vectorized Emulator
/// Generate a hash using the values in Zmm0 and return Zmm0
///
/// Clobbers Zmm1!!!
fn hash_zmm0(outasm: &mut falkasm::AsmStream, conststore: &mut ConstStore)
{
let kmask = Operand::KmaskRegister(KmaskType::Merge(KmaskReg::K1));
let thirt = Membc(Some(R10), None, conststore.add_const(13)
.unwind("Out of room for constant storage") as i64 * 4);
let sevent = Membc(Some(R10), None, conststore.add_const(17)
@gamozolabs
gamozolabs / mirror_crates_io.py
Created September 17, 2017 09:33
Mirror all of crates.io
import glob, json, os, sys, urlparse, hashlib, urllib
CRATES_IO_GIT = "https://github.com/rust-lang/crates.io-index"
DOWNLOAD_BASE = "https://crates.io/api/v1/crates"
def parse_index():
if os.path.exists("crates.io-index"):
print "Updating crates.io-index git repo"
os.system("cd crates.io-index ; git pull")
else: