You are here

private static function PHPExcel_Shared_OLE_PPS_Root::_adjust2 in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE/PPS/Root.php \PHPExcel_Shared_OLE_PPS_Root::_adjust2()

* Helper function for caculating a magic value for block sizes * * @access public *

Parameters

integer $i2 The argument: * @see save() * @return integer

1 call to PHPExcel_Shared_OLE_PPS_Root::_adjust2()
PHPExcel_Shared_OLE_PPS_Root::save in vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE/PPS/Root.php
* Method for saving the whole OLE container (including files). * In fact, if called with an empty argument (or '-'), it saves to a * temporary file and then outputs it's contents to stdout. * If a resource pointer to a stream created…

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/OLE/PPS/Root.php, line 166

Class

PHPExcel_Shared_OLE_PPS_Root
Class for creating Root PPS's for OLE containers

Code

private static function _adjust2($i2) {
  $iWk = log($i2) / log(2);
  return $iWk > floor($iWk) ? floor($iWk) + 1 : $iWk;
}