blob: bbcb26f3ac69b35fdf96a9d090c4ea3d380c1612 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchlib.expression;
/**
* This function is an instruction to perform bitwise XOR on the result of all arguments in order.
*
* @author baldersheim
* @author <a href="mailto:simon@yahoo-inc.com">Simon Thoresen</a>
*/
public class XorFunctionNode extends BitFunctionNode {
public static final int classId = registerClass(0x4000 + 69, XorFunctionNode.class);
@Override
protected int onGetClassId() {
return classId;
}
public void onArgument(final ResultNode arg, IntegerResultNode result) {
result.xorOp(arg);
}
}
|