Merge branch 'master' of git://factorcode.org/git/factor
commit
d5b267c401
|
@ -16,6 +16,6 @@ STRUCT: complex-holder
|
||||||
|
|
||||||
[ C{ 1.0 2.0 } ] [ "h" get z>> ] unit-test
|
[ C{ 1.0 2.0 } ] [ "h" get z>> ] unit-test
|
||||||
|
|
||||||
[ number ] [ "complex-float" c-type-boxed-class ] unit-test
|
[ complex ] [ "complex-float" c-type-boxed-class ] unit-test
|
||||||
|
|
||||||
[ number ] [ "complex-double" c-type-boxed-class ] unit-test
|
[ complex ] [ "complex-double" c-type-boxed-class ] unit-test
|
||||||
|
|
|
@ -202,7 +202,7 @@ M: struct-c-type c-struct? drop t ;
|
||||||
[ type>> c-type-align ] [ max ] map-reduce ;
|
[ type>> c-type-align ] [ max ] map-reduce ;
|
||||||
PRIVATE>
|
PRIVATE>
|
||||||
|
|
||||||
M: struct byte-length class "c-type" word-prop size>> ; foldable
|
M: struct byte-length class "struct-size" word-prop ; foldable
|
||||||
|
|
||||||
! class definition
|
! class definition
|
||||||
|
|
||||||
|
@ -253,6 +253,7 @@ M: struct binary-zero?
|
||||||
|
|
||||||
c-type class typedef
|
c-type class typedef
|
||||||
class slot-specs define-accessors
|
class slot-specs define-accessors
|
||||||
|
class size "struct-size" set-word-prop
|
||||||
class dup make-struct-prototype "prototype" set-word-prop
|
class dup make-struct-prototype "prototype" set-word-prop
|
||||||
class (struct-methods) ; inline
|
class (struct-methods) ; inline
|
||||||
PRIVATE>
|
PRIVATE>
|
||||||
|
|
|
@ -338,6 +338,8 @@ M: ppc %abs-vector-reps { } ;
|
||||||
M: ppc %and-vector-reps { } ;
|
M: ppc %and-vector-reps { } ;
|
||||||
M: ppc %or-vector-reps { } ;
|
M: ppc %or-vector-reps { } ;
|
||||||
M: ppc %xor-vector-reps { } ;
|
M: ppc %xor-vector-reps { } ;
|
||||||
|
M: ppc %shl-vector-reps { } ;
|
||||||
|
M: ppc %shr-vector-reps { } ;
|
||||||
|
|
||||||
M: ppc %unbox-alien ( dst src -- )
|
M: ppc %unbox-alien ( dst src -- )
|
||||||
alien-offset LWZ ;
|
alien-offset LWZ ;
|
||||||
|
|
|
@ -198,7 +198,7 @@ IN: tools.deploy.shaker
|
||||||
] when
|
] when
|
||||||
|
|
||||||
deploy-c-types? get [
|
deploy-c-types? get [
|
||||||
{ "c-type" "struct-slots" "struct-size" "struct-align" } %
|
{ "c-type" "struct-slots" "struct-align" } %
|
||||||
] unless
|
] unless
|
||||||
] { } make ;
|
] { } make ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue