public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Amit kumar <akamit91@hotmail.com>
To: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: SIMD Instruction supported in UEFI?
Date: Wed, 8 Mar 2017 15:09:37 +0000	[thread overview]
Message-ID: <BN6PR11MB1811383D1C3A59ABF17D6119DC2E0@BN6PR11MB1811.namprd11.prod.outlook.com> (raw)


Hi ;
I have written a UEFI app in ASM which runs XOR on a block of data using SIMD instructions ("PXOR") in UEFI environment.
It takes around 2 Seconds to run this code, but when i use normal C XOR operator ("^") it takes 1 Seconds.
Is there something wrong ? I mean SIMD instructions must be giving me better performance(my expectation);

But when i do same experiment in Windows environment SIMD code ( _mm_xor_si128 ) gives me 9 times better performance than normal XOR instruction.       

 Have i missed something?.

Regards
Amit Kumar

             reply	other threads:[~2017-03-08 15:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-08 15:09 Amit kumar [this message]
2017-03-08 23:21 ` SIMD Instruction supported in UEFI? Ken Taylor
2017-03-09  6:18   ` Amit kumar

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-list 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=BN6PR11MB1811383D1C3A59ABF17D6119DC2E0@BN6PR11MB1811.namprd11.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /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