123456789101112131415161718192021222324252627282930313233343536373839404142(**************************************************************************)(* This file is part of BINSEC. *)(* *)(* Copyright (C) 2016-2026 *)(* CEA (Commissariat à l'énergie atomique et aux énergies *)(* alternatives) *)(* *)(* you can redistribute it and/or modify it under the terms of the GNU *)(* Lesser General Public License as published by the Free Software *)(* Foundation, version 2.1. *)(* *)(* It is distributed in the hope that it will be useful, *)(* but WITHOUT ANY WARRANTY; without even the implied warranty of *)(* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *)(* GNU Lesser General Public License for more details. *)(* *)(* See the GNU Lesser General Public License version 2.1 *)(* for more details (enclosed in the file licenses/LGPLv2.1). *)(* *)(**************************************************************************)typet=intexternalseed:int->t="%identity"[@@noalloc]externalfold_int:t->int->t="cstubs_hash_fold_int""cstubs_hash_fold_int_untagged"[@@noalloc][@@untagged]externalfold_string:(t[@untagged])->string->(t[@untagged])="cstubs_hash_fold_string""cstubs_hash_fold_string_untagged"[@@noalloc]letreturnh=leth=Nativeint.of_inthinleth=Nativeint.logxorh(Nativeint.shift_right_logicalh16)inleth=Nativeint.mulh0x85ebca6bninleth=Nativeint.logxorh(Nativeint.shift_right_logicalh13)inleth=Nativeint.mulh0xc2b2ae35ninleth=Nativeint.logxorh(Nativeint.shift_right_logicalh16)inNativeint.to_inthland0x3fffffff[@@inline]