You are here

private static function PHPExcel_Reader_Excel5_MD5::rotate in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5/MD5.php \PHPExcel_Reader_Excel5_MD5::rotate()
1 call to PHPExcel_Reader_Excel5_MD5::rotate()
PHPExcel_Reader_Excel5_MD5::step in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5/MD5.php

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel5/MD5.php, line 216

Class

PHPExcel_Reader_Excel5_MD5
PHPExcel_Reader_Excel5_MD5

Code

private static function rotate($decimal, $bits) {
  $binary = str_pad(decbin($decimal), 32, "0", STR_PAD_LEFT);
  return bindec(substr($binary, $bits) . substr($binary, 0, $bits));
}