12.07.2015 Views

RealView Compilation Tools コンパイラユーザガイド - ARM ...

RealView Compilation Tools コンパイラユーザガイド - ARM ...

RealView Compilation Tools コンパイラユーザガイド - ARM ...

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

コーディング 慣 行ブール 型 と C99 ではネイテ ィ ブ 型 の _Bool が 導 入 されています。 関 連 する 標 準 ヘ ッ ダ には、 ブールテス ト のためにマク ロ bool、 true、 および false が 含まれています。 以 下 に 例 を 示 し ます。#include bool foo(FILE *str){bool err = false;...if (!fflush(str)){err = true;}...return err;}注C99 でのブールのセマンテ ィ ク スは、 C++ と 一 致 するよ うになっています。 および の 拡 張 整 数 型 と 関 数C90 では、 long データ 型 は 最 大 の 整 数 型 および 32 ビッ トコンテナの 両 方 として 機 能 でき ます。 C99 では、 新 しい 標 準 ラ イブラ リ ヘッ ダフ ァ イル および によ り このあいまいさを 解 消 しています。ヘッダファイル では 以 下 の 新 し い 型 が 使 用 さ れています。• intmax_t および uintmax_t。 最 大 幅 の 符 号 付 きおよび 符 号 な し 整 数 型 です。• intptr_t および unintptr_t。 符 号 付 きおよび 符 号 な し のオブジ ェ ク ト ポ イン タ を 格 納 でき る 整 数 型 です。ヘッダファイル は、 以 下 を 含 む intmax_t 型 の 値 を 操 作 する ためのライブラリ 関 数 を 提 供 します。intmax_t imaxabs(intmax_t x); // absolute value of ximaxdiv_t imaxdiv(intmax_t x, intmax_t y) // returns the quotient and remainder// of x / y5-58 Copyright © 2002-2010 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DUI 0205IJNon-Confidential, ID 100419

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!