Mercurial > octave-libgccjit
changeset 18851:9d185537e5d1 stable
* data.cc: New test for log2 (bug #42583).
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 19 Jun 2014 20:08:37 -0400 |
parents | ff4da3c8ed16 |
children | 9a70705dc616 |
files | libinterp/corefcn/data.cc |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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, ,