Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: xor in PL/SQL

Re: xor in PL/SQL

From: Nuno Souto <nsouto_at_optushome.com.au.nospam>
Date: Fri, 01 Mar 2002 09:59:32 GMT
Message-ID: <3c7f504a.381874@news-vip.optusnet.com.au>


Finn Nova doodled thusly:

>Xor is implemented in most CPUs. I don't understand why I should write
>code (that will take a lot longer to execute) for an operation that is
>already there as hardware.

Well, strictly speaking it's not already there. Most CPU's can do XOR between two single words (32-bits in most cases). But when it comes to XOR of strings (of bytes or otherwise) most require code as well.

Having said that, XOR in PL/SQL (and SQL) is long overdue. I lost count of the number of times I could have used it and had to dig out my Karnaugh maps to get an efficient XOR coded...

Listening, Mr Oracle? Pretty please?

Cheers
Nuno Souto
nsouto_at_optushome.com.au.nospam Received on Fri Mar 01 2002 - 03:59:32 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US