view dmd/backend/rel.d @ 113:3482c73a991b

More cleanup for arrays
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Tue, 31 Aug 2010 23:57:32 +0100
parents 10317f0c89a5
children e28b18c23469
line wrap: on
line source

module dmd.backend.rel;

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];
}