mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
cce5a349d9
consists mostly of changing sloppy K&R C code to slightly more disciplined K&R C code, and doing the usual things to shut gcc up. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12877 91177308-0d34-0410-b5e6-96231b3b80d8
34 lines
714 B
C
34 lines
714 B
C
/* Copyright (c) 1988 Bellcore
|
|
** All Rights Reserved
|
|
** Permission is granted to copy or use this program, EXCEPT that it
|
|
** may not be sold for profit, the copyright notice must be reproduced
|
|
** on copies, and credit should be given to Bellcore where it is due.
|
|
** BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
|
|
*/
|
|
|
|
|
|
#ifndef lint
|
|
static char rcsid[]= "$Header$";
|
|
#endif
|
|
|
|
#include "misc.h"
|
|
#include "floatrep.h"
|
|
|
|
R_float
|
|
R_makefloat()
|
|
{
|
|
R_float retval;
|
|
|
|
retval = Z_ALLOC(1,struct R_flstr);
|
|
retval->mantissa = Z_ALLOC(R_MANMAX,char);
|
|
return(retval);
|
|
}
|
|
|
|
int
|
|
R_getexp(ptr)
|
|
R_float ptr;
|
|
{
|
|
return(ptr->exponent);
|
|
}
|
|
|