12.07.2015 Views

RealView 编译工具编译器参考指南 - ARM Information Center

RealView 编译工具编译器参考指南 - ARM Information Center

RealView 编译工具编译器参考指南 - ARM Information Center

SHOW MORE
SHOW LESS

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

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

编 译 器 特 有 的 功 能int32_t c = a + b;if (((a ^ b) & INT_MIN) == 0){if ((c ^ a) & INT_MIN){c = (a < 0) ? INT_MIN : INT_MAX;}}return c;}__asm int32_t asm_L_add(int32_t a, int32_t b){qadd r0, r0, r1bx lr}int32_t foo(int32_t a, int32_t b){int32_t c, d, e, f;Overflow = 0;// set global overflow flagc = C_L_add(a, b); // C saturating addd = asm_L_add(a, b); // assembly language saturating adde = __qadd(a, b); // <strong>ARM</strong> intrinsic saturating addf = L_add(a, b); // ETSI saturating addreturn Overflow ? -1 : c == d == e == f; // returns 1, unless overflow}另 请 参 阅• 头 文 件 dspfns.h 中 的 ETSI 基 本 运 算 定 义 , 其 形 式 为 C 代 码 和 内 在 函 数 的组 合• 《 编 译 器 用 户 指 南 》 中 第 4-6 页 的 ETSI 基 本 运 算• ETSI 建 议 G.191:《 语 音 和 音 频 编 码 标 准 化 软 件 工 具 》 (Software tools forspeech and audio coding standardization)• 《ITU-T 软 件 工 具 库 2005 用 户 手 册 》, 收 录 为 ETSI 建 议 书 G.191 的 一 部 分• ETSI 建 议 G723.1:《 传 输 速 率 为 5.3 和 6.3 Kb/s 的 多 媒 体 通 信 双 速 率 语 音编 码 器 》 (Dual rate speech coder for multimedia communications transmittingat 5.3 and 6.3 kbit/s)• ETSI 建 议 G.729:《 使 用 共 轭 结 构 代 数 码 激 励 线 性 预 测 (CS-ACELP) 的 8Kb/s 语 音 编 码 》 (Coding of speech at 8 kbit/s using conjugate-structurealgebraic-code-excited linear prediction (CS-ACELP))。4-106 Copyright © 2007-2009 <strong>ARM</strong> Limited. All rights reserved. <strong>ARM</strong> DUI 0348BCNon-Confidential, Unrestricted AccessID090708

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

Saved successfully!

Ooh no, something went wrong!