"Brent Dax" <[EMAIL PROTECTED]> wrote:
> # > The result would mean that something like:
> # > pmc->vtable->add
> #
> # > Might become:
> # > pmc->vtable->math->add
> #
> # Seems too expensive to me for the normal math stuff.
>
> Perhaps, although one dereference doesn't seem to painful to me.

Is there any reason we can't do both? Many cpu architectures have variable
length instructions (aka extension opcodes), why couldn't we have:

pmc->vtable->add
pmc->vtable->extensions.trig->cosine

This way we get both fast core ops, and lesser ops with one extra
indirection

Dave.


Reply via email to