[bug #68061] Matlab-compatible bitXXX finctions

"Dmitri A. Sergatskov" <[email protected]>
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
Please use the bug tracker to post updates to a bug report.  The mailing list is intended as a read-only notification stream.  Info posted to this mailing list address won't appear in the tracker database where it is most useful.

Follow-up Comment #3, bug #68061 (group octave):

Re-base to current (2026-03-26) tip.
Some code clean up:
Remove HAVE_CXX_BITWISE_OP_TEMPLATES guard and hand-rolled
std::bit_and/bit_or/bit_xor injected into namespace std.
Use C++14 transparent comparators (std::bit_and<>{}, etc.) in bitopx.
Change return type of bitop_arg_is_int, bitop_arg_is_bool, bitop_arg_is_float
from int to bool.

Add fast-path optimization if in and out arrays are of the same size.

(file bug68061_bitxxx_cpp_20260324_100.cset)

Make check still passes.

Dmitri.
-- 


(file #58394)

    _______________________________________________________

Additional Item Attachment:

Name: bug68061_bitxxx_cpp_20260324_100.cset Size: 101KiB

<https://file.savannah.gnu.org/file/bug68061_bitxxx_cpp_20260324_100.cset?file_id=58394>


    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-9b684d621d606340ec3f8b1a290873daf3ff5474.tar.gz


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68061>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCacLpaAAKCRCqLAuaBUf3
TrD4AQCjVnCCVb3WHe7SXYjUqL/ZrfMQmpxeaAy3hzOsZe6gHAD+OWxcURwGbJuO
oJc97ffiX+5iomcGDpkTOGTNlVONaQw=
=rJSR
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.