On Tue, Aug 05, 2008 at 01:10:25PM +0200, Helge Hafting wrote: > > How about making crc32c an inline function then? > On processors that have this feature, this compiles to that single > instruction, plus whatever setup it needs. Nice and efficient. > On other processors, either inline the algorithm or inline > a call to an out of line function, depending on how bulky this is. Please read the thread carefully. Being a single instruction is nothing special. The same thing applies for other algorithms too, e.g., AES is also just a single instruction with the VIA PadLock (and Intel in future). The crypto API has handled this just fine. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html