File tree Expand file tree Collapse file tree
HashLib/src/Include/Simd/CRC Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ interface
1515 HlpICRC,
1616 HlpHashFactory,
1717 HlpIHash,
18- HlpSimd,
1918 HlpConverters;
2019
2120type
@@ -26,7 +25,6 @@ TTestCRCModel = class(THashLibAlgorithmTestCase)
2625 FCRC: IHash;
2726
2827 protected
29- procedure Setup ; override;
3028 procedure TearDown ; override;
3129 published
3230 procedure TestCheckValue ;
@@ -67,14 +65,6 @@ implementation
6765
6866{ TTestCRCModel }
6967
70- procedure TTestCRCModel.Setup ;
71- begin
72- inherited ;
73- WriteLn(' PCLMULQDQ : ' , TSimd.HasPCLMULQDQ());
74- WriteLn(' VPCLMULQDQ : ' , TSimd.HasVPCLMULQDQ());
75- WriteLn(' SIMD Level : ' , Ord(TSimd.GetActiveLevel()));
76- end ;
77-
7868procedure TTestCRCModel.TearDown ;
7969begin
8070 FCRC := nil ;
Original file line number Diff line number Diff line change 1- // PCLMULQDQ - based CRC folding + Barrett reduction for reflected (LSB - first)
1+ // SSE2 + PCLMULQDQ CRC folding + Barrett reduction for reflected (LSB - first)
22// CRCs with width 8 .. 32 (CRC - 64 requires a separate path).
3+ // PCLMULQDQ instructions are db - encoded for broad assembler compatibility.
34//
45// Function signature (included after SimdProc4Begin. inc ):
56// function CRC_Fold_Pclmul(AData: PByte ; ALength: UInt32;
Original file line number Diff line number Diff line change 1- // VPCLMULQDQ + AVX2 CRC folding + Barrett reduction for reflected (LSB - first)
1+ // AVX2 + VPCLMULQDQ CRC folding + Barrett reduction for reflected (LSB - first)
22// CRCs with width 8 .. 32 (CRC - 64 requires a separate path).
3+ // AVX2/ VPCLMULQDQ instructions are db - encoded for broad assembler compatibility.
34//
45// Function signature (included after SimdProc4Begin. inc ):
56// function CRC_Fold_Vpclmul(AData: PByte ; ALength: UInt32;
1819// Reference: zlib - ng crc32_pclmulqdq_tpl.h ( 256 - bit VPCLMULQDQ path)
1920// and Linux kernel crc - pclmul - template.S by Eric Biggers (Barrett reduction).
2021//
21- // All VEX - encoded instructions are db - encoded for FPC compatibility.
2222// VEX byte layout reference:
2323// 2 - byte: C5 [ R.vvvv.L.pp ]
2424// 3 - byte: C4 [ R.X.B.mmmmm ] [ W.vvvv.L.pp ]
You can’t perform that action at this time.
0 commit comments