Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
more math nqp:: ops
  • Loading branch information
moritz committed Nov 2, 2011
1 parent 1d39d41 commit d75deea
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/PAST/NQP.pir
Expand Up @@ -460,6 +460,30 @@ entry to produce the node to be returned.
maphash['ln_n'] = 'ln__Nn'
maphash['sqrt_n'] = 'sqrt__Nn'
maphash['radix'] = 'nqp_radix__Pisii'
maphash['log_n'] = 'ln__NN'

# trig opcodes
maphash['sin_n'] = 'sin__NN'
maphash['asin_n'] = 'asin__NN'
maphash['cos_n'] = 'cos__NN'
maphash['acos_n'] = 'acos__NN'
maphash['tan_n'] = 'tan__NN'
maphash['atan_n'] = 'atan__NN'
maphash['sec_n'] = 'sec__NN'
maphash['asec_n'] = 'asec__NN'
maphash['sin_n'] = 'sin__NN'
maphash['asin_n'] = 'asin__NN'
maphash['cosh_n'] = 'cosh__NN'
maphash['tanh_n'] = 'tanh__NN'
maphash['sech_n'] = 'sech__NN'

# bitwise ops
maphash['bitor_i'] = 'bor__II'
maphash['bitxor_i'] = 'bxor__II'
maphash['bitand_i'] = 'band__II'
maphash['bitneg_i'] = 'bnot__II'
maphash['bitshiftl_i'] = 'shl__III'
maphash['bitshiftr_i'] = 'shr__III'

# string opcodes
maphash['chars'] = 'length__Is'
Expand Down

0 comments on commit d75deea

Please sign in to comment.