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
// +build amd64 | |
// func Supported() bool | |
TEXT ·Supported(SB), 4, $0 | |
MOVQ $1, AX | |
CPUID | |
TESTQ $(1<<26), CX | |
JZ avxFalse | |
TESTQ $(1<<28), CX |
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
// +build amd64 | |
// func DotProduct(left, right []float32, result float32) float32 | |
TEXT ·DotProduct(SB), 4, $0 | |
// Load slice lengths | |
MOVQ leftLen+8(FP), AX | |
MOVQ rightLen+32(FP), BX | |
// Get minimum length | |
CMPQ AX, BX |
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
from re import compile | |
from colorama import Fore, Back, Style, init | |
from asyncio import subprocess, CancelledError, create_subprocess_exec, wait_for, all_tasks, get_event_loop | |
from argparse import ArgumentParser | |
from signal import signal, SIGINT | |
from warnings import filterwarnings | |
from time import sleep | |
filterwarnings("ignore", category=DeprecationWarning) | |
init(autoreset=True) |
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
module 1brc | |
go 1.22.6 | |
require golang.org/x/exp v0.0.0-20240808152545-0cdaa3abc0fa |