/*
 *  rpf.h
 *
 *  Written by:		Stefan Frank
 *			Richard Krampfl
 *			Ullrich Hafner
 *		
 *  This file is part of FIASCO (Fractal Image And Sequence COdec)
 *  Copyright (C) 1994-2000 Ullrich Hafner
 */

/*
 *  $Date: 2019/05/31 19:44:44 $
 *  $Author: ckyos9(Rachel_King) $
 *  $Revision: 1.1.1.1 $
 *  $State: Exp $
 */

#ifndef _RPF_H
#define _RPF_H

#include "types.h"
#include "fiasco.h"

typedef struct rpf
{
   unsigned    	      mantissa_bits;	/* number of bits used for mantissa */
   real_t      	      range;		/* scale value to [-range, +range] */
   fiasco_rpf_range_e range_e;
} rpf_t;

int
rtob (real_t real, const rpf_t *rpf);
real_t 
btor (int b, const rpf_t *rpf);
rpf_t *
alloc_rpf (unsigned mantissa, fiasco_rpf_range_e range);

extern const int RPF_ZERO;

#endif /* not _RPF_H */






