/* * Ceph - scalable distributed file system * * Copyright (C) 2015 Intel Corporation All Rights Reserved * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1, as published by the Free Software * Foundation. See file COPYING. * */ #ifndef CEPH_CRUSH_LN_H #define CEPH_CRUSH_LN_H #ifdef __KERNEL__ # include <linux/types.h> #else # include "crush_compat.h" #endif /* * RH_LH_tbl[2*k] = 2^48/(1.0+k/128.0) * RH_LH_tbl[2*k+1] = 2^48*log2(1.0+k/128.0) */ static __s64 __RH_LH_tbl[128*2+2] = …; /* * LL_tbl[k] = 2^48*log2(1.0+k/2^15) */ static __s64 __LL_tbl[256] = …; #endif