scalafmt and prettier

deepcrayonfish^2
Niklas Fiekas 2021-12-06 22:59:39 +01:00
parent e323a8595b
commit 744abd80cc
3 changed files with 7 additions and 3 deletions

View File

@ -4,3 +4,4 @@ maxColumn = 110
spaces.inImportCurlyBraces = true
rewrite.rules = [SortImports, RedundantParens, SortModifiers]
rewrite.redundantBraces.stringInterpolation = true
runner.dialect = scala213

View File

@ -117,8 +117,11 @@ export default function (opts: CevalOpts): CevalCtrl {
Math.min(Math.ceil((navigator.hardwareConcurrency || 1) / 4), maxThreads)
);
const estimatedMinMemory = (technology == 'hce' || technology == 'nnue') ? 2.0 : 0.5;
const maxHashSize = Math.min(((navigator.deviceMemory || estimatedMinMemory) * 1024) / 8, growableSharedMem ? 1024 : 16);
const estimatedMinMemory = technology == 'hce' || technology == 'nnue' ? 2.0 : 0.5;
const maxHashSize = Math.min(
((navigator.deviceMemory || estimatedMinMemory) * 1024) / 8,
growableSharedMem ? 1024 : 16
);
const hashSize = storedProp(storageKey('ceval.hash-size'), 16);
const multiPv = storedProp(storageKey('ceval.multipv'), opts.multiPvDefault || 1);