mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
chore(CCBV): clean comments
This commit is contained in:
parent
8f65bf639b
commit
8ff253f18d
1 changed files with 1 additions and 4 deletions
|
|
@ -1,9 +1,6 @@
|
||||||
|
|
||||||
(** {2 Imperative Bitvectors} *)
|
(** {2 Imperative Bitvectors} *)
|
||||||
|
|
||||||
(* TODO: move to [bytes] and replace all [mod] and [/] with bitshifts
|
|
||||||
because width_=8 *)
|
|
||||||
|
|
||||||
(*$inject
|
(*$inject
|
||||||
let ppli = CCFormat.(Dump.list int)
|
let ppli = CCFormat.(Dump.list int)
|
||||||
*)
|
*)
|
||||||
|
|
@ -154,7 +151,7 @@ let resize bv size =
|
||||||
let is_empty bv =
|
let is_empty bv =
|
||||||
try
|
try
|
||||||
for i = 0 to Bytes.length bv.b - 1 do
|
for i = 0 to Bytes.length bv.b - 1 do
|
||||||
if get_ bv.b i <> 0 then raise Exit (* MSB of last element are all 0 *)
|
if get_ bv.b i <> 0 then raise Exit
|
||||||
done;
|
done;
|
||||||
true
|
true
|
||||||
with Exit ->
|
with Exit ->
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue