mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: dank@suburbanjihad.net (nick black)
To: linux-kernel@vger.kernel.org
Subject: checksumming with mmx, comment in arch/i386/lib/mmx.c
Date: Tue, 11 Feb 2003 13:37:07 -0500	[thread overview]
Message-ID: <20030211183707.GA23376@suburbanjihad.net> (raw)

i want to speed up my product's checksum verification code, and was
pondering the use of mmx (ip_fast_csum as implemented by cwik and
gulbrandsen from asm-i386/checksum.h is fast enough for my needs, but i
don't want to violate the gpl 8) ).

i'm refreshing myself on mmx currently, but noticed the following
comment from arch/i386/lib/mmx.c's _mmx_memcpy:

"Checksums are not a win with MMX on any CPU tested so far for any MMX
solution figured."

firstly, to what domain of checksums does this comment apply?  secondly,
why is it true?  it seems the PADDW family of instructions could work
well here; is the slowdown a result of the kernel's need to muck with
fpu state (from what i can tell, mmx uses the fp registers)?

thanks so much for any help!

-- 
nick black <dank@reflexsecurity.com>

             reply	other threads:[~2003-02-11 18:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-11 18:37 nick black [this message]
2003-02-11 19:06 ` Valdis.Kletnieks

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030211183707.GA23376@suburbanjihad.net \
    --to=dank@suburbanjihad.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®