Skip to content

RFC Improve m68k __mulsi3

George Spelvin linux-m68k 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2arch/m68k/lib/mulsi3.S: Optimize]arch/m68k/lib/mulsi3.S+31 -10110 replies
2/2arch/m68k: Add CONFIG_CPU_HAS_NO_MULDIV32arch/m68k/Kconfig.cpu arch/m68k/lib/Makefile+13 -26 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/2] Improve m68k __mulsi3

As part of some other work I was doing looking at constant multiplies on various platforms, and that led to looking a the em68k __mulsi3 code.

Which in turn led to the following microoptimizations. Note that this is desk-checked but UNTESTED, thus the RFC nature of the patches.

A bit of cleverness uses the available A0 and A1 registers to save three instruction words one memory fetch, shaving 16 cycles off the code.