


% -*- texinfo -*-
% @deftypefn {Function File} {} nextpow2 (@var{x})
% If @var{x} is a scalar, return the first integer @var{n} such that
% @tex
% $2^n \ge |x|$.
% @end tex
% @ifnottex
% 2^n >= abs (x).
% @end ifnottex
%
% If @var{x} is a vector, return @code{nextpow2 (length (@var{x}))}.
% @seealso{pow2, log2}
% @end deftypefn