::std::ops::

Function reduce_xor

pub extern fn reduce_xor<#uint N>(x: [bool; N]) -> bool
Expand

Reduces an array of bool into a single value by performing a XOR operation on them.

This operation is equivalent to the Verilog OR reduction operator ^.

Examples

assert [true, true, true].reduce_xor() == true ^^ true ^^ true;
assert [false, false, false].reduce_xor() == false ^^ false ^^ false;
assert [false, true, true].reduce_xor() == false ^^ true ^^ true;