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, $B%G!<%?9=B$$NI=8=J}K!(B, $B$5$^$6$^(B
$B$J%"%k%4%j%:%`$N8zN($N8~>e(B, $B$"$k$$$O%a%b%j4IM}$J$I$r?<$/9MN8$9$kI,MW$,(B
$B$"$k(B.

$BK\9V$G$O(B, 
\begin{itemize}
\item $B@0?t(B, $BB?9`<0$NI=8=$*$h$S;MB'1i;;%"%k%4%j%:%`(B
\item $BB?9`<0(B GCD, $B=*7k<0(B, $BCf9q>jM>DjM}(B
\item $BB?9`<0$N0x?tJ,2r(B, $BM-M}4X?t$NITDj@QJ,(B
\item $B%0%l%V%J4pDl(B, $BBe?tJ}Dx<0$N5a2r(B, $B%$%G%"%k$N=`AGJ,2r(B
\end{itemize}
$B$K$D$$$F=R$Y$k(B. $B$3$3$G=R$Y$i$l$k%"%k%4%j%:%`$N$[$H$s$I$O(B, $BI.<T$i$,3+H/(B, 
$BG[I[Cf$N7W;;5!Be?t%7%9%F%`(B Risa/Asir \cite{NS} $B>e$K<BAu$5$l(B, $BMQ$$$i$l$F$$$k(B. 

\begin{nt}
\begin{tabbing}
\end{tabbing}
\begin{description}
\item[$\Z$] $BM-M}@0?t4D(B
\item[$\N$] $BHsIi@0?tA4BN(B
\item[$\Q$] $BM-M}?tBN(B
\item[$\C$] $BJ#AG?t(B
\item[$|F|$] $F$ $B$,?t$N$H$-@dBPCM(B, $F$ $B$,=89g$N$H$-85$N8D?t(B ($BG;EY(B)
\end{description}
\end{nt}

\chapter{$B=`Hw(B}

$BK\>O$G$O(B, $B0J2<$G=R$Y$k$5$^$6$^$J%"%k%4%j%:%`$rM}2r$7(B, $B7W;;5!>e$K<BAu(B
$B$9$k$?$a$KI,MW$J$3$H$,$i$K$D$$$F@bL@$9$k(B. 

\section{CPU $B$N9=B$$*$h$SF0:n(B}

$B$I$N$h$&$J8@8l$G%"%k%4%j%:%`$,5-=R$5$l$k$K$;$h(B, $B:G=*E*$K$O(B
$B$=$N%"%k%4%j%:%`$O(B CPU $B8GM-$NL?Na$H$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I=85(B
$B$N<h$jJ}$N0c$$$G$"$k$3$H$+$i$o$+$k(B. $B0J2<$G(B, $r = a \bmod B$ $B$O(B 
$0\le r < B$ $B$J$k>jM>$rI=$9(B. $BDL>o(B, CPU $B$K$O<!$N$h$&$J@0?t1i;;L?Na$,MQ(B
$B0U$5$l$F$$$k(B.

\begin{itemize}
\item $B2C;;(B

$(a+b) \bmod B$

\item $B8:;;(B

$(a-b) \bmod B$

\item $BHf3S(B

if $a > b$ then 1 else 0

\item $B:8%7%U%H(B

$a$ $B$N(B $k$ bit $B:8%7%U%H(B $\bmod B$

\item $B1&%7%U%H(B

$a$ $B$N(B $k$ bit $B1&%7%U%H(B ($B1&(B $k$ bit $B$O<N$F$i$l$k(B)

\item bit $BKh$N(B and, or, exclusive or, not

$B@0?t$r(B bit $BNs$H8+$F(B, $B3F(B bit $BKh$KO@M}1i;;$r9T$&(B. 
\end{itemize}

$B%7%U%H1i;;$O(B, $BO@M}1i;;$KMQ$$$i$l$k$@$1$G$J$/(B, $B@0?t$N(B $2^k$ $BG\(B, $B$"$k$$$O(B
$2^k$ $B$G3d$C$?>&$N7W;;$KMQ$$$i$l$k(B. $B$3$l$i0J30$K(B, CPU $B$K$h$C$F$O<!$N(B
$B1i;;$,MQ0U$5$l$F$$$k>l9g$,$"$k(B. 

\begin{itemize}
\item $B>h;;(B

$(a\times b) \bmod B$

\item $BG\@:EY>h;;(B

$(a\times b) \bmod B^2$

\item $B=|;;(B

$a = qd+r$ $B$J$k(B $q$, $r$ ($0\le r < d$)

\item $BG\@:EY=|;;(B

$aB+b = qd+r$ $B$J$k(B $q$, $r$ ($0\le r < d$)
\end{itemize}

$B$3$l$i$N4pK\A`:n$rMQ$$$F(B, $B<!@a$G=R$Y$k(B, $BB?G\D9@0?t$N;MB'1i;;$,<B8=(B
$B$5$l$k(B. 

\section{C $B8@8l$K$D$$$F(B}

$BK\9V$G$O(B, $B%"%k%4%j%:%`$*$h$S%G!<%?9=B$$N7W;;5!>e$G$N<BAuNc$r(BC $B8@8l$K$h(B
$B$j<($9>l9g$,$"$k(B. $B$3$3$G$O(B, C $B8@8l$NJ8K!$K4X$7$F(B, $B$4$/4pK\E*$J$3$H$K$D(B
$B$$$F2r@b$9$k(B. $B>\:Y$O(B, \cite{KR} $B$J$I$r;2>H$5$l$?$$(B.

\subsection{$BJQ?t(B}

$BJQ?t$H$O%G!<%?$r3JG<$7$F$*$/>l=j$G$"$k(B. $B%G!<%?$N<oN`$K$O@0?t(B, $BIbF0>.?t(B
$B$r$O$8$a$H$7$F$5$^$6$^$J$b$N(B ($B7?(B) $B$,$"$k(B. $BJQ?t$r;HMQ$9$k$?$a$K$O(B, $B7?$*(B
$B$h$SL>A0$r@k8@$7$J$1$l$P$J$i$J$$(B. $BNc$($P<!$O(B, {\tt a}, {\tt b}, {\tt
xyz} $B$H$$$&L>A0$NId9f$D$-@0?t7?JQ?t(B, $B$*$h$S(B {\tt p}, {\tt q}$B$H$$$&L>A0(B
$B$NId9f$J$7@0?t7?JQ?t$N@k8@$G$"$k(B. $B@0?t7?JQ?t$N%5%$%:$,(B 32bit $B$N>l9g(B,
{\tt int} $B7?$NJQ?t$O(B $-2^{31} \le x \le 2^{31}-1$, {\tt unsigned int} 
$B7?$NJQ?t$O(B$0 \le x \le 2^{32}-1$ $B$J$k@0?t(B $x$ $B$rI=8=$9$k$3$H$,$G$-$k(B.

\begin{verbatim}
int a,b,xyz;
unsigned int p,q;
\end{verbatim}

\subsection{$B<0(B}

$BJQ?t$*$h$SDj?t$KBP$9$k0lO"$N;MB'1i;;(B, $BO@M}1i;;$J$I$r$^$H$a$F0l$D$N<0(B
$B$H$7$F5-=R$9$k$3$H$,$G$-$k(B. $B2C(B, $B8:(B, $B>h$O$=$l$>$l(B {\tt +}, {\tt -},
{\tt *} $B$GI=$9(B. {\tt /} $B$O=|;;$K$*$1$k>&(B ($B@0?tItJ,(B), {\tt \%} $B$O>jM>$r(B
$BI=$9(B. $B<0$NCf$GMQ$$$k$3$H$,$G$-$k1i;;;R$K$O(B, $BB>$K(B, {\tt <<} ($B:8%7%U%H(B),
{\tt >>} ($B1&%7%U%H(B), {\tt |} (bit $B$4$H$N(B or), {\tt \&} (bit $B$4$H$N(B 
and),
\verb+^+
(bit $B$4$H$N(B exclusive or) $B$J$I$,$"$k(B. $B$^$?(B, {\tt <},
{\tt <=}, {\tt >}, {\tt >=}, {\tt ==} ($BEy$7$$(B), {\tt !=}($BEy$7$/$J$$(B)$B$J$I$b(B, 
$B@5$7$1$l$P(B 1, $B$=$&$G$J$1$l$P(B 0 $B$H$$$&CM$rJV$9(B 2 $B9`1i;;;R$H$7$FMQ$$$k$3(B
$B$H$,$G$-$k(B.  $BId9f$J$7@0?t$KBP$9$k2C8:>h;;(B, $B:8%7%U%H1i;;$O(B, $B@0?t7?$N%5(B
$B%$%:$r(B $n$ bit $B$H$9$k$H$-(B, $BK!(B $2^n$ $B$G7W;;$5$l$k(B. $BNc$($P(B, $B@0?t7?$,(B 
32bit $B$N$H$-(B,

\begin{verbatim}
unsigned int a,r;
a = 1<<31;
r = a+a;
\end{verbatim}
$B$r<B9T$9$k$H(B {\tt r} $B$O(B 0 $B$H$J$k(B. 

\subsection{$BJ8(B}

$BJ8$O(B C $B8@8l$N<B9TC10L$G$"$k(B. $BJ8$K$O(B, $B<0$K%;%_%3%m%s(B {\tt;} $B$rIU$1$?(B
$BC1J8$NB>$K(B, $B4v$D$+$NJ8$r(B \verb+{+, \verb+}+ $B$G3g$C$?J#J8(B, {\tt if}
$BJ8(B, {\tt for} $BJ8(B, {\tt while} $BJ8(B, {\tt switch} $BJ8$J$I$N@)8f$rH<$&(B
$BJ8$J$I$,$"$k(B. $B<!$NNc$O(B, $B>.$5$J(B {\tt n} $B$KBP$7$F3,>h$r7W;;$9$kJ8$G$"$k(B. 

\begin{verbatim}
unsigned int f;
for ( f = 1; n >= 1; n-- ) f *= n;
\end{verbatim}
$B$3$3$G(B, {\tt n--} $B$O(B {\tt n = n-1}, {\tt f *= n} $B$O(B {\tt f = f*n} $B$r$=(B
$B$l$>$l0UL#$9$k(B. $B$3$NJ8$O(B, $B@0?t7?$,(B 32bit $B$N>l9g(B, {\tt n} $B$,(B 12 $B0J2<$G(B
$B$N$_@5$7$$CM$rM?$($k(B. $B$3$l$O(B, 13 $B0J>e$G$O7k2L$,(B $2^{32}$ $B0J>e$H$J$k$?$a$G(B
$B$"$j(B, $B$3$N$h$&$J>l9g$K$b@5$7$$7k2L$rF@$k$?$a$K$O(B, $B<!@a$G=R$Y$k$h$&$J(B
$BG$0UB?G\D9@0?t$NI=8=$*$h$S$=$l$KBP$9$k%"%k%4%j%:%`$,I,MW$H$J$k(B.

\subsection{$B4X?t(B}

C $B8@8l$K$*$$$F$O(B, $B%W%m%0%i%`$O4X?t$H$7$F5-=R$5$l$k(B. $B4X?t$O(B,$B0z?t(B ($BF~NO(B) 
$B$KBP$9$kA`:n$r$$$/$D$+$NJ8$K$h$j5-=R$7(B, $BI,MW$,$"$l$P7k2L$rJV$9(B, $B$H$$$&(B
$BA`:n$r$^$H$a$?$b$N$G$"$k(B. $B@h$K=R$Y$?3,>h7W;;$r4X?t$K$9$k$H<!$N$h$&$K$J$k(B. 

\begin{verbatim}
unsigned int factorial(unsigned int n)
{
    unsigned int f;
    for ( f = 1; n >= 1; n-- ) f *= n;
    return f;
}
\end{verbatim}
$B$3$NNc$G$O(B, $BId9f$J$7@0?t(B {\tt n} $B$r<u$1<h$j(B, $B$=$N3,>h$rId9f$J$7@0?t$H$7$F(B
$BJV$9(B {\tt factorial} $B$H$$$&4X?t$,@k8@$5$l$F$$$k(B. 

\subsection{$BG[Ns(B, $B%]%$%s%?(B}

$BG$0UB?G\D9@0?t$O(B, $B%a%b%j>e$N==J,$JD9$5$NO"B3NN0h$H$7$FI=8=$G$-$k(B. $B$3$N$h$&$J(B
$BNN0h$O(B, C $B8@8l$G$OG[Ns$H$7$FI=8=$5$l$k(B. 

\begin{verbatim}
unsigned int a[10];
\end{verbatim}
$B$3$l$O(B, $BD9$5(B 10 $B$NId9f$J$7@0?tG[Ns(B {\tt a} $B$r@k8@$7$F$$$k(B. $BG[Ns$N3FMW(B
$BAG$O(B, {\tt a[0]}, $\cdots$, {\tt a[9]} $B$K$h$jF@$i$l$k(B. ($BE:;z$,(B 0 $B$+$i(B
$B;O$^$k$3$H$KCm0U(B.) $B<!$N%W%m%0%i%`$O(B, $BD9$5(B 10 $B$NG[Ns$N(B {\tt i} $BHVL\$N(B
$BMWAG$K(B {\tt i} $B$rBeF~$9$k(B. 

\begin{verbatim}
unsigned int a[10];
int i;
for ( i = 0; i < 10; i++ ) a[i] = i;
\end{verbatim}
$B$3$N%W%m%0%i%`$O<!$N$h$&$K$b=q$1$k(B. 

\begin{verbatim}
unsigned int a[10];
int i;
unsigned int *p;
for ( i = 0, p = a; i < 10; i++, p++ ) *p = i;
\end{verbatim}
{\tt p} $B$O%]%$%s%?$H8F$P$l$k7?$NJQ?t$G$"$k(B. $B%]%$%s%?$O(B, $B%a%b%j$N%"%I%l%9(B
$B$rCj>]2=$7$?$b$N$G$"$k(B. $B$3$NNc$N>l9g$K$O(B, {\tt p = a} $B$K$h$j(B
$B:G=i(B {\tt p} $B$OG[Ns(B {\tt a} $B$N@hF,$r;X$7$F$$$k(B. $B$=$7$F(B, {\tt i} $B$,(B
1 $BA}$($k$?$S$K(B, {\tt p} $B$N;X$90LCV$b(B, $BG[NsCf$G(B 1 $BMWAG$:$D@h$r;X$9$h$&$K(B
$BJQ2=$7$F$$$/(B. $B$9$J$o$A(B, {\tt p++} $B$K$h$k(B {\tt p} $B$N%"%I%l%9$H$7$F$N(B
$BJQ2=NL$O(B {\tt unsigned int *p} $B$J$k@k8@$K$h$j5,Dj$5$l$k$N$G$"$k(B. 
$B$^$?(B, {\tt *p = i} $B$O(B, {\tt p} $B$N;X$9NN0h$NFbMF$r(B {\tt i} $B$H$$$&CM(B
$B$K=q$-49$($k$3$H$r0UL#$9$k(B. 

$B%]%$%s%?$rF3F~$9$kI,MW@-$K$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$S=P$5$l$?4X(B
$B?t$O(B, $B$=$NJQ?t$NCf?H$r=q$-49$($k$3$H$,$G$-$J$$(B. $B$3$N$h$&$J>l9g$K(B, 
$B0z?t$H$7$FJQ?t$r;X$9%]%$%s%?$rM?$($k$3$H$K$h$j(B, $B$=$NJQ?t$NCf?H$r=q$-49$($k(B
$B$3$H$,2DG=$K$J$k(B. $BJQ?t(B {\tt a} $B$KBP$7(B, {\tt a} $B$r;X$9%]%$%s%?$NCM$O(B
{\tt \&a} $B$GF@$i$l$k(B. {\tt \&} $B$H(B {\tt *} $B$O8_$$$K5U$NA`:n$H$J$C$F$$$k(B. 
\end{itemize}

\subsection{$B9=B$BN(B}

$BNc$($PB?G\D9@0?t$r7W;;5!>e$GI=8=$9$k>l9g(B, $B3F7e$rI=$9@0?tG[Ns$*$h$SId9f(B, $B7e?t(B
$B$N>pJs$O:GDc8BI,MW$G$"$k(B. $B$3$l$i$O$=$l$>$l8DJL$NJQ?t$K3d$jEv$F$k$3$H$b2DG=(B
$B$G$"$k$,(B, $B0l$D$NBP>]$,J#?t$NJQ?t$KJL$l$FJ];}$5$l$k$N$O(B, $B$=$N<h07$$$r(B
$BJ#;($K$7(B, $B$^$?%W%m%0%i%`$N2DFI@-$NE@$+$i$b9%$^$7$/$J$$(B. $B$3$N$h$&$J(B
$B>l9g$K(B, $BJ#?t$NMWAG$r0l$D$K$^$H$a$?9=B$BN$rMQ$$$k$3$H$,$G$-$k(B. 
$BNc$($P(B, $B@0?t$O<!$N$h$&$J9=B$BN$GI=$9$3$H$,$G$-$k(B. 

\begin{verbatim}
struct Integer {
  int n; /* $B7e?t(B = |n|; n $B$NId9f$,$3$N@0?t$NId9f(B */
  unsigned int *digits; /* $B3F7e$rI=$9G[Ns$X$N%]%$%s%?(B */
};
\end{verbatim}
$B$b$A$m$s(B, $B%]%$%s%?(B {\tt digits} $B$OD9$5(B {\tt |n|} $B0J>e$NId9f$J$7(B
$B@0?tG[Ns$r;X$7$F$$$J$1$l$P$J$i$J$$(B. 

