VirtualBox

source: vbox/trunk/src/libs/liblzma-5.4.1/check/crc64_table.c@ 103980

最後變更 在這個檔案從103980是 98730,由 vboxsync 提交於 2 年 前

libs/liblzma-5.4.1: Export to OSE, bugref:10254

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 1.1 KB
 
1///////////////////////////////////////////////////////////////////////////////
2//
3/// \file crc64_table.c
4/// \brief Precalculated CRC64 table with correct endianness
5//
6// Author: Lasse Collin
7//
8// This file has been put into the public domain.
9// You can do whatever you want with this file.
10//
11///////////////////////////////////////////////////////////////////////////////
12
13#include "common.h"
14
15
16// FIXME: Compared to crc64_fast.c this has to check for __x86_64__ too
17// so that in 32-bit builds crc64_x86.S won't break due to a missing table.
18#if (defined(__x86_64__) && defined(__SSSE3__) \
19 && defined(__SSE4_1__) && defined(__PCLMUL__)) \
20 || (defined(__e2k__) && __iset__ >= 6)
21// No table needed but something has to be exported to keep some toolchains
22// happy. Also use a declaration to silence compiler warnings.
23extern const char lzma_crc64_dummy;
24const char lzma_crc64_dummy;
25
26#else
27// Having the declaration here silences clang -Wmissing-variable-declarations.
28extern const uint64_t lzma_crc64_table[4][256];
29
30# if defined(WORDS_BIGENDIAN)
31# include "crc64_table_be.h"
32# else
33# include "crc64_table_le.h"
34# endif
35#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette