From 50ec164b67d84c2e838db65d9886202617ffd314 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Thu, 6 Aug 2020 11:19:52 -0400 Subject: [PATCH] fix: remove code that is in the shims --- src/core/CCInt.ml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/core/CCInt.ml b/src/core/CCInt.ml index 932f8525..7aa29e39 100644 --- a/src/core/CCInt.ml +++ b/src/core/CCInt.ml @@ -318,14 +318,7 @@ let range_by ~step i j yield = (CCInt.range_by ~step:1 i j |> Iter.to_list) \ (CCInt.range i j |> Iter.to_list) ) *) - (* popcount comes from [Shims] as it's 32/64 bits dependent, see #327 *) -let popcount (b:int) : int = - let rec loop count x = - if x=0 then count - else loop (count+1) (x land (x-1)) - in - loop 0 b (*$= 0 (popcount 0)