Lines Matching refs:max

48         $this->chunk_size = (int)max($chunk_size, 0);
87 $rev = max($rev, 0);
143 $num = max($num, 0);
153 $first = max($first + 1, 0);
178 $finger = max($tail - $this->chunk_size, 0);
184 $finger = max($finger - $this->chunk_size, 0);
192 $read_size = max($tail - $finger, 0); // found chunk size
195 $tmp = @fread($fp, max(min($this->chunk_size, $read_size - $got), 0));
214 $finger = max($tail - $this->chunk_size, 0);
221 $num = max(min(count($lines) - $first, $num), 0);
223 $lines = array_slice($lines, max(count($lines) - $first - $num, 0), $num);
226 $lines = array_slice($lines, 0, max(count($lines) - $first, 0));
228 $lines = array_slice($lines, max(count($lines) - $num, 0));
261 $rev = max($rev, 0);
327 * @param int $max maximum number of revisions returned
330 public function getRevisionsAround($rev1, $rev2, $max = 50) argument
332 $max = floor(abs($max) / 2) * 2 + 1;
333 $rev1 = max($rev1, 0);
334 $rev2 = max($rev2, 0);
348 … list($revs2, $allrevs, $fp, $lines, $head, $tail) = $this->retrieveRevisionsAround($rev2, $max);
356 list($revs1, , , , ,) = $this->retrieveRevisionsAround($rev1, $max);
369 if ($index > floor($max / 2)) break 2;
377 $revs1 = array_slice($revs1, max($index - floor($max / 2), 0), $max);
480 $chunk_size = max($tail - $head, 0); // found chunk size
484 $tmp = @fread($fp, max(min($this->chunk_size, $chunk_size - $got), 0));
570 $head = max($tail - $this->chunk_size, 0);
575 $head = max($head - $this->chunk_size, 0);
592 * @param int $max maximum number of revisions to be returned
603 protected function retrieveRevisionsAround($rev, $max) argument
626 if ($aftercount > floor($max / 2)) break 2;
652 if ($beforecount > max(floor($max / 2), $max - $aftercount)) break 2;
662 $requestedrevs = array_slice($revs, -$max, $max);