Skip to content

Instantly share code, notes, and snippets.

View m1cycles.c
// Adapted from
#include <dlfcn.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#define KPERF_LIST \
F(int, kpc_force_all_ctrs_set, int) \
View our-vif-route
# ${XEN_SCRIPT_DIR}/vif-route
# Script for configuring a vif in routed mode.
# The hotplugging system will call this script if it is specified either in
# the device configuration given to Xend, or the default Xend configuration
# in ${XEN_CONFIG_DIR}/xend-config.sxp. If the script is specified in
# neither of those places, then vif-bridge is the default.
import cairo
import math
import sys
class State:
def __init__(self, name, groupSize=1024):
self.surface = cairo.SVGSurface (name+".svg", 1040, 1040) = name
self.ctx = cairo.Context (self.surface)
We couldn’t find that file to show.
View eddilithium3.go
package main
import (
View main.go
package main
var data uint32 = 1234
func test(p *uint32)
func main() {
bwesterb / patch
Created Dec 25, 2019
prover9 make -j patch
View patch
diff --git a/apps.src/Makefile b/apps.src/Makefile
index 35558ca..b69c41f 100644
--- a/apps.src/Makefile
+++ b/apps.src/Makefile
@@ -24,7 +24,7 @@ clean:
/bin/rm -f *.o $(PROGRAMS)
+install: apps
View gist:cf27a31333d8c303455613359c82ff2a[avx2 implementation of dilithium4] FAILED [ 95%]
============================================================ FAILURES ============================================================
___________________________________ test_symbol_namespaces[avx2 implementation of dilithium4] ____________________________________
implementation = <Implementation(dilithium4, avx2)>
impl_path = '/Users/bas/src/pqclean/testcases/test_symbol_ns_zzd3cdk6/crypto_bla/scheme/impl'
test_dir = '/Users/bas/src/pqclean/testcases/test_symbol_ns_zzd3cdk6'
init = <function isolate_test_files.<locals>.initializer at 0x10d1a93b0>
destr = <function isolate_test_files.<locals>.destructor at 0x10d1a9440>
View pqclean macOS
cc -O3 -Wall -Wextra -Wpedantic -Wvla -Werror -Wmissing-prototypes -Wredundant-decls -std=c99 -Wcast-align -mavx2 -mbmi -mpopcnt -I../../../common -c -o rejsample.o rejsample.c
rejsample.c:284:44: error: expected expression
d = _mm256_loadu_si256((__m256i_u *)vec);
rejsample.c:284:33: error: use of undeclared identifier '__m256i_u'
d = _mm256_loadu_si256((__m256i_u *)vec);
rejsample.c:288:51: error: expected expression
__m128i rid = _mm_loadl_epi64((__m128i_u *)&idx[good]);
import csv
import json
from unidecode import unidecode
anum = set('abcdefghijklmnopqrstuvwxyz0123456789')
sfxs = {}
print("Computing suffices...")
for i, x in enumerate(json.load(open('all_songs.json'))):
def add(a, t, i):