3 include __DIR__
."/_include.php";
15 <?php
foreach ($ops as $op_name => $op) : ?
>
17 static inline token_t psi_calc_bin_
<?
=$op_name?
>(token_t t1
, impl_val
*v1
, token_t t2
, impl_val
*v2
, impl_val
*res
)
21 switch (t1
) {<?php
/*nobr*/ ?
>
22 <?php
foreach ($types as $t1 => $v1) : ?
>
23 <?php
if (t_is_special($t1)) :?
>
29 i1
.u64
= v1
-><?
=$v1?
>;
31 <?php
if (t_is_special($t1)) : ?
>
42 switch (t2
) {<?php
/*nobr*/ ?
>
43 <?php
foreach ($types as $t2 => $v2) : ?
>
44 <?php
if (t_is_special($t2)) :?
>
50 i2
.u64
= v2
-><?
=$v2?
>;
51 break;<?php
/*nobr*/ ?
>
53 <?php
if (t_is_special($t2)) : ?
>
63 res
->u64
= i1
.u64
<?
=$op?
> i2
.u64
;
68 static inline token_t
psi_calc_bin_not(token_t t1
, impl_val
*v1
, token_t t2
, impl_val
*v2
, impl_val
*res
)
75 switch (t1
) {<?php
/*nobr*/ ?
>
76 <?php
foreach ($types as $t1 => $v1) : ?
>
77 <?php
if (t_is_special($t1)) :?
>
83 i1
.u64
= v1
-><?
=$v1?
>;
85 <?php
if (t_is_special($t1)) : ?
>