921e5a0eb4
From-SVN: r14840
45 lines
405 B
C
45 lines
405 B
C
void
|
|
store16 (p, a)
|
|
short *p;
|
|
short a;
|
|
{
|
|
*p = a;
|
|
}
|
|
|
|
signed int
|
|
sign_extend16 (p)
|
|
signed short *p;
|
|
{
|
|
return *p;
|
|
}
|
|
|
|
unsigned int
|
|
zero_extend16 (p)
|
|
unsigned short *p;
|
|
{
|
|
return *p;
|
|
}
|
|
|
|
void
|
|
store8 (p, a)
|
|
char *p;
|
|
char a;
|
|
{
|
|
*p = a;
|
|
}
|
|
|
|
signed int
|
|
sign_extend8 (p)
|
|
signed char *p;
|
|
{
|
|
return *p;
|
|
}
|
|
|
|
unsigned int
|
|
zero_extend8 (p)
|
|
unsigned char *p;
|
|
{
|
|
return *p;
|
|
}
|
|
|