看板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"的狂狷不馴;屬於年少的輕狂色彩 ◎