Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144493100
D41251.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
354 B
Referenced Files
None
Subscribers
None
D41251.diff
View Options
diff --git a/sys/isa/isa_common.c b/sys/isa/isa_common.c
--- a/sys/isa/isa_common.c
+++ b/sys/isa/isa_common.c
@@ -275,12 +275,7 @@
static int
find_next_bit(uint32_t mask, int bit)
{
- bit++;
- while (bit < 32 && !(mask & (1 << bit)))
- bit++;
- if (bit != 32)
- return (bit);
- return (-1);
+ return (find_first_bit(mask & (-2 << bit)));
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 8:06 PM (5 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28601555
Default Alt Text
D41251.diff (354 B)
Attached To
Mode
D41251: isa_common: find next bit faster
Attached
Detach File
Event Timeline
Log In to Comment