Add CRYPT primop range and ECVERIVY primp

This commit is contained in:
Hans Svensson 2019-01-21 11:05:35 +01:00
parent 99bf097759
commit 0585e7d0f6
2 changed files with 5 additions and 2 deletions

View File

@ -179,3 +179,5 @@
-define(PRIM_CALL_MAP_SIZE, 304). -define(PRIM_CALL_MAP_SIZE, 304).
-define(PRIM_CALL_MAP_TOLIST, 305). -define(PRIM_CALL_MAP_TOLIST, 305).
-define(PRIM_CALL_IN_CRYPTO_RANGE(__TTYPE__), (((__TTYPE__) > 399) andalso ((__TTYPE__) < 500))).
-define(PRIM_CALL_CRYPTO_ECVERIFY, 400).

View File

@ -15,6 +15,7 @@
-include("aeb_opcodes.hrl"). -include("aeb_opcodes.hrl").
is_local_primop_op(Op) when ?PRIM_CALL_IN_MAP_RANGE(Op) -> true; is_local_primop_op(Op) when ?PRIM_CALL_IN_MAP_RANGE(Op) -> true;
is_local_primop_op(Op) when ?PRIM_CALL_IN_CRYPTO_RANGE(Op) -> true;
is_local_primop_op(Op) when is_integer(Op) -> false. is_local_primop_op(Op) when is_integer(Op) -> false.
op_needs_type_check(Op) -> op_needs_type_check(Op) ->