12.07.2015 Views

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

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

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

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

编 译 器 特 有 的 功 能4.7.45 ETSI 基 本 运 算RVCT 支 持 原 始 ETSI 基 本 运 算 系 列 ( 如 ETSI G.729 建 议 :《 使 用 共 轭 结 构 代 数码 激 励 线 性 预 测 (CS-ACELP) 的 8 Kb/s 语 音 编 码 》(Coding of speech at 8 kbit/s usingconjugate-structure algebraic-code-excited linear prediction (CS-ACELP)) 所 述 )。要 在 您 自 己 的 代 码 中 使 用 ETSI 基 本 运 算 , 请 包 含 标 准 头 文 件 dspfns.h。 表 4-15列 出 了 dspfns.h 中 提 供 的 内 在 函 数 。内 在 函 数表 4-15 RVCT 中 支 持 的 ETSI 基 本 运 算abs_s L_add_c L_mult L_sub_c norm_ladd L_deposit_h L_negate mac_r rounddiv_s L_deposit_l L_sat msu_r saturateextract_h L_mac L_shl mult shlextract_l L_macNs L_shr mult_r shrL_abs L_msu L_shr_r negate shr_rL_add L_msuNs L_sub norm_s sub头 文 件 dspfns.h 还 将 某 些 状 态 标 记 作 为 全 局 变 量 公 开 , 以 便 在 C 或 C++ 程 序 中使 用 。 表 4-16 列 出 了 dspfns.h 公 开 的 状 态 标 记 。表 4-16 RVCT 中 公 开 的 ETSI 状 态 标 记状 态 标 记说 明Overflow 溢 出 状 态 标 记 。通 常 , 饱 和 函 数 对 溢 出 具 有 粘 着 效 果 。Carry 进 位 状 态 标 记 。示 例#include #include #include // include ETSI basic operationsint32_t C_L_add(int32_t a, int32_t b){<strong>ARM</strong> DUI 0348BC Copyright © 2007-2009 <strong>ARM</strong> Limited. All rights reserved. 4-105ID090708Non-Confidential, Unrestricted Access

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

Saved successfully!

Ooh no, something went wrong!