Print this page
5255 uts shouldn't open-code ISP2
@@ -21,10 +21,11 @@
/*
* 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,11 +148,11 @@
void
rds_hash_init()
{
int i;
- if (rds_bind_fanout_size & (rds_bind_fanout_size - 1)) {
+ 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;
}