Code: Select all
struct magic_t
{
size_t offset;
uint64_t mask;
uint64_t magic;
size_t shift;
};
__declspec(align(64)) static const magic_t magics[54] =
{
{ 0, 0x0000041041041040ULL, 0x0100842010200088ULL, 57 },
{ 128, 0x00000000820828c0ULL, 0x4080812100240000ULL, 57 },
{ 256, 0x0000000000525180ULL, 0x4040402410020010ULL, 57 },
{ 384, 0x0000000210842300ULL, 0x0810300804002008ULL, 57 },
{ 512, 0x0000108421084200ULL, 0x0088100808240004ULL, 56 },
{ 768, 0x0000820820820800ULL, 0x0044040880c08000ULL, 57 },
{ 896, 0x0000041041041800ULL, 0x0088020211080080ULL, 57 },
{ 1024, 0x00000000824a3000ULL, 0x0206024010004800ULL, 57 },
{ 1152, 0x0000000210946000ULL, 0x000084804001c008ULL, 57 },
{ 1280, 0x0000108421084000ULL, 0x0c04220201020000ULL, 57 },
{ 0, 0, 0, 0 },
{ 1408, 0x0000820820820040ULL, 0x0020900830202000ULL, 57 },
{ 1536, 0x00000410414600c0ULL, 0x2010880200100003ULL, 55 },
{ 2048, 0x00000002928c0180ULL, 0x0080060201020030ULL, 55 },
{ 2560, 0x0000108421180300ULL, 0x8020008030201001ULL, 55 },
{ 3072, 0x0000210842100200ULL, 0x0840010414020200ULL, 57 },
{ 3200, 0x0000410410400840ULL, 0x021401010a020000ULL, 57 },
{ 3328, 0x0000820820c01880ULL, 0x000800201810040cULL, 55 },
{ 3840, 0x0000041251803140ULL, 0x0002000800840123ULL, 53 },
{ 5888, 0x00001084a3006280ULL, 0x0221000806080040ULL, 53 },
{ 7936, 0x0000210842004100ULL, 0x0029005008808000ULL, 57 },
{ 0, 0, 0, 0, },
{ 8064, 0x0000410410021080ULL, 0x0080c80080808008ULL, 57 },
{ 8192, 0x0000820a30062900ULL, 0x40100100c4008010ULL, 53 },
{ 10240, 0x00001494600c5240ULL, 0x0480200414010004ULL, 50 },
{ 26624, 0x00002108c0182080ULL, 0x04010a0010020012ULL, 55 },
{ 27136, 0x0000421080104100ULL, 0x0010828028010100ULL, 57 },
{ 27264, 0x0000208200421080ULL, 0x1281101004040000ULL, 57 },
{ 27392, 0x0000410600c42100ULL, 0x1001010004009820ULL, 55 },
{ 27904, 0x0000928c018a4a00ULL, 0x1001508000202010ULL, 50 },
{ 44288, 0x0000251803141040ULL, 0x00205060002c0000ULL, 53 },
{ 46336, 0x0000421002082080ULL, 0x008100c880820000ULL, 57 },
{ 0, 0, 0, 0, },
{ 46464, 0x0000208010842100ULL, 0x4010110080810008ULL, 57 },
{ 46592, 0x0000518031484200ULL, 0x0a20100200100404ULL, 53 },
{ 48640, 0x0000a30062920800ULL, 0x0142010200224000ULL, 53 },
{ 50688, 0x00004600c1041040ULL, 0x004a204040020008ULL, 55 },
{ 51200, 0x0000840082082080ULL, 0x0040480100112008ULL, 57 },
{ 51328, 0x0000100210842100ULL, 0x0004018188020001ULL, 57 },
{ 51456, 0x0000300621084200ULL, 0x10040824a0010000ULL, 55 },
{ 51968, 0x0000600c52500000ULL, 0x05040080c0420000ULL, 55 },
{ 52480, 0x0000c018a0820800ULL, 0x0002300408006020ULL, 55 },
{ 52992, 0x0000801041041040ULL, 0x0501110808004000ULL, 57 },
{ 0, 0, 0, 0, },
{ 53120, 0x0000008421084200ULL, 0x0008240401800006ULL, 57 },
{ 53248, 0x0000018a42100000ULL, 0x0482022010100040ULL, 57 },
{ 53376, 0x0000031490400000ULL, 0x2008008084400240ULL, 57 },
{ 53504, 0x0000060820820800ULL, 0x0000840408080083ULL, 57 },
{ 53632, 0x0000041041041040ULL, 0x0102041200420200ULL, 57 },
{ 53760, 0x0000108421084200ULL, 0x0094408050020000ULL, 56 },
{ 54016, 0x0000310842100000ULL, 0x000026040a040100ULL, 57 },
{ 54144, 0x0000629280000000ULL, 0x0008210030220040ULL, 57 },
{ 54272, 0x0000c50410400000ULL, 0x0006010024201100ULL, 57 },
{ 54400, 0x0000820820820800ULL, 0x4102040404028000ULL, 57 },
};