Re: assembly functions ans c++ classes



asetofsymbols@xxxxxxxxx wrote:

All the classes uint, sint, fint use the assembly functions f0, f1, ... fn

Make sure they are declared inside an extern "C" block.

and I would like that these functions are accessible only from
uint, sint, fint classes.

Can't be done as stated.

How can I define these last 2 classes for to work better in c++?

Derive them from a common base class. Have f0, etc., be protected members of that class. Implement f0, etc., using inline assembly.


--
Thomas M. Sommers -- tms@xxxxxx -- AB2SB

.