bitor bitxor bitand upgraded. Help pages rewritten. Bug #14654 fixed 53/18353/12
authorSamuel GOUGEON <sgougeon@free.fr>
Mon, 4 Jul 2016 23:23:27 +0000 (01:23 +0200)
committerPierre-Aime AGNEL <pierre-aime.agnel@scilab-enterprises.com>
Thu, 11 Aug 2016 13:44:16 +0000 (15:44 +0200)
commitd2b9e3013ea21c519d75b24cb3b2930440aa1daa
tree83334db7f54476416a8dc63a75385be6390190f0
parent5b376f55826c04288324ef2c0dba64cb1a8c3938
bitor bitxor bitand upgraded. Help pages rewritten. Bug #14654 fixed

 * http://bugzilla.scilab.org/14654
   - bitand, bitor and bitxor could not be used with positive signed integers
   - 64-bit input integers were not supported
 * Operands with mixed types or inttypes were not accepted.
 * bit###(scalar, array) or bitand(array, scalar) were not accepted.
 * The implementation for hypermatrices was still with the former
   hypermatrices encoding, and therefore was wrong.
 * Results with decimal numbers > 2^32 were wrong. Now, all positive decimal
   numbers up to number_properties("huge") are well processed
 * bitxor() was not vectorized and was slow
 * 95% of their code was similar but not factorized.

Change-Id: Ia5d9a55900aae9bc1799273c4e1da261f73ecd45
25 files changed:
scilab/CHANGES.md
scilab/modules/ast/src/cpp/operations/types_or.cpp
scilab/modules/elementary_functions/help/en_US/bitwise/bitand.xml
scilab/modules/elementary_functions/help/en_US/bitwise/bitor.xml
scilab/modules/elementary_functions/help/en_US/bitwise/bitxor.xml
scilab/modules/elementary_functions/help/ja_JP/bitwise/bitand.xml [deleted file]
scilab/modules/elementary_functions/help/ja_JP/bitwise/bitor.xml [deleted file]
scilab/modules/elementary_functions/help/ja_JP/bitwise/bitxor.xml [deleted file]
scilab/modules/elementary_functions/help/pt_BR/bitwise/bitand.xml [deleted file]
scilab/modules/elementary_functions/help/pt_BR/bitwise/bitor.xml [deleted file]
scilab/modules/elementary_functions/help/ru_RU/bitwise/bitand.xml [deleted file]
scilab/modules/elementary_functions/help/ru_RU/bitwise/bitor.xml [deleted file]
scilab/modules/elementary_functions/help/ru_RU/bitwise/bitxor.xml [deleted file]
scilab/modules/elementary_functions/macros/bit_op.sci [new file with mode: 0644]
scilab/modules/elementary_functions/macros/bitand.sci
scilab/modules/elementary_functions/macros/bitor.sci
scilab/modules/elementary_functions/macros/bitxor.sci
scilab/modules/elementary_functions/tests/nonreg_tests/bug_14654.dia.ref [new file with mode: 0644]
scilab/modules/elementary_functions/tests/nonreg_tests/bug_14654.tst [new file with mode: 0644]
scilab/modules/elementary_functions/tests/unit_tests/bitand.dia.ref
scilab/modules/elementary_functions/tests/unit_tests/bitand.tst
scilab/modules/elementary_functions/tests/unit_tests/bitor.dia.ref
scilab/modules/elementary_functions/tests/unit_tests/bitor.tst
scilab/modules/elementary_functions/tests/unit_tests/bitxor.dia.ref
scilab/modules/elementary_functions/tests/unit_tests/bitxor.tst