const struct altivec_builtin_types altivec_overloaded_builtins[] = {
[big fat table constructed using many macros]
Now, it bothers me that every time we do the overloaded builtins, we
essentially have to scan the table in a linear fashion. I'm
thinking that we
may want to move these tables into separate arrays, one for each
overloaded
function, with a null marker at the end. This is more of a radical
reworking.
If I did this, I likely would keep the big table as a last resort,
and add the
arrays, one at a time.
Any thoughts?
You could construct the table at runtime, using helper functions for
the regular groups. It's easy to make a more efficient data structure
as well then.
Segher