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
author: kx <kx@radix-linux.su> 2024-12-31 15:11:28 +0300 committer: kx <kx@radix-linux.su> 2024-12-31 15:11:28 +0300 commit: 26c77d917f1471cd6de6816ebaa212910d1b564a parent: 653f53cb65d10ddb8f26b0bb9c8a4a1507c093ab
Commit Summary:
man: inot(), ineg()
Diffstat:
1 file changed, 42 insertions, 0 deletions
diff --git a/man/ineg.3mpu b/man/ineg.3mpu
new file mode 100644
index 0000000..d12d48e
--- /dev/null
+++ b/man/ineg.3mpu
@@ -0,0 +1,43 @@
+.TH ineg 3  "December 27, 2024" "libmpu" "LibMPU Programmer's Manual"
+.SH NAME
+\fBineg\fP \- integer sign inversion
+.SH SYNOPSIS
+.nf
+.B #include <libmpu.h>
+.PP
+.BI "void ineg( mpu_int *" c ", mpu_int *" a ", int " nb " );
+.fi
+.SH DESCRIPTION
+The \fBineg()\fP function changes the sign of an integer (NEG) located at  the address \fBa\fP
+and places the result at the address \fBc\fP. The contents of the memory at address \fBa\fP are
+not changed, the previous memory contents at address \fBc\fP are lost. The \fBnb\fP parameter
+determines the size of the operands (in bytes), located at addresses \fBc\fP, \fBa\fP.
+.PP
+The function affects the flags \fBA\fP, \fBC\fP, \fBO\fP, \fBP\fP, \fBS\fP, \fBZ\fP, and \fBV\fP.
+.PP
+Flags \fBА\fP and \fBP\fP are set only when the size of operand \fBa\fP is one or
+two bytes (\fBnb\fP == 1 || \fBnb\fP == 2).
+.sp
+.SH SEE ALSO
+.BR iadd(3),
+.BR iadc(3),
+.BR isub(3),
+.BR isbb(3),
+.BR ishl(3),
+.BR ishr(3),
+.BR isal(3),
+.BR isar(3),
+.BR irol(3),
+.BR iror(3),
+.BR ircl(3),
+.BR ircr(3),
+.BR ishln(3),
+.BR ishrn(3),
+.BR isaln(3),
+.BR isarn(3),
+.BR iroln(3),
+.BR irorn(3),
+.BR ircln(3),
+.BR ircrn(3),
+.BR inot(3).
+