This is the first time for me to submit a patch to Postgres community.
instead of using for loop to find the most significant bit set. we could use __builtin_clz function to first find the number of leading zeros for the mask and then we can find the index by 32 - __builtin_clz(mask).
Hi!
This file has already been removed, as of 4f1f5a7f85. Which already uses __builtin_clz if it' available.
Were you perhaps looking at an old version instead of the master branch?