1988-04-07 11:40:46 +00:00
|
|
|
/*
|
|
|
|
(c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
|
|
See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* $Header$ */
|
|
|
|
|
1988-04-07 10:57:49 +00:00
|
|
|
/*
|
1988-07-25 10:46:15 +00:00
|
|
|
SEPERATE INTO EXPONENT AND FRACTION (FEF 4)
|
1988-04-07 10:57:49 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "FP_types.h"
|
|
|
|
|
|
|
|
struct fef4_returns {
|
1988-04-14 18:06:47 +00:00
|
|
|
int e;
|
1988-04-07 10:57:49 +00:00
|
|
|
_float f;
|
|
|
|
};
|
|
|
|
|
|
|
|
fef4(s1)
|
|
|
|
_float s1;
|
|
|
|
{
|
|
|
|
struct fef4_returns *r = (struct fef4_returns *) &s1;
|
|
|
|
EXTEND buf;
|
|
|
|
|
|
|
|
extend((_double *) &s1,&buf,sizeof(_float));
|
|
|
|
r->e = buf.exp-1;
|
|
|
|
buf.exp = 1;
|
|
|
|
compact(&buf,(_double *) &r->f,sizeof(_float));
|
|
|
|
}
|