Table of Contents

Method Xor

Namespace
KZDev.PerfUtils
Assembly
KZDev.PerfUtils.dll

Xor(ref int, int)

A thread-safe exclusive OR operation on a variable value.

public static int Xor(ref int location1, int value)

Parameters

location1 int

A variable containing the first value to perform the XOR operation on. The result is stored in this variable.

value int

The value to be combined with the value in location1

Returns

int

The original value in location1

Xor(ref uint, uint)

A thread-safe exclusive OR operation on a variable value.

public static uint Xor(ref uint location1, uint value)

Parameters

location1 uint

A variable containing the first value to perform the XOR operation on. The result is stored in this variable.

value uint

The value to be combined with the value in location1

Returns

uint

The original value in location1

Xor(ref long, long)

A thread-safe exclusive OR operation on a variable value.

public static long Xor(ref long location1, long value)

Parameters

location1 long

A variable containing the first value to perform the XOR operation on. The result is stored in this variable.

value long

The value to be combined with the value in location1

Returns

long

The original value in location1

Xor(ref ulong, ulong)

A thread-safe exclusive OR operation on a variable value.

public static ulong Xor(ref ulong location1, ulong value)

Parameters

location1 ulong

A variable containing the first value to perform the XOR operation on. The result is stored in this variable.

value ulong

The value to be combined with the value in location1

Returns

ulong

The original value in location1