include: ceph_stable_mod in public domain

Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil 2020-10-06 08:30:08 -05:00
parent 37e7425552
commit fa5d9f8846
2 changed files with 6 additions and 0 deletions

View File

@ -32,6 +32,10 @@ Files: src/include/ceph_hash.cc
Copyright: None Copyright: None
License: Public domain License: Public domain
Files: src/include/rados.h, except ceph_stable_mod(), which is public domain
Copyright: the authors
License: LGPL-2.1 or LGPL-3 (see COPYING-LGPL2.1 and COPYING-LGPL3)
Files: src/common/bloom_filter.hpp Files: src/common/bloom_filter.hpp
Copyright: Copyright (C) 2000 Arash Partow <arash@partow.net> Copyright: Copyright (C) 2000 Arash Partow <arash@partow.net>
License: Boost Software License, Version 1.0 License: Boost Software License, Version 1.0

View File

@ -90,6 +90,8 @@ struct ceph_pg {
* *
* b <= bmask and bmask=(2**n)-1 * b <= bmask and bmask=(2**n)-1
* e.g., b=12 -> bmask=15, b=123 -> bmask=127 * e.g., b=12 -> bmask=15, b=123 -> bmask=127
*
* ** This function is released to the public domain by the author. **
*/ */
static inline int ceph_stable_mod(int x, int b, int bmask) static inline int ceph_stable_mod(int x, int b, int bmask)
{ {