Print this page
5255 uts shouldn't open-code ISP2

*** 21,30 **** --- 21,31 ---- /* * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ + #include <sys/sysmacros.h> #include <sys/ib/clients/rds/rds.h> #include <sys/ib/clients/rds/rds_kstat.h> #include <inet/ipclassifier.h>
*** 147,157 **** void rds_hash_init() { int i; ! if (rds_bind_fanout_size & (rds_bind_fanout_size - 1)) { /* Not a power of two. Round up to nearest power of two */ for (i = 0; i < UINT_32_BITS; i++) { if (rds_bind_fanout_size < (1 << i)) break; } --- 148,158 ---- void rds_hash_init() { int i; ! if (!ISP2(rds_bind_fanout_size)) { /* Not a power of two. Round up to nearest power of two */ for (i = 0; i < UINT_32_BITS; i++) { if (rds_bind_fanout_size < (1 << i)) break; }