summaryrefslogtreecommitdiffhomepage
path: root/nGenEx/Fix.cpp
blob: 14ebec653f3f1646e17e519e3db415af5af46b2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*  Project nGenEx
	Destroyer Studios LLC
	Copyright © 1997-2004. All Rights Reserved.

	SUBSYSTEM:    nGenEx.lib
	FILE:         Fix.cpp
	AUTHOR:       John DiCamillo


	OVERVIEW
	========
	Fixed point number class with 16 bits of fractional precision
*/

#include "MemDebug.h"
#include "Fix.h"

// +--------------------------------------------------------------------+

const fix    fix::one         = fix(1);
const fix    fix::two         = fix(2);
const fix    fix::three       = fix(3);
const fix    fix::five        = fix(5);
const fix    fix::ten         = fix(10);