assembly functions ans c++ classes
- From: asetofsymbols@xxxxxxxxx
- Date: 28 Jun 2005 03:12:31 -0700
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
.
- Follow-Ups:
- Re: assembly functions ans c++ classes
- From: asetofsymbols
- Re: assembly functions ans c++ classes
- From: asetofsymbols
- Re: assembly functions ans c++ classes
- From: asetofsymbols
- Re: assembly functions ans c++ classes
- From: asetofsymbols
- Re: assembly functions ans c++ classes
- From: T.M. Sommers
- Re: assembly functions ans c++ classes
- Prev by Date: Re: A challenge for RosAsm
- Next by Date: Re: Blueflops ate my X
- Previous by thread: RosAsm macro example from its author
- Next by thread: Re: assembly functions ans c++ classes
- Index(es):
Relevant Pages
|