[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20080805140436.GA23405@gondor.apana.org.au>
Date: Tue, 5 Aug 2008 22:04:36 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Helge Hafting <helge.hafting@...el.hist.no>
Cc: Arjan van de Ven <arjan@...radead.org>,
Chris Mason <chris.mason@...cle.com>, dwmw2@...radead.org,
austin_zhang@...ux.intel.com, davem@...emloft.net,
linux-kernel@...r.kernel.org, linux-crypto@...r.kernel.org
Subject: Re: [PATCH] Using Intel CRC32 instruction to accelerate CRC32c algorithm by new crypto API.
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@...dor.apana.org.au>
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-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists