Skip to content

Interest in supporting in place bitwise operations? #35

@mbarbin

Description

@mbarbin

Hello, and thanks for bitv.

I'm wondering whether supporting in place bitwise operations would be a good fit for this library.

To give an example with and, I'm thinking something like creating a new alterative to add to the currently supported functional operator:

val bw_and : t -> t -> t

and add support for a new function:

val bw_inplace_and : mutates:t -> t -> unit

Similarly to the existing bw_and, this inplace operation would only be valid for operands of the same lengths.

I would think this pattern would apply to the other bitwise operations in the library (or, xor, not).

Please let me know if interest by a contribution along these lines. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions