Re: [PATCH] Using Intel CRC32 instruction to accelerate CRC32c algorithm by new crypto API.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Herbert Xu <herbert@...>
Cc: Arjan van de Ven <arjan@...>, Chris Mason <chris.mason@...>, <dwmw2@...>, <austin_zhang@...>, <davem@...>, <linux-kernel@...>, <linux-crypto@...>
Date: Tuesday, August 5, 2008 - 7:10 am

Herbert Xu 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.

Similiar for any other functions that may or may not have hw support.

Helge Hafting
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Using Intel CRC32 instruction to accelerate CRC3..., Helge Hafting, (Tue Aug 5, 7:10 am)