log2.h (271127) | log2.h (282513) |
---|---|
1/*- 2 * Copyright (c) 2010 Isilon Systems, Inc. 3 * Copyright (c) 2010 iX Systems, Inc. 4 * Copyright (c) 2010 Panasas, Inc. 5 * Copyright (c) 2013, 2014 Mellanox Technologies, Ltd. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 153 unchanged lines hidden (view full) --- 162 (n) & (1ULL << 0) ? 0 : \ 163 ____ilog2_NaN() \ 164 ) : \ 165 (sizeof(n) <= 4) ? \ 166 __ilog2_u32(n) : \ 167 __ilog2_u64(n) \ 168 ) 169 | 1/*- 2 * Copyright (c) 2010 Isilon Systems, Inc. 3 * Copyright (c) 2010 iX Systems, Inc. 4 * Copyright (c) 2010 Panasas, Inc. 5 * Copyright (c) 2013, 2014 Mellanox Technologies, Ltd. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 153 unchanged lines hidden (view full) --- 162 (n) & (1ULL << 0) ? 0 : \ 163 ____ilog2_NaN() \ 164 ) : \ 165 (sizeof(n) <= 4) ? \ 166 __ilog2_u32(n) : \ 167 __ilog2_u64(n) \ 168 ) 169 |
170#define order_base_2(x) ilog2(roundup_pow_of_two(x)) 171 |
|
170#endif /* _LINUX_LOG2_H_ */ | 172#endif /* _LINUX_LOG2_H_ */ |