rscaf25716421 years agoHistory
15 lines · 247 B · C
RawDownload
#include "os.h"#include <mp.h>#include "dat.h" // remainder = b mod m//// knuth, vol 2, pp 398-400 voidmpmod(mpint *b, mpint *m, mpint *remainder){	mpdiv(b, m, nil, remainder);	if(remainder->sign < 0)		mpadd(m, remainder, remainder);}

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