Sigrid Solveig Haflínudóttirpc(1) port67e8be84 years agoHistory
34 lines · 399 B · C
RawDownload
#include "os.h"#include <mp.h>#include "dat.h" voidmptober(mpint *b, uchar *p, int n){	int i, j, m;	mpdigit x; 	memset(p, 0, n); 	p += n;	m = b->top*Dbytes;	if(m < n)		n = m; 	i = 0;	while(n >= Dbytes){		n -= Dbytes;		x = b->p[i++];		for(j = 0; j < Dbytes; j++){			*--p = x;			x >>= 8;		}	}	if(n > 0){		x = b->p[i];		for(j = 0; j < n; j++){			*--p = x;			x >>= 8;		}	}}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t