Fixing PowerPC intrinsics
parent
c26d2fb345
commit
4be346cd9c
|
@ -514,8 +514,8 @@ IN: cpu.ppc.intrinsics
|
||||||
! Alien intrinsics
|
! Alien intrinsics
|
||||||
: %alien-accessor ( quot -- )
|
: %alien-accessor ( quot -- )
|
||||||
"offset" operand dup %untag-fixnum
|
"offset" operand dup %untag-fixnum
|
||||||
"offset" operand dup "alien" operand ADD
|
"scratch" operand "offset" operand "alien" operand ADD
|
||||||
"value" operand "offset" operand 0 roll call ; inline
|
"value" operand "scratch" operand 0 roll call ; inline
|
||||||
|
|
||||||
: alien-integer-get-template
|
: alien-integer-get-template
|
||||||
H{
|
H{
|
||||||
|
@ -539,6 +539,7 @@ IN: cpu.ppc.intrinsics
|
||||||
{ unboxed-c-ptr "alien" c-ptr }
|
{ unboxed-c-ptr "alien" c-ptr }
|
||||||
{ f "offset" fixnum }
|
{ f "offset" fixnum }
|
||||||
} }
|
} }
|
||||||
|
{ +scratch+ { "scratch" } }
|
||||||
{ +clobber+ { "value" "offset" } }
|
{ +clobber+ { "value" "offset" } }
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue