Skip to content

Instantly share code, notes, and snippets.

@sneves
sneves / ct32.c
Last active December 28, 2021 19:43
/*
Constant-time integer comparisons
Written in 2014 by Samuel Neves <sneves@dei.uc.pt>
To the extent possible under law, the author(s) have dedicated all copyright
and related and neighboring rights to this software to the public domain
worldwide. This software is distributed without any warranty.
You should have received a copy of the CC0 Public Domain Dedication along with
/*
SSSE3/XOP bit reversal
Written in 2014 by Samuel Neves <sneves@dei.uc.pt>
To the extent possible under law, the author(s) have dedicated all copyright
and related and neighboring rights to this software to the public domain
worldwide. This software is distributed without any warranty.
You should have received a copy of the CC0 Public Domain Dedication along with
@ECHO OFF
if "%1" == "" (
echo "Usage: do2 <Release | ReleaseDLL | Debug | DebugDLL"
goto :END
)
if not exist sodium_version.c (
echo "Are you on the right path?" %CD%
goto :END