]> gitweb.factorcode.org Git - factor.git/blob - basis/alien/complex/complex.factor
Delete empty unit tests files, remove 1- and 1+, reorder IN: lines in a lot of places...
[factor.git] / basis / alien / complex / complex.factor
1 ! Copyright (C) 2009 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: alien.c-types alien.structs alien.complex.functor accessors
4 sequences kernel ;
5 IN: alien.complex
6
7 <<
8 { "float" "double" } [ dup "complex-" prepend define-complex-type ] each
9
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
13 >>