고정소수점 관련 자료

Fixed point related Links, References, etc

How to use Fixed Point (16.16) Math - by Night Stalker

C에서 고정소수점 라이브러리 구현하기



DOOM Source

Wikipedia - Fixed-point arithmetic

Doom was the last first-person shooter title by id Software to use a 16.16 fixed point representation for all of its non-integer computations, including map system, geometry, rendering, player movement etc. This was done in order for the game to be playable on 386 and 486SX CPUs without an FPU. For compatibility reasons, this representation is still used in modern Doom source ports.

  • typedef fixed_t 고정 소수점 표현
  • tables.h 에 삼각함수 구현


comments powered by Disqus