A computer components & hardware forum. HardwareBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » HardwareBanter forum » General Hardware & Peripherals » Homebuilt PC's
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Lack of bit field instructions in x86 instruction set because of patents ?



 
 
Thread Tools Display Modes
  #1  
Old March 6th 09, 04:57 AM posted to alt.comp.hardware.pc-homebuilt,alt.lang.asm,comp.arch,sci.electronics.design
Skybuck Flying[_2_]
external usenet poster
 
Posts: 1,459
Default Lack of bit field instructions in x86 instruction set because of patents ?

Hello,

I have a question for you:

Can the lack of bit field instructions in the x86 instruction set be
explained by patents held by other cpu designers like motorola ?

Or is there another reason why x86 instruction set is missing bit field
instructions ?

Bye,
Skybuck.


  #2  
Old March 6th 09, 06:10 AM posted to alt.comp.hardware.pc-homebuilt,alt.lang.asm,comp.arch,sci.electronics.design
JJ
external usenet poster
 
Posts: 1
Default Lack of bit field instructions in x86 instruction set becauseof patents ?

Skybuck Flying wrote:
Hello,

I have a question for you:

Can the lack of bit field instructions in the x86 instruction set be
explained by patents held by other cpu designers like motorola ?

Or is there another reason why x86 instruction set is missing bit field
instructions ?

Bye,
Skybuck.


What kind of bit field instruction(s) is lacking?
  #3  
Old March 6th 09, 07:22 AM posted to alt.comp.hardware.pc-homebuilt,alt.lang.asm,comp.arch,sci.electronics.design
Skybuck Flying[_2_]
external usenet poster
 
Posts: 1,459
Default Lack of bit field instructions in x86 instruction set because of patents ?


"JJ" wrote in message
...
Skybuck Flying wrote:
Hello,

I have a question for you:

Can the lack of bit field instructions in the x86 instruction set be
explained by patents held by other cpu designers like motorola ?

Or is there another reason why x86 instruction set is missing bit field
instructions ?

Bye,
Skybuck.


What kind of bit field instruction(s) is lacking?


See motorola processor or nec processor.

InsertBits, ExtractBits, stuff like that

Bye,
Skybuck.


  #4  
Old March 6th 09, 08:58 AM posted to alt.comp.hardware.pc-homebuilt,alt.lang.asm,comp.arch,sci.electronics.design
Robert Baer[_2_]
external usenet poster
 
Posts: 138
Default Lack of bit field instructions in x86 instruction set becauseof patents ?

Skybuck Flying wrote:
Hello,

I have a question for you:

Can the lack of bit field instructions in the x86 instruction set be
explained by patents held by other cpu designers like motorola ?

Or is there another reason why x86 instruction set is missing bit field
instructions ?

Bye,
Skybuck.


HAY! I will have you know that the cows are *NOT* missing bits in the
field!
  #5  
Old March 6th 09, 09:53 AM posted to alt.comp.hardware.pc-homebuilt,alt.lang.asm,comp.arch,sci.electronics.design
Harold Aptroot
external usenet poster
 
Posts: 2
Default Lack of bit field instructions in x86 instruction set because of patents ?

"Skybuck Flying" wrote in message
b.home.nl...
Hello,

I have a question for you:

Can the lack of bit field instructions in the x86 instruction set be
explained by patents held by other cpu designers like motorola ?

Or is there another reason why x86 instruction set is missing bit field
instructions ?

Bye,
Skybuck.


So that means that BT, BTC, BTR and BTS were not sufficient? Your bitfields
must be larger?

  #6  
Old March 6th 09, 10:15 AM posted to alt.comp.hardware.pc-homebuilt,alt.lang.asm,comp.arch,sci.electronics.design
Ken Hagan[_2_]
external usenet poster
 
Posts: 14
Default Lack of bit field instructions in x86 instruction set because ofpatents ?

On Fri, 06 Mar 2009 04:57:23 -0000, Skybuck Flying
wrote:

Can the lack of bit field instructions in the x86 instruction set be
explained by patents held by other cpu designers like motorola ?


Certainly not, since bit-fields are both obvious and have been implemented
in a variety of machines for the past 50 years or so.

Or is there another reason why x86 instruction set is missing bit field
instructions ?


They aren't worth it. On the few occasions when you need the facility, a
mask and shift takes just two more instructions. (For comparisons or
arithmetic on similar bit-fields, you can even omit the shift step.)
  #7  
Old March 6th 09, 04:04 PM posted to alt.comp.hardware.pc-homebuilt,alt.lang.asm,comp.arch,sci.electronics.design
[email protected]
external usenet poster
 
Posts: 3
Default Lack of bit field instructions in x86 instruction set because ofpatents ?

On Mar 6, 2:22*am, "Skybuck Flying" wrote:
"JJ" wrote in message

...

Skybuck Flying wrote:
Hello,


I have a question for you:


Can the lack of bit field instructions in the x86 instruction set be
explained by patents held by other cpu designers like motorola ?


Or is there another reason why x86 instruction set is missing bit field
instructions ?


Bye,
* Skybuck.


What kind of bit field instruction(s) is lacking?


See motorola processor or nec processor.

InsertBits, ExtractBits, stuff like that

Bye,
* Skybuck.




Could you please explain why, in your opinion, instructions such as
the following 8 bit instructions as well as the respective 16 and 32
bit do not fit the bill?


OR AL,bbbbbbbbB
AND AL,bbbbbbbbB
XOR AL,bbbbbbbbB
TEST AL,bbbbbbbbB

where "b" represents a zero or one bit.


  #8  
Old March 6th 09, 05:37 PM posted to alt.comp.hardware.pc-homebuilt,alt.lang.asm,comp.arch,sci.electronics.design
MitchAlsup
external usenet poster
 
Posts: 38
Default Lack of bit field instructions in x86 instruction set because ofpatents ?

On Mar 5, 10:57*pm, "Skybuck Flying" wrote:
Can the lack of bit field instructions in the x86 instruction set be
explained by patents held by other cpu designers like motorola ?


No

Or is there another reason why x86 instruction set is missing bit field
instructions ?


Barcelona (AMD) introduced 5 (or was it 7) bit manipulation
instructions.

Mitch
  #9  
Old March 6th 09, 09:27 PM posted to alt.comp.hardware.pc-homebuilt,alt.lang.asm,comp.arch,sci.electronics.design
Skybuck Flying[_2_]
external usenet poster
 
Posts: 1,459
Default Lack of bit field instructions in x86 instruction set because of patents ?

Here is an example of what a motorola processor presumeably does with one
instruction:

function KeepLowBits( Value : longword; Bits : longword ) : longword;
inline;
begin
Result := Value; // 32 bits case.
if Bits = 31 then
begin
Result := Result and not (4294967295 shl Bits); // shl instruction limited
to 31.
end;
end;

function ShiftLeft( Left : longword; Right : Longword; Shift : longword ) :
longword;
asm
shld eax, edx, cl
end;

procedure WriteLongwordBits( Value : longword; Bits : longword; DestAddress
: pointer; DestBitIndex : longword );
var
vContent : longword;
vMask : longword;
vShift : longword;

vFirstContent : longword;
vSecondContent : longword;

vFirstMask : longword;
vSecondMask : longword;

vFirstAddress : longword;
vSecondAddress : longword;
begin
vContent := KeepLowBits( Value, Bits );
vMask := KeepLowBits( 4294967295, Bits );

vShift := DestBitIndex and 7;

vFirstContent := ShiftLeft( vContent, 0, vShift );
vSecondContent := ShiftLeft( 0, vContent, vShift );

vFirstMask := ShiftLeft( vMask, 0, vShift );
vSecondMask := ShiftLeft( 0, vMask, vShift );

vFirstAddress := longword(DestAddress) + (DestBitIndex shr 3); // div 32
vSecondAddress := vFirstAddress + 4;

Plongword(vFirstAddress)^ := (Plongword(vFirstAddress)^ and not vFirstMask)
or vFirstContent;
Plongword(vSecondAddress)^ := (Plongword(vSecondAddress)^ and not
vSecondMask) or vSecondContent;
end;

Bye,
Skybuck.


  #10  
Old March 6th 09, 09:39 PM posted to alt.comp.hardware.pc-homebuilt,alt.lang.asm,comp.arch,sci.electronics.design
Skybuck Flying[_2_]
external usenet poster
 
Posts: 1,459
Default Lack of bit field instructions in x86 instruction set because of patents ?

Can the lack of bit field instructions in the x86 instruction set be
explained by patents held by other cpu designers like motorola ?


Certainly not, since bit-fields are both obvious and have been implemented
in a variety of machines for the past 50 years or so.


That doesn't stop people from filing patents on bit field instructions.

Maybe intel/amd is scared of law suits ?


Or is there another reason why x86 instruction set is missing bit field
instructions ?


They aren't worth it. On the few occasions when you need the facility, a
mask and shift takes just two more instructions. (For comparisons or
arithmetic on similar bit-fields, you can even omit the shift step.)


This will work up to a certain point... mostly when it's possible to
shift-or bits into single memory cell or registers.

As soon as multiple memory cells have to be overwritten things can get quite
nasty... especially if bits need to be preserved...

So I don't agree with you.

A simple example where "extract bits" instruction could be usefull is for
huffman decompression... where huffman codes can have a number of variable
bit fields stuck next to each other.

Extracting those bit fields (huffman codes) requires multiple x86
instructions, which slows down the huffman decoder.

A single instruction to do that would be preferred and would
probably/possibly give higher decoding speed and this is just one but an
important example !

Bye,
Skybuck =D


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SONY Patents for PlayStation4 ~ PS4 ?? Christian Winter Nvidia Videocards 1 April 29th 05 07:51 PM
Creative Pressures id Software With Patents Brent Colflesh Creative Sound Blaster Cards 0 July 28th 04 07:27 PM
Mosaid - (more) DRAM patents George Macdonald General 8 November 21st 03 04:23 AM
Intel patents associated with key products? ian Intel 2 June 24th 03 03:56 AM


All times are GMT +1. The time now is 05:09 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 HardwareBanter.
The comments are property of their posters.