1
0
mirror of https://github.com/danog/tgseclib.git synced 2025-01-22 05:51:20 +01:00

Merge remote-tracking branch 'lzylinl/master'

This commit is contained in:
terrafrost 2017-11-05 12:57:29 -06:00
commit 5f3c49cbcc

View File

@ -188,14 +188,11 @@ abstract class EvalBarrett extends Base
return 'return [];'; return 'return [];';
} }
$label = 'label_' . uniqid();
$regular = ' $regular = '
$length = count($' . $input . '); $length = count($' . $input . ');
if (!$length) { if (!$length) {
$' . $output . ' = []; $' . $output . ' = [];
goto ' . $label . '; }else{
}
$' . $output . ' = array_fill(0, $length + ' . count($arr) . ', 0); $' . $output . ' = array_fill(0, $length + ' . count($arr) . ', 0);
$carry = 0;'; $carry = 0;';
@ -243,9 +240,7 @@ abstract class EvalBarrett extends Base
$regular.= '$' . $output. '[++$k] = $carry; $carry = 0;'; $regular.= '$' . $output. '[++$k] = $carry; $carry = 0;';
$regular.= '}'; $regular.= '}}';
$regular.= $label . ':';
//if (count($arr) < 2 * self::KARATSUBA_CUTOFF) { //if (count($arr) < 2 * self::KARATSUBA_CUTOFF) {
//} //}