Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Borland Delphi > Re: Skybuck pre...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 10 of 12 Topic 3728 of 3940
Post > Topic >>

Re: Skybuck presents FastGetBit ( Value, BitPosition ) (latency 3)

by Wojciech =?ISO-8859-2?Q?Mu=B3a?= <wojciech_mula@[EMAIL PROTECTED] May 4, 2008 at 09:08 PM

"Skybuck Flying" <BloodyShame@[EMAIL PROTECTED]
> wrote:

> > You can replace mov/adc with single setc eax -- this instruction
> > has 1 cycle latency on modern CPUs.
> 
> No, there is a little problem with that solution.
> 
> setxx only sets a single byte.

Sorry, I was sure that setxx accept 32-bit registers.
However if BitPostion lie in range 0..31 or even 0..255
you can use setc instruction.

w.
 




 12 Posts in Topic:
Skybuck presents FastGetBit ( Value, BitPosition ) (latency 3)
"Skybuck Flying"  2008-05-04 18:56:13 
Re: Skybuck presents FastGetBit ( Value, BitPosition ) (latency
Wojciech =?ISO-8859-2?Q?M  2008-05-04 19:09:13 
Re: Skybuck presents FastGetBit ( Value, BitPosition ) (latency
"Skybuck Flying"  2008-05-04 19:23:47 
Re: Skybuck presents FastGetBit ( Value, BitPosition ) (latency
Rob Kennedy <me3@[EMAI  2008-05-04 16:16:54 
Re: Skybuck presents FastGetBit ( Value, BitPosition ) (latency
"Skybuck Flying"  2008-05-05 00:31:41 
Re: Skybuck presents FastGetBit ( Value, BitPosition ) (latency
"Skybuck Flying"  2008-05-05 00:56:14 
Re: Skybuck presents FastGetBit ( Value, BitPosition ) (latency
Robert Redelmeier <red  2008-05-04 18:42:53 
Re: Skybuck presents FastGetBit ( Value, BitPosition ) (latency
"Skybuck Flying"  2008-05-04 22:30:28 
Re: Skybuck presents FastGetBit ( Value, BitPosition ) (latency
"Wolfgang Kern"  2008-05-05 11:00:20 
Re: Skybuck presents FastGetBit ( Value, BitPosition ) (latency
Wojciech =?ISO-8859-2?Q?M  2008-05-04 21:08:09 
Re: Skybuck presents FastGetBit ( Value, BitPosition ) (latency
"Skybuck Flying"  2008-05-04 22:09:12 
Re: Skybuck presents FastGetBit ( Value, BitPosition ) (latency
"Skybuck Flying"  2008-05-04 22:32:55 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 6 15:27:06 CDT 2008.