assembly functions ans c++ classes



we are in c++. I have some assembly function
u* f0(u*, u*);
.....
u* fn(u*, u*);
where I will say u is a struct
typedef struct{unsigned len; unsigned* n}u;

I have a class as
class uint{
public:
fucntions and operators that use f0, f1... fn
example
friend uint& operator-(const uint& a, const uint& b);
....
private:
u n; // number
unsigned lm; // memory
}

where if "uint c;" => c is a unsigneg big number

I have to define a class for signed big integer
as

class sint{
public:
fucntions and operators that use f0, f1... fn
example
friend sint& operator-(const sint& a, const sint& b);
....
private:
u n; // number
unsigned lm; // memory
int sign;
}


and a class for big float
class fint{
public:
fucntions and operators that use f0, f1... fn
example
friend sint& operator-(const sint& a, const sint& b);
....
private:
u n; // number
unsigned lm; // memory
int sign;
unsigned fdigit;
}

All the classes uint, sint, fint use the assembly functions f0, f1, ...
fn and I would like that these functions are accessible only from
uint, sint, fint classes.
How can I define these last 2 classes for to work better in c++?
Thank you

.



Relevant Pages