* doublest.h (store_floating, floatformat_to_doublest): Make IN
paramter a const void pointer. (floatformat_from_doublest): Make IN const, Make OUT a void pointer. * doublest.c (floatformat_to_doublest): Update. (floatformat_from_doublest): Update. (extract_floating): Update.
This commit is contained in:
parent
d16aafd8c8
commit
64f6fcadfc
3 changed files with 19 additions and 7 deletions
|
@ -1,3 +1,13 @@
|
||||||
|
2001-08-01 Andrew Cagney <ac131313@redhat.com>
|
||||||
|
|
||||||
|
* doublest.h (store_floating, floatformat_to_doublest): Make IN
|
||||||
|
paramter a const void pointer.
|
||||||
|
(floatformat_from_doublest): Make IN const, Make OUT a void
|
||||||
|
pointer.
|
||||||
|
* doublest.c (floatformat_to_doublest): Update.
|
||||||
|
(floatformat_from_doublest): Update.
|
||||||
|
(extract_floating): Update.
|
||||||
|
|
||||||
2001-07-31 Andrew Cagney <ac131313@redhat.com>
|
2001-07-31 Andrew Cagney <ac131313@redhat.com>
|
||||||
|
|
||||||
* defs.h (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
|
* defs.h (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
|
||||||
|
|
|
@ -105,7 +105,8 @@ get_field (unsigned char *data, enum floatformat_byteorders order,
|
||||||
Store the DOUBLEST in *TO. */
|
Store the DOUBLEST in *TO. */
|
||||||
|
|
||||||
void
|
void
|
||||||
floatformat_to_doublest (const struct floatformat *fmt, char *from,
|
floatformat_to_doublest (const struct floatformat *fmt,
|
||||||
|
const void *from,
|
||||||
DOUBLEST *to)
|
DOUBLEST *to)
|
||||||
{
|
{
|
||||||
unsigned char *ufrom = (unsigned char *) from;
|
unsigned char *ufrom = (unsigned char *) from;
|
||||||
|
@ -325,8 +326,9 @@ ldfrexp (long double value, int *eptr)
|
||||||
restrictions. */
|
restrictions. */
|
||||||
|
|
||||||
void
|
void
|
||||||
floatformat_from_doublest (CONST struct floatformat *fmt, DOUBLEST *from,
|
floatformat_from_doublest (CONST struct floatformat *fmt,
|
||||||
char *to)
|
const DOUBLEST *from,
|
||||||
|
void *to)
|
||||||
{
|
{
|
||||||
DOUBLEST dfrom;
|
DOUBLEST dfrom;
|
||||||
int exponent;
|
int exponent;
|
||||||
|
@ -540,7 +542,7 @@ floatformat_mantissa (const struct floatformat *fmt, char *val)
|
||||||
dirty work. */
|
dirty work. */
|
||||||
|
|
||||||
DOUBLEST
|
DOUBLEST
|
||||||
extract_floating (void *addr, int len)
|
extract_floating (const void *addr, int len)
|
||||||
{
|
{
|
||||||
DOUBLEST dretval;
|
DOUBLEST dretval;
|
||||||
|
|
||||||
|
|
|
@ -73,15 +73,15 @@ typedef double DOUBLEST;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern void floatformat_to_doublest (const struct floatformat *,
|
extern void floatformat_to_doublest (const struct floatformat *,
|
||||||
char *, DOUBLEST *);
|
const void *in, DOUBLEST *out);
|
||||||
extern void floatformat_from_doublest (const struct floatformat *,
|
extern void floatformat_from_doublest (const struct floatformat *,
|
||||||
DOUBLEST *, char *);
|
const DOUBLEST *in, void *out);
|
||||||
|
|
||||||
extern int floatformat_is_negative (const struct floatformat *, char *);
|
extern int floatformat_is_negative (const struct floatformat *, char *);
|
||||||
extern int floatformat_is_nan (const struct floatformat *, char *);
|
extern int floatformat_is_nan (const struct floatformat *, char *);
|
||||||
extern char *floatformat_mantissa (const struct floatformat *, char *);
|
extern char *floatformat_mantissa (const struct floatformat *, char *);
|
||||||
|
|
||||||
extern DOUBLEST extract_floating (void *, int);
|
extern DOUBLEST extract_floating (const void *in, int);
|
||||||
extern void store_floating (void *, int, DOUBLEST);
|
extern void store_floating (void *, int, DOUBLEST);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue