Warning: This is the manual of the legacy Guile 2.2 series. You may want to read the manual of the current stable series instead.
Next: Inlined Bytevector Instructions, Previous: Inlined Atomic Instructions, Up: Instruction Set [Contents][Index]
Inlining mathematical operations has the obvious advantage of handling fixnums without function calls or allocations. The trick, of course, is knowing when the result of an operation will be a fixnum, and there might be a couple bugs here.
More instructions could be added here over time.
All of these operations place their result in their first operand, dst.
Add a to b.
Add the unsigned integer imm to the value in src.
Subtract b from a.
Subtract the unsigned integer imm from the value in src.
Multiply a and b.
Divide a by b.
Divide a by b.
Divide a by b.
Compute the modulo of a by b.
Shift a arithmetically by b bits.
Compute the bitwise and
of a and b.
Compute the bitwise inclusive or
of a with b.
Compute the bitwise exclusive or
of a with b.
Place the bitwise and
of a and the bitwise not
of
b into dst.
Next: Inlined Bytevector Instructions, Previous: Inlined Atomic Instructions, Up: Instruction Set [Contents][Index]