Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F169265249
D20235.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
663 B
Referenced Files
None
Subscribers
None
D20235.id.diff
View Options
Index: head/sys/kern/subr_blist.c
===================================================================
--- head/sys/kern/subr_blist.c
+++ head/sys/kern/subr_blist.c
@@ -215,18 +215,18 @@
bitpos(u_daddr_t mask)
{
- return (_Generic(mask,
+ switch (sizeof(mask)) {
#ifdef HAVE_INLINE_FFSLL
- long long: ffsll(mask) - 1,
+ case sizeof(long long):
+ return (ffsll(mask) - 1);
#endif
-#ifdef HAVE_INLINE_FFSL
- long: ffsl(mask) - 1,
-#endif
#ifdef HAVE_INLINE_FFS
- int: ffs(mask) - 1,
+ case sizeof(int):
+ return (ffs(mask) - 1);
#endif
- default: generic_bitpos(mask)
- ));
+ default:
+ return (generic_bitpos(mask));
+ }
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 2, 2:27 AM (37 m, 59 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37569187
Default Alt Text
D20235.id.diff (663 B)
Attached To
Mode
D20235: Undo _Generic, as it breaks multiple builds
Attached
Detach File
Event Timeline
Log In to Comment