Math Processor Unit Library

libmpu – library of arithmetic functions for integer, real, and complex numbers of increased digit capacity

16 Commits   0 Branches   2 Tags
26c77d91 (kx 2024-12-31 15:11:28 +0300  1) .TH ineg 3  "December 27, 2024" "libmpu" "LibMPU Programmer's Manual"
26c77d91 (kx 2024-12-31 15:11:28 +0300  2) .SH NAME
26c77d91 (kx 2024-12-31 15:11:28 +0300  3) \fBineg\fP \- integer sign inversion
26c77d91 (kx 2024-12-31 15:11:28 +0300  4) .SH SYNOPSIS
26c77d91 (kx 2024-12-31 15:11:28 +0300  5) .nf
26c77d91 (kx 2024-12-31 15:11:28 +0300  6) .B #include <libmpu.h>
26c77d91 (kx 2024-12-31 15:11:28 +0300  7) .PP
26c77d91 (kx 2024-12-31 15:11:28 +0300  8) .BI "void ineg( mpu_int *" c ", mpu_int *" a ", int " nb " );
26c77d91 (kx 2024-12-31 15:11:28 +0300  9) .fi
26c77d91 (kx 2024-12-31 15:11:28 +0300 10) .SH DESCRIPTION
26c77d91 (kx 2024-12-31 15:11:28 +0300 11) The \fBineg()\fP function changes the sign of an integer (NEG) located at  the address \fBa\fP
26c77d91 (kx 2024-12-31 15:11:28 +0300 12) and places the result at the address \fBc\fP. The contents of the memory at address \fBa\fP are
26c77d91 (kx 2024-12-31 15:11:28 +0300 13) not changed, the previous memory contents at address \fBc\fP are lost. The \fBnb\fP parameter
26c77d91 (kx 2024-12-31 15:11:28 +0300 14) determines the size of the operands (in bytes), located at addresses \fBc\fP, \fBa\fP.
26c77d91 (kx 2024-12-31 15:11:28 +0300 15) .PP
26c77d91 (kx 2024-12-31 15:11:28 +0300 16) The function affects the flags \fBA\fP, \fBC\fP, \fBO\fP, \fBP\fP, \fBS\fP, \fBZ\fP, and \fBV\fP.
26c77d91 (kx 2024-12-31 15:11:28 +0300 17) .PP
26c77d91 (kx 2024-12-31 15:11:28 +0300 18) Flags \fBА\fP and \fBP\fP are set only when the size of operand \fBa\fP is one or
26c77d91 (kx 2024-12-31 15:11:28 +0300 19) two bytes (\fBnb\fP == 1 || \fBnb\fP == 2).
26c77d91 (kx 2024-12-31 15:11:28 +0300 20) .sp
26c77d91 (kx 2024-12-31 15:11:28 +0300 21) .SH SEE ALSO
26c77d91 (kx 2024-12-31 15:11:28 +0300 22) .BR iadd(3),
26c77d91 (kx 2024-12-31 15:11:28 +0300 23) .BR isub(3),
41c271da (kx 2025-01-05 15:42:39 +0300 24) .BR iadc(3),
26c77d91 (kx 2024-12-31 15:11:28 +0300 25) .BR isbb(3),
26c77d91 (kx 2024-12-31 15:11:28 +0300 26) .BR ishl(3),
26c77d91 (kx 2024-12-31 15:11:28 +0300 27) .BR ishr(3),
26c77d91 (kx 2024-12-31 15:11:28 +0300 28) .BR isal(3),
26c77d91 (kx 2024-12-31 15:11:28 +0300 29) .BR isar(3),
26c77d91 (kx 2024-12-31 15:11:28 +0300 30) .BR irol(3),
26c77d91 (kx 2024-12-31 15:11:28 +0300 31) .BR iror(3),
26c77d91 (kx 2024-12-31 15:11:28 +0300 32) .BR ircl(3),
26c77d91 (kx 2024-12-31 15:11:28 +0300 33) .BR ircr(3),
26c77d91 (kx 2024-12-31 15:11:28 +0300 34) .BR ishln(3),
26c77d91 (kx 2024-12-31 15:11:28 +0300 35) .BR ishrn(3),
26c77d91 (kx 2024-12-31 15:11:28 +0300 36) .BR isaln(3),
26c77d91 (kx 2024-12-31 15:11:28 +0300 37) .BR isarn(3),
26c77d91 (kx 2024-12-31 15:11:28 +0300 38) .BR iroln(3),
26c77d91 (kx 2024-12-31 15:11:28 +0300 39) .BR irorn(3),
26c77d91 (kx 2024-12-31 15:11:28 +0300 40) .BR ircln(3),
26c77d91 (kx 2024-12-31 15:11:28 +0300 41) .BR ircrn(3),
41c271da (kx 2025-01-05 15:42:39 +0300 42) .BR inot(3),
41c271da (kx 2025-01-05 15:42:39 +0300 43) .BR iand(3),
41c271da (kx 2025-01-05 15:42:39 +0300 44) .BR itest(3),
41c271da (kx 2025-01-05 15:42:39 +0300 45) .BR icmp(3),
41c271da (kx 2025-01-05 15:42:39 +0300 46) .BR ior(3),
41c271da (kx 2025-01-05 15:42:39 +0300 47) .BR ixor(3),
41c271da (kx 2025-01-05 15:42:39 +0300 48) .BR iinc(3),
41c271da (kx 2025-01-05 15:42:39 +0300 49) .BR idec(3),
41c271da (kx 2025-01-05 15:42:39 +0300 50) .BR ixchg(3),
41c271da (kx 2025-01-05 15:42:39 +0300 51) .BR icpy(3),
41c271da (kx 2025-01-05 15:42:39 +0300 52) .BR icvt(3),
41c271da (kx 2025-01-05 15:42:39 +0300 53) .BR imul(3),
41c271da (kx 2025-01-05 15:42:39 +0300 54) .BR ismul(3),
41c271da (kx 2025-01-05 15:42:39 +0300 55) .BR idiv(3),
41c271da (kx 2025-01-05 15:42:39 +0300 56) .BR isdiv(3),
41c271da (kx 2025-01-05 15:42:39 +0300 57) .BR iatoi(3),
41c271da (kx 2025-01-05 15:42:39 +0300 58) .BR iatoui(3),
41c271da (kx 2025-01-05 15:42:39 +0300 59) .BR iitoa(3),
41c271da (kx 2025-01-05 15:42:39 +0300 60) .BR iuitoa(3).