Skip to content

math128 - v2

Peter Zijlstra linux-arch lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2math128: Introduce {mult,add,cmp}_u128arch/alpha/include/asm/Kbuild arch/arm/include/asm/Kbuild arch/avr32/include/asm/Kbuild +28 more+245 -11 reply
2/2math128, x86_64: Implement {mult,add}_u128 in 64bit asmarch/x86/include/asm/Kbuild arch/x86/include/asm/math128.h+39 -12 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] math128 - v2

Take two of the math128 bits..

Changes since last time:
- Added gcc __int128 versions for where it works
- Added Andy's mul_u64_u32_shr() due to popular demand :-)
- Added {shl,shr}_u128 as requested by hpa (although I suspect he'll use Andy's fancy function).
- Added a U128_INIT() constant initializer.
- Renamed mult_u128 to mul_u64_u64, hpa complaned the name was misleading
- Fixed some of the code generation issues with add_u128 and mul_u64_64.

I've also assumed we're all actually ok with adding this functionality, so unless someone hollers I'll push this for inclusion.