Skip to content

Commit 88aad01

Browse files
committed
update inc file
1 parent f164b95 commit 88aad01

1 file changed

Lines changed: 31 additions & 29 deletions

File tree

HashLib/src/Include/HashLibFPC.inc

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -11,42 +11,44 @@
1111

1212
(* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& *)
1313

14-
{$IFDEF FPC}
15-
// FPC 3.2.2 and Above
16-
{$IF FPC_FULLVERSION < 30202}
17-
{$MESSAGE ERROR 'This Library requires FreePascal 3.2.2 or higher.'}
18-
{$IFEND}
14+
// FPC 3.2.2 and Above
15+
{$IF FPC_FULLVERSION < 30202}
16+
{$MESSAGE ERROR 'This Library requires FreePascal 3.2.2 or higher.'}
17+
{$IFEND}
1918

20-
{$IFDEF ENDIAN_BIG}
21-
{$MESSAGE FATAL 'This Library does not support "Big Endian" processors yet.'}
22-
{$ENDIF}
19+
{$IFDEF ENDIAN_BIG}
20+
{$MESSAGE FATAL 'This Library does not support "Big Endian" processors yet.'}
21+
{$ENDIF}
22+
23+
{$IFDEF FPC_LITTLE_ENDIAN}
24+
{$DEFINE HASHLIB_LITTLE_ENDIAN}
25+
{$ENDIF}
2326

24-
{$IFDEF FPC_LITTLE_ENDIAN}
25-
{$DEFINE HASHLIB_LITTLE_ENDIAN}
26-
{$ENDIF}
27+
{$IFDEF FPC_REQUIRES_PROPER_ALIGNMENT}
28+
{$DEFINE HASHLIB_REQUIRES_PROPER_ALIGNMENT}
29+
{$ENDIF}
30+
31+
{========================= FPC Version Features ===============================}
2732

28-
{$IFDEF FPC_REQUIRES_PROPER_ALIGNMENT}
29-
{$DEFINE HASHLIB_REQUIRES_PROPER_ALIGNMENT}
30-
{$ENDIF}
33+
{$IF FPC_FULLVERSION >= 30301}
34+
{.$DEFINE HASHLIB_USE_PPL} // Use Parallel Programming Library
35+
{$IFEND}
3136

32-
{$IF FPC_FULLVERSION >= 30301}
33-
{.$DEFINE HASHLIB_USE_PPL} // Use Parallel Programming Library
34-
{$IFEND}
37+
{$DEFINE USE_UNROLLED_VARIANT}
3538

36-
{$DEFINE USE_UNROLLED_VARIANT}
39+
{========================= Compiler Mode & Optimizations ======================}
3740

38-
{$MODE DELPHI}
39-
{$ASMMODE INTEL}
40-
{$MACRO ON}
41-
{$NOTES OFF}
41+
{$MODE DELPHI}
42+
{$ASMMODE INTEL}
43+
{$MACRO ON}
44+
{$NOTES OFF}
4245

4346
(*
44-
{$OPTIMIZATION LEVEL3}
45-
{$OPTIMIZATION NOUSELOADMODIFYSTORE}
46-
{$OPTIMIZATION ORDERFIELDS}
47-
{$OPTIMIZATION DEADVALUES}
48-
{$IFDEF CPUI386} {$OPTIMIZATION USEEBP} {$ENDIF}
49-
{$IFDEF CPUX86_64} {$OPTIMIZATION USERBP} {$ENDIF}
47+
{$OPTIMIZATION LEVEL3}
48+
{$OPTIMIZATION NOUSELOADMODIFYSTORE}
49+
{$OPTIMIZATION ORDERFIELDS}
50+
{$OPTIMIZATION DEADVALUES}
51+
{$IFDEF CPUI386} {$OPTIMIZATION USEEBP} {$ENDIF}
52+
{$IFDEF CPUX86_64} {$OPTIMIZATION USERBP} {$ENDIF}
5053
*)
51-
{$ENDIF}
5254

0 commit comments

Comments
 (0)