bit_and
lib callCapy
function bit_and(a : s8, b : s8) s8 function bit_and(a : s16, b : s16) s16 function bit_and(a : s32, b : s32) s32 function bit_and(a : s64, b : s64) s64 function bit_and(a : u8, b : u8) u8 function bit_and(a : u16, b : u16) u16 function bit_and(a : u32, b : u32) u32 function bit_and(a : u64, b : u64) u64
Description
bit_and() returns the bitwise AND of a and b.
The compiler emits a direct lib call.
Parameters
a : the first integer value
b : the second integer value
Return Values
An integer with the same type as the inputs.
Example
Capy
var value := bit_and(u8(12), u8(10)) print(value, "\n")