blob: d22780280b771496284df89d2333c2e2cacad723 (
plain)
1
2
3
4
5
6
7
8
9
|
unsigned f(unsigned flags, unsigned capabilities)
{
unsigned gfp_mask;
unsigned gfp_notmask = 0;
gfp_mask = flags & ((1 << 25) - 1);
if (!(capabilities & 0x00000001))
gfp_mask |= 0x1000000u;
return (gfp_mask & ~gfp_notmask);
}
|