Yes, do this if your code is faster and / or smaller .
asm , . "" , .
, , , . , , .
my_func:
...
setc al
...
something that sets ZF
ret
, , , asm 2018 , asm , - . ( asm, , .)
, asm / , , , .
: x86-64 OS X CF / , rax
. Linux, RAX -4095 -1, x86-64 System V ABI/call.
DOS int 0x21
PC BIOS int 0x10
. , ( cmp) .