# HG changeset patch # User John W. Eaton # Date 1403222917 14400 # Node ID 9d185537e5d12ba366f78dd06c9c4b01b2104c86 # Parent ff4da3c8ed16603cd87b47a9a3c708c317e49d98 * data.cc: New test for log2 (bug #42583). diff -r ff4da3c8ed16 -r 9d185537e5d1 libinterp/corefcn/data.cc --- a/libinterp/corefcn/data.cc Thu Jun 19 15:49:14 2014 -0400 +++ b/libinterp/corefcn/data.cc Thu Jun 19 20:08:37 2014 -0400 @@ -568,6 +568,9 @@ %! [f, e] = log2 (complex (zeros (3, 2), [0,-1; 2,-4; Inf,-Inf])); %! assert (f, complex (zeros (3, 2), [0,-0.5; 0.5,-0.5; Inf,-Inf])); %! assert (e(1:2,:), [0,1; 2,3]); + +# bug #42583 +%!assert (all (log2 (pow2 (-1074:1023)) == -1074:1023)) */ DEFUN (rem, args, ,