btmux-0.6-rc4/doc/
btmux-0.6-rc4/event/
btmux-0.6-rc4/game/
btmux-0.6-rc4/game/maps/
btmux-0.6-rc4/game/mechs/
btmux-0.6-rc4/game/text/help/
btmux-0.6-rc4/game/text/help/cat_faction/
btmux-0.6-rc4/game/text/help/cat_inform/
btmux-0.6-rc4/game/text/help/cat_misc/
btmux-0.6-rc4/game/text/help/cat_mux/
btmux-0.6-rc4/game/text/help/cat_mux/cat_commands/
btmux-0.6-rc4/game/text/help/cat_mux/cat_functions/
btmux-0.6-rc4/game/text/help/cat_templates/
btmux-0.6-rc4/game/text/wizhelp/
btmux-0.6-rc4/include/
btmux-0.6-rc4/misc/
btmux-0.6-rc4/python/
btmux-0.6-rc4/src/hcode/btech/
btmux-0.6-rc4/tree/
/*
 * $Id: floatsim.h,v 1.1.1.1 2005/01/11 21:18:07 kstevens Exp $
 *
 * Author: Markus Stenberg <fingon@iki.fi>
 *
 *  Copyright (c) 1998 Markus Stenberg
 *       All rights reserved
 *
 * Created: Mon Jul 20 00:26:46 1998 fingon
 * Last modified: Mon Jul 20 00:46:33 1998 fingon
 *
 */

#ifndef FLOATSIM_H
#define FLOATSIM_H

/* Simulate floats by using ints in interesting way */

#define INT_DECIMAL_BITS 8

/* out of 32 */
#define SHO_DECIMAL_BITS 5

/* out of 16 ; note : this makes signed ints only 0-1023, unsigneds 0-2047 */

#define FSIM2INT(a) ((a) >> INT_DECIMAL_BITS)
#define FSIM2SHO(a) ((a) >> SHO_DECIMAL_BITS)
#define INT2FSIM(a) ((a) << INT_DECIMAL_BITS)
#define SHO2FSIM(a) ((a) << SHO_DECIMAL_BITS)

#endif				/* FLOATSIM_H */