Browse Source

fcl-stl: allow ghashmap to build with FPUNONE. also some tabs to spaces fixes

git-svn-id: trunk@37228 -
Károly Balogh 8 years ago
parent
commit
aa5a3da312
1 changed files with 6 additions and 2 deletions
  1. 6 2
      packages/fcl-stl/src/ghashmap.pp

+ 6 - 2
packages/fcl-stl/src/ghashmap.pp

@@ -21,13 +21,17 @@
 
   const
     baseFDataSize = 8;             // must be > 0
+{$IFDEF FPUNONE}
+    maxLoadingFactor = 1;
+{$ELSE}
     maxLoadingFactor = 1.0;
+{$ENDIF}
 
   {
     THash should have the class functions
       hash(a: TKey, n: SizeUInt): SizeUInt;
-      	      return uniformly distributed i value in range <0,n-1> base only on arguments,
-	      n will be always power of 2
+              return uniformly distributed i value in range <0,n-1> base only on arguments,
+              n will be always power of 2
       equal(const AKey1, AKey2: TKey): Boolean;            [when STL_INTERFACE_EXT is defined]
               return the boolean test for equality of the two keys.  Typically this is operator=,
               but it doesn't have to be (e.g. case-insensitive string comparison)