Prev: x86 simulator (Was Re: RISC load-store verses x86 Add from memory.)
Next: A naive conjecture about computer architecture and artificial intelligence
From: Rudy Velthuis on 28 Jun 2010 21:16 Seebs wrote: > On 2010-05-27, Skybuck Flying <IntoTheFuture(a)hotmail.com> wrote: > > Question is what happens when "shl 32" is done. > > sigh > > > According to the intel manual the result would be undefined ?!? > > Yes. > > > Does that mean the result could be garbage ??? > > Tell you what. Try posting this coherently with a reasonable amount > of punctuation, and I'll totally point out that the word "undefined" > is completely unambiguous, since apparently this is not obvious > enough. > > -s Fortunately, I can't se SkyBuck's posts anymore, but I see he doesn't even understand what happens after a shl 32? LOL! In his case, any result is garbage, regardless the processor used. <g> -- Rudy Velthuis http://rvelthuis.de "Nothing is wrong with California that a rise in the ocean level wouldn't cure." -- Ross MacDonald (1915-1983)
From: Rudy Velthuis on 28 Jun 2010 21:22 Seebs wrote: > On 2010-05-27, Skybuck Flying <IntoTheFuture(a)hotmail.com> wrote: > > The lookup table right now seems to be the best solution for 32 bit > > support. > > I think at this point I'm plonking you. You're extremely verbose > without saying much of anything, you overuse exclamation marks, > you're overly exciteable, and apparently you don't have any clue how > to frame a problem, think about what you need, and develop a plan for > approaching it. Maybe you should consider decaf. He's been like that as long as I know him. He has lots of mental problems, and some are that he doesn't read nor listen to advice, has a lot of fantastic ideas that usually appear to be complete rubbish (which he woul�d know if he had read up on the subject). He also thinks he is God's gift to humanity and that he actually has an immensely sharp brain, and can get pretty rude if people don't agree. <g> FWIW, I can't read his posts, so I don't exactly know what he posted. Apparently he is clueless about shifts. <g> -- Rudy Velthuis http://rvelthuis.de "A time will come when a politician who has willfully made war and promoted international dissension will be ... surer of the noose than a private homicide." -- H. G. Wells
From: Rudy Velthuis on 28 Jun 2010 21:23 James Harris wrote: > On 27 May, 18:10, Seebs <usenet-nos...(a)seebs.net> wrote: > > On 2010-05-27, Keith Thompson <ks...(a)mib.org> wrote: > > > > > A quick look at Skybuck Flying's posting history in other > > > newsgroups might be illuminating. > > > > I have enough information to convince me that he's a waste of > > valuable electrons. �I think he's probably purely trolling, but > > it's the kind of trolling where genuine stupidity shines through. > > I'm not going to try and defend him but having seen his posts for some > time I don't think he's trolling. He usually thinks he is extremely clever and wants to show it. <g> I suspect some mental problems too. -- Rudy Velthuis http://rvelthuis.de "It may be that our role on this planet is not to worship God, but to create him." -- Arthur C. Clarke
From: Rudy Velthuis on 28 Jun 2010 21:27 James Harris wrote: > The rest is mainly > communication style. Then you don't really know his posting history on Usenet. He doesn't listen to advice, he doesn't read up on any basics, he is generally completely clueless. He just picks up some crumbs of information here and there, and he simply thinks he can find out everything else by experimenting and by using his immensely (in his view) great mind. -- Rudy Velthuis http://rvelthuis.de "The best way to predict the future is to invent it." -- Alan Kay
From: Rudy Velthuis on 29 Jun 2010 16:50
Andy 'Krazy' Glew wrote: > On 5/25/2010 6:09 AM, Skybuck Flying wrote: > > > 1. (Skybuck) Mask := not word(65535 shl BitCount); // not 1111000 = > > 0000111 > > Many instruction sets do not handle constants greater than some size > well. Above you have a 16 bit constant. > > Even though x86 handles most constants in the instruction set, larger > constants cost instruction bytes. > > > > 2. (Michael Vinther) Mask := (1 shl BitCount)-1; // 10000-1 = > > 09999 = 01111 ;) :) > > This is what I would usually recommend. Although, on some machines, > shifts of any form are slow. Any decent compiler will turn "(1 shl BitCount) - 1" into a constant (immediate value for the assembler freaks), if BitCount is constant. And if it isn't, I still don't see a better way. -- Rudy Velthuis http://rvelthuis.de "If computers get too powerful, we can organize them into a committee -- that will do them in." -- Bradley's Bromide. |