1 <?xml version="1.0" encoding="UTF-8"?>
4 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
5 * Copyright (C) 2011 - DIGITEO - Michael Baudin
7 * Copyright (C) 2012 - 2016 - Scilab Enterprises
9 * This file is hereby licensed under the terms of the GNU GPL v2.0,
10 * pursuant to article 5.3.4 of the CeCILL v.2.1.
11 * This file was originally licensed under the terms of the CeCILL v2.1,
12 * and continues to be available under such terms.
13 * For more information, see the COPYING file which you should have received
14 * along with this program.
17 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="bitcmp" xml:lang="ja">
19 <refname>bitcmp</refname>
20 <refpurpose>ビット毎の補数</refpurpose>
36 <literal>m</literal>行<literal>n</literal>列の行列(double)または
37 <literal>m1</literal> x <literal>m2</literal>
38 x ... x <literal>mm</literal> ハイパー行列(double)
40 <literal>uint8</literal>, <literal>uint16</literal> または
41 <literal>uint32</literal>)の
42 <literal>m</literal>行<literal>n</literal>列行列.
51 <literal>m</literal>行<literal>n</literal>列の行列(double)または
52 <literal>m1</literal> x <literal>m2</literal>
53 x ... x <literal>mm</literal> ハイパー行列(double)
55 <literal>uint8</literal>, <literal>uint16</literal> または
56 <literal>uint32</literal>)の
57 <literal>m</literal>行<literal>n</literal>列行列.
58 入力<literal>n</literal>は 1,2,...,<literal>bitmax</literal>
60 ただし,<literal>bitmax</literal> は <varname>x</varname>
62 <varname>bitnum</varname>は,正の整数値である必要があります.
63 <varname>bitnum</varname>のデフォルト値は
64 <literal>bitmax</literal>です.
72 <literal>m</literal>行<literal>n</literal>列の行列(double)または
73 <literal>m1</literal> x <literal>m2</literal>
74 x ... x <literal>mm</literal> ハイパー行列(double)
76 <literal>m</literal>行<literal>n</literal>列行列.
85 符合なし整数<literal>x</literal>を指定すると, この関数は
86 <literal>x</literal>の2進数形式の補数を値とする
87 符合なし整数<varname>y</varname>を返します.
90 整数 <varname>bitnum</varname> は最大ビット数を指定します.
93 <literal>x</literal>の2進数表現のビット数が<literal>bitmax</literal>
95 よりも小さい場合, <literal>bitmax</literal>ビット
96 (8, 16 または 32)の補数とするために
101 <varname>x</varname> は符号無し整数の行列とする必要があります.
106 <programlisting role="example"><![CDATA[
108 // We insert zeros in the begining to get a 8-bit number:
110 // The 8-bits complement is then (11110010)_2
114 // The input argument can be an unsigned int