• Welcome to Valhalla Legends Archive.
 

Multiple bitwise operations

Started by topaz, October 19, 2006, 06:02 PM

Previous topic - Next topic

topaz

Is there a way to use XOR, but operate on n values?
RLY...?

MyndFyre


result := 0
for i = 0 to n
  result ^= values[i]

Pseudocode.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Grok

Quote from: MyndFyre[vL] on October 19, 2006, 06:11 PM

result := 0
for i = 0 to n
  result ^= values[i]

Pseudocode.

That would operate on n+1 values.

Pseudojab.  =p