mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-09 15:20:58 +00:00
Merge remote-tracking branch 'lzylinl/master'
This commit is contained in:
commit
5f3c49cbcc
@ -188,14 +188,11 @@ abstract class EvalBarrett extends Base
|
||||
return 'return [];';
|
||||
}
|
||||
|
||||
$label = 'label_' . uniqid();
|
||||
|
||||
$regular = '
|
||||
$length = count($' . $input . ');
|
||||
if (!$length) {
|
||||
$' . $output . ' = [];
|
||||
goto ' . $label . ';
|
||||
}
|
||||
}else{
|
||||
$' . $output . ' = array_fill(0, $length + ' . count($arr) . ', 0);
|
||||
$carry = 0;';
|
||||
|
||||
@ -243,9 +240,7 @@ abstract class EvalBarrett extends Base
|
||||
|
||||
$regular.= '$' . $output. '[++$k] = $carry; $carry = 0;';
|
||||
|
||||
$regular.= '}';
|
||||
|
||||
$regular.= $label . ':';
|
||||
$regular.= '}}';
|
||||
|
||||
//if (count($arr) < 2 * self::KARATSUBA_CUTOFF) {
|
||||
//}
|
||||
|
Loading…
Reference in New Issue
Block a user