Subversion Repositories planix.SVN

Rev

Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 33
Line 8... Line 8...
8
 */
8
 */
9
 
9
 
10
mpint*
10
mpint*
11
uitomp(uint i, mpint *b)
11
uitomp(uint i, mpint *b)
12
{
12
{
13
	if(b == nil)
13
	if(b == nil){
14
		b = mpnew(0);
14
		b = mpnew(0);
15
	mpassign(mpzero, b);
15
		setmalloctag(b, getcallerpc(&i));
16
	if(i != 0)
16
	}
17
		b->top = 1;
-
 
18
	*b->p = i;
17
	*b->p = i;
-
 
18
	b->top = 1;
-
 
19
	b->sign = 1;
19
	return b;
20
	return mpnorm(b);
20
}
21
}
21
 
22
 
22
uint
23
uint
23
mptoui(mpint *b)
24
mptoui(mpint *b)
24
{
25
{