Mercurial > projects > ddmd
view dmd/backend/rel.d @ 165:25ede4f66bda
Temporarily disabled GC (again) because phobos fails to compile with it (looks like some ObjSymbols are being falsely collected, see Library.d:666)
Getting rid of global state (i.e global and static variables) to allow running concurrent compilation
author | korDen |
---|---|
date | Thu, 30 Sep 2010 10:04:32 +0400 |
parents | e28b18c23469 |
children |
line wrap: on
line source
module dmd.backend.rel; import dmd.common; import dmd.backend.OPER; extern (C++) extern { ubyte* get_rel_not(); ubyte* get_rel_swap(); ubyte* get_rel_integral(); ubyte* get_rel_exception(); ubyte* get_rel_unord(); } ubyte rel_not(OPER op) { return get_rel_not[cast(int)(op) - RELOPMIN]; } ubyte rel_swap(OPER op) { return get_rel_swap[cast(int)(op) - RELOPMIN]; } ubyte rel_integral(OPER op){ return get_rel_integral[cast(int)(op) - RELOPMIN]; } ubyte rel_exception(OPER op) { return get_rel_exception[cast(int)(op) - RELOPMIN]; } ubyte rel_unord(OPER op) { return get_rel_unord[cast(int)(op) - RELOPMIN]; }