On Sun, Feb 06, 2011 at 09:40:41AM -0800, Richard Henderson wrote:
> On 02/06/2011 08:12 AM, Jack Howarth wrote:
> > what is the correct value is use for the enum entry of the ___divdc3
> > symbol? Is it END_BUILTINS-1 or END_BUILTINS-2? Thanks in advance for
> > any clarifications.
>
> See build_common_builtin_modes:
>
> dcode = ((enum built_in_function)
> (BUILT_IN_COMPLEX_DIV_MIN + mode - MIN_MODE_COMPLEX_FLOAT));
So for divc3 in libgcc2.c...
#elif defined(L_muldc3) || defined(L_divdc3)
# define MTYPE DFtype
# define CTYPE DCtype
# define MODE dc
I assume that BUILT_IN_COMPLEX_DIV_MIN and MIN_MODE_COMPLEX_FLOAT will be
available to me in darwin.c but where is dc defined? I am looking to be
able to execute...
tree fn = built_in_decls[BUILT_IN_COMPLEX_DIV_MIN + sc -
MIN_MODE_COMPLEX_FLOAT];
or is MODE not the same as mode?
Jack
>
>
> r~