Nasm has division operators, but are they integer division. Eg will 5/2 == 2
?
/ and // are both division operators: / is unsigned division and // is signed division. Similarly, % and %% provide unsigned and signed modulo operators respectively.
As far as I can tell from looking at the NASM source code , the operands are cast to int64_t
or uint64_t
. In other words: yes, they are integer divisions.
Disclaimer: The code I linked to isn't the official NASM repo, so you might want to cross-check this against the official NASM source code to be 100% sure.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.