// SPDX-License-Identifier: MIT
pragma solidity =0.8.26;
contract ModMethod {
// Gas cost: 326
function isEvenMod(uint256 num) public pure returns (bool x) {
x = (num % 2) == 0;
}
// Gas cost: 272
function isEvenAnd(uint256 num) public pure returns (bool x) {
x = (num & 1) == 0;
}
}