anchor.diff:  endlocal
   exit /b
   
  -::%1 - variable name
  +::%1 - variable name for number (in/out)
  +::%2 - cariable name for measure (out)
   :prepsize
  +setlocal
  +set "var=!%~1!"
   set "sign="
  -if !%~1! lss 0 (set "sign=-" & set /a "%~1*=-1")
  -if !%~1! geq %GB% (call:division %~1 %GB% 100 & set "%~1=%sign%!%~1! GB" & exit /b)
  -if !%~1! geq %MB% (call:division %~1 %MB% 100 & set "%~1=%sign%!%~1! MB" & exit /b)
  -if !%~1! geq %KB% (call:division %~1 %KB% 100 & set "%~1=%sign%!%~1! KB" & exit /b)
  -set "%~1=%sign%!%~1! B"
  +if "%var:~,1%" equ "-" (set "sign=-" & set "var=%var:~1%")
  +set "meas=B"
  +if %var% geq %GB% (call:division var %GB% 100 & set "meas=GB" & goto:finprepsize)
  +if %var% geq %MB% (call:division var %MB% 100 & set "meas=MB" & goto:finprepsize)
  +if %var% geq %KB% (call:division var %KB% 100 & set "meas=KB" & goto:finprepsize)
  +:finprepsize
  +endlocal & set "%~1=%sign%%var%" & set "%~2=%meas%"
  +exit /b
  +
  +::%1 - number of 100%
  +::%2 - number, which is necessary to calculate the percentage
  +::%3 - variable name for save result
  +:calcperc
  +setlocal
  +::echo on
  +echo.%~0: %*
  +set "change=%~2"
  +set "sign="
  +if "%change:~,1%" equ "-" (set "sign=-" & set "change=%change:~1%")
  +set /a "perc=%change%*100/%~1" 2>nul
  +set /a "fract=%change%*100%%%~1*100/%~1" 2>nul
  +set /a "perc=%perc%*100+%fract%"
  +call:division perc 100 100
  +endlocal & set "%~3=%sign%%perc%"
  +::echo off
   exit /b
   
   ::%1 - file name
  
positive.code: set /a "TotalSize%~1+=%~2"
  set /a "ImageSize%~1+=%~3"
  if !ImageSize%~1! lss %BYTECONV% if !TotalSize%~1! lss %BYTECONV% exit /b
  call:division2 TotalSize%~1 !stepB%~1! !step10%~1!
  call:division2 ImageSize%~1 !stepB%~1! !step10%~1!
  set /a "STotalSize%~1+=!TotalSize%~1!"
  set /a "SImageSize%~1+=!ImageSize%~1!"
  set "TotalSize%~1=0"
  
negative.code: ::%3 - thread number
  :savelog
  setlocal
  echo.%~0: %~2	%~z1
  set "ts=%~2"
  set "is=%~z1"
  call:division2 ts 1024 100
  call:division2 is 1024 100
  set /a "change=%is%-%ts%"
  call:calcperc %ts% %change% perc
  set /a "change=%~2-%~z1"
  >>"%logfile2%" echo.%~1;%~2;%~z1;%change%;%perc%;ok
  if %thread% equ 1 (
  	call:printfileinfo "%~1" %2 %~z1 %change% %perc%
  )
  endlocal
  exit /b
  