xdmp:and64( $x as xs:unsignedLong, $y as xs:unsignedLong ) as xs:unsignedLong
AND two 64-bit integer values.
xdmp:and64(255, 2) => 2