Home Search Forums Register Forum Rules Man Pages FAQ Members Search Today's Posts Mark Forums Read

# Unix Version 7 - man page for mp (v7 section 3X)

Linux & Unix Commands - Search Man Pages
 Man Page or Keyword Search: man All Sections 1 - General Commands 1m - System Admin 2 - System Calls 3 - Subroutines 4 - Special Files 5 - File Formats 6 - Games 7 - Macros and Conventions 8 - Maintenance Commands 9 - Kernel Interface N - New Commands Select Man Page Set:       Linux 2.6 RedHat 9 (Linux i386) Debian 7.7 SuSE 11.3 CentOS 7.0 SunOS 5.10 OpenSolaris 2009.06 BSD 2.11 FreeBSD 11.0 NetBSD 6.1.5 OSX 10.6.2 OpenDarwin 7.2.1 ULTRIX 4.2 PHP 5.6 Minix 2.0 Plan 9 Unix Version 7 OSF1 5.1 (alpha) POSIX 1003.1 X11R7.4 XFree86 4.7.0 all unix.com man page sets apropos Keyword Search (sections above)

 ```MP(3X) MP(3X) NAME itom, madd, msub, mult, mdiv, min, mout, pow, gcd, rpow - multiple precision integer arithmetic SYNOPSIS typedef struct { int len; short *val; } mint; madd(a, b, c) msub(a, b, c) mult(a, b, c) mdiv(a, b, q, r) min(a) mout(a) pow(a, b, m, c) gcd(a, b, c) rpow(a, b, c) msqrt(a, b, r) mint *a, *b, *c, *m, *q, *r; sdiv(a, n, q, r) mint *a, *q; short *r; mint *itom(n) DESCRIPTION These routines perform arithmetic on integers of arbitrary length. The integers are stored using the defined type mint. Pointers to a mint should be initialized using the function itom, which sets the initial value to n. After that space is managed automati- cally by the routines. madd, msub, mult, assign to their third arguments the sum, difference, and product, respectively, of their first two arguments. mdiv assigns the quotient and remainder, respectively, to its third and fourth arguments. sdiv is like mdiv except that the divi- sor is an ordinary integer. msqrt produces the square root and remainder of its first argument. rpow calculates a raised to the power b, while pow calculates this reduced mod- ulo m. min andmout do decimal input and output. The functions are obtained with the loader option -lmp. DIAGNOSTICS Illegal operations and running out of memory produce messages and core images. MP(3X)```
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 11:37 PM.