Source

spark / parspark / src / builtins / math.pir

The default branch has multiple heads

Full commit
# $Id$

=head1

math.pir -- simple implementation of math functions

=cut

.namespace []

.sub '+'
    .param pmc a
    .param pmc b
    $P0 = add a, b
    .return ($P0)
.end

.sub '-'
    .param pmc a
    .param pmc b
    $P0 = sub a, b
    .return ($P0)
.end

.sub '*'
    .param pmc a
    .param pmc b
    $P0 = mul a, b
    .return ($P0)
.end

.sub '/'
    .param pmc a
    .param pmc b
    $P0 = div a, b
    .return ($P0)
.end


# Local Variables:
#   mode: pir
#   fill-column: 100
# End:
# vim: expandtab shiftwidth=4 ft=pir: