On Tue, 15 Mar 2022 at 02:17, Oleg Endo <oleg.e...@t-online.de> wrote: > > In my own CRC library I've got ~30 'commonly used' CRC types, based on > the following generic definition: > > This being a library makes it relatively easy to tune and customize for > various systems.
... > How would that work together with your proposal? With optabs, you can put in whatever you like into the machine-specific expansion. Or if we could put your library-using code into a default expansion that is used if there's no optab expansion for the modes given, then the target can override this for machine-specific methods using the optabs, and otherwise use your library method in the default expansion.