看板Programming
标 题Re: 请问什麽叫Q-format?
发信站政大狂狷年少 (Thu Mar 29 16:33:04 2007)
转信站ptt!ctu-reader!ctu-peer!news.nctu!netnews.csie.nctu!news.cs.nthu!WHSHS
※ 引述《[email protected] (glamorous)》之铭言:
> 学DSP时,常看到书上有Q-15、Q-13等等...
> 请问Q-15是什麽意思呢?
> 谢谢~
一种用定点数表示小数的方法,
Q-15 的一般形式是 Q-(N-1),
用 16-bit 表示,
MSB 是 sign bit。
这类表示法的好处在於,
可以直接使用整数的算术运算指令对小数做运算,
不必另外做 FPU,
也不必为了用一堆逻辑和位移运算来搞定浮点数格式,
运算速度快,
但精确度相对的就低。
这类资料应该很好找才对,
除非你是想 implement Q-format。
--
Name: Tseng, Ling-hua E-mail Address:
[email protected]
School: National Tsing Hua University Department: Computer Science
Interesting: C++, Compiler, PL/PD, OS, VM, Large-scale software design
Researching: Software pipelining for VLIW architectures
Homepage:
https://it.muds.net/~uranus
--
╔═══╗ ┼────────────────────────╮
║狂狷 ║ │
* Origin:[ 狂 狷 年 少 ] whshs.cs.nccu.edu.tw ╰─╮
║ 年少║ ┼╮
< IP:140.119.164.252 > ╰─╮
╚╦═╦╝ ╰
* From:61-230-216-167.dynamic.hinet.net
─╨─╨─ KGBBS ─ ◎ 遨翔"BBS"的狂狷不驯;属於年少的轻狂色彩 ◎