2017-11-24 16:14:10 +02:00
|
|
|
/*
|
|
|
|
* This software is licensed under the terms of the MIT-License
|
|
|
|
* See COPYING for further information.
|
|
|
|
* ---
|
|
|
|
* Copyright (c) 2011-2017, Lukas Weber <laochailan@web.de>.
|
|
|
|
* Copyright (c) 2012-2017, Andrei Alexeyev <akari@alienslab.net>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2017-11-25 21:45:11 +02:00
|
|
|
#include "taisei.h"
|
2017-11-24 16:14:10 +02:00
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "compat.h"
|
|
|
|
|
|
|
|
#ifdef HAVE_INTEL_INTRIN
|
|
|
|
uint32_t crc32str_sse42(uint32_t crc, const char *str) __attribute__((hot, pure));
|
|
|
|
#else
|
|
|
|
#define crc32str_sse42 crc32str
|
|
|
|
#endif
|