- fixed division by zero in rotations of 0-length vectors (reported by Nikolaus Huber)
- fixed integer overflows in bound tests in
fill
,blit
,sub
(fix by Nikolaus Huber)
- Switch to bytes-based implementation. This is simpler and faster
(up to 30% faster).
Bitv_string
is still there but deprecated (now identical toBitv
). - Functions
to_int...
do not fail anymore when bit vectors are small (and behave as if high bits are zero). - New function
tanimoto
(Tanimoto score) (contribution by François Berenger)
- fixed build on 32-bit platforms e.g. js_of_ocaml (patch from Tim Bourke)
- added
exceeds_max_length
to replacemax_length
(deprecated)
- new functions
rotatel
androtater
(patch from Tim Bourke)
- switch to dune build system, and opam 2.0
- add to/of_bytes for machine-independant serialisation
- fix binary serialisation when vector is larger than 2^32
- fix compilation for OCaml 4.06 (safe-string)
- added pop (population count, i.e., number of 1 bits)
- suppressed some warnings with OCaml >= 4.00
- installation using ocamlfind (if found) or in
ocamlc -where
/bitv otherwise - fixed of_int64_(u)s on a 32-bit architecture (thanks to Florent Monnier)
- functions to/of_int64_s
- new functions output_bin/input_bin for export/import in a machine-independent way (contribution from Bruno Guillaume)
- fixed installation (patch from Bruno Guillaume)
- fixed tarball (test.ml was missing)
- patched installation to use $(DESTDIR), if any (patch from Bruno Guillaume)
- two different modules L and M for conversions to and from string (least and most significant bits first, respectively); apologies for API incompatibility
- improved implementation of iteri_true
- fixed bug with unsafe_blit when len=0 (could affect blit, sub, append, concat and fill when used with 0-length bit vectors), thanks to Pat Rondon
- added iteri_true
- added foldi_left and foldi_right
- patch for ocaml >= 3.08 (0xffffffff is no more accepted as a literal)
- fixed Invalid_argument messages (now exactly the function name)
- added print : formatter -> t -> unit
- from_list now fails on negative indexes (patch from Karl Zilles)
- from_list_with_length to specify the length (patch from Karl Zilles)
- to_list/from_list to convert to/from lists of integers
- added gray_iter to iterate over all bit vectors of length n
- configuration with autoconf
- fixed bug in bw_not thanks to Damir Jamsek
- normalization, so that generic equality can be used
- efficient implementations of append, sub, blit, concat and fill
- documentation using ocamlweb
- to_string, from_string
- bitwise operations, all_zeros
- first release