Use inline function instead of define D_EQUAL