Skip to content

Improve generic fls64 for 64-bit machines

Alexander van Heukelum linux-arch lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Introduce a generic __fls implementationinclude/asm-generic/bitops/__fls.h+43 -00 replies
2/3Implement __fls on all 64-bit archsinclude/asm-alpha/bitops.h include/asm-ia64/bitops.h include/asm-mips/bitops.h +5 more+35 -00 replies
3/3Use __fls for fls64 on 64-bit archsinclude/asm-generic/bitops/fls64.h include/asm-x86/bitops_64.h+24 -133 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [0/3] Improve generic fls64 for 64-bit machines

This series of patches:

[1/3] adds __fls.h to asm-generic
[2/3] modifies asm-*/bitops.h for 64-bit archs to implement __fls [3/3] modifies asm-generic/fls64.h to make use of __fls

I have compiled i386 and x86_64, and they generate the same code as before the change. The changes to the other archs are a best effort. Please comment.

If this patch series is accepted, it will make one tiny bit of the x86-unification a tiny bit cleaner. The patches are against Linus' current tree.

Andrew, if no concensus can be reached that this is a bad patch series, would you be willing to add this to your tree?

Greetings,
Alexander
--
To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html