/*1BLAKE2 reference source code package - optimized C implementations23Written in 2012 by Samuel Neves <[email protected]>45To the extent possible under law, the author(s) have dedicated all copyright6and related and neighboring rights to this software to the public domain7worldwide. This software is distributed without any warranty.89You should have received a copy of the CC0 Public Domain Dedication along with10this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.11*/12#pragma once13#ifndef __BLAKE2_CONFIG_H__14#define __BLAKE2_CONFIG_H__1516#if defined(__SSE2__)17#define HAVE_SSE218#endif1920#if defined(__SSSE3__)21#define HAVE_SSSE322#endif2324#if defined(__SSE4_1__)25#define HAVE_SSE4_126#endif2728#if defined(__AVX__)29#define HAVE_AVX30#endif3132#if defined(__XOP__)33#define HAVE_XOP34#endif353637#ifdef HAVE_AVX238#ifndef HAVE_AVX39#define HAVE_AVX40#endif41#endif4243#ifdef HAVE_XOP44#ifndef HAVE_AVX45#define HAVE_AVX46#endif47#endif4849#ifdef HAVE_AVX50#ifndef HAVE_SSE4_151#define HAVE_SSE4_152#endif53#endif5455#ifdef HAVE_SSE4_156#ifndef HAVE_SSSE357#define HAVE_SSSE358#endif59#endif6061#ifdef HAVE_SSSE362#define HAVE_SSE263#endif6465#if !defined(HAVE_SSE2)66#error "This code requires at least SSE2."67#endif6869#endif70717273