1 ! Copyright (C) 2009 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: alien.c-types alien.complex.functor accessors
8 { "float" "double" } [ dup "complex-" prepend define-complex-type ] each
10 ! This overrides the fact that small structures are never returned
11 ! in registers on NetBSD, Linux and Solaris running on 32-bit x86.
12 "complex-float" c-type t >>return-in-registers? drop