Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
strcvt.c File Reference
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include "arith.internal.h"
Include dependency graph for strcvt.c:

Go to the source code of this file.

Functions

int AR_convert_str_to_int (AR_DATA *res, const AR_TYPE *resulttype, int *bits_used, const char *str, const int *base)
int AR_convert_int_to_str (char *resultstr, const int *base, const AR_DATA *opd, const AR_TYPE *opndtype)
int ar_cvt_str_to_float (ar_data *result, const AR_TYPE *resulttype, const char *str)
int ar_unpack_float_str (long *ibuf, long maxbuflen, long *w, long *d, long *p, const char *str)
int AR_convert_float_to_str (char *resultstr, const AR_DATA *opd, const AR_TYPE *opndtype)
int AR_convert_hex_str_to_float (AR_DATA *result, const AR_TYPE *resulttype, const char *str)
int AR_convert_host_sint64_to_int (AR_DATA *result, const AR_TYPE *resulttype, AR_HOST_SINT64 i64val)
int AR_convert_int_to_host_sint64 (AR_HOST_SINT64 *i64val, const AR_DATA *opnd, const AR_TYPE *opndtype)

Variables

static char USMID [] = "\n%Z%%M% %I% %G% %U%\n"

Function Documentation

int AR_convert_host_sint64_to_int ( AR_DATA result,
const AR_TYPE resulttype,
AR_HOST_SINT64  i64val 
)

Definition at line 818 of file strcvt.c.

References AR_CLASS, AR_CLASS_INT, AR_convert(), AR_Int_64_S, AR_DATA::ar_internal_data_item1, and AR_STAT_INVALID_TYPE.

Referenced by cval_to_f_int().

Here is the call graph for this function:

int AR_convert_int_to_host_sint64 ( AR_HOST_SINT64 i64val,
const AR_DATA opnd,
const AR_TYPE opndtype 
)

Definition at line 834 of file strcvt.c.

References AR_CLASS, AR_CLASS_INT, AR_convert(), AR_Int_64_S, AR_DATA::ar_internal_data_item1, and AR_STAT_INVALID_TYPE.

Referenced by f_int_to_cval().

Here is the call graph for this function:

int ar_unpack_float_str ( long *  ibuf,
long  maxbuflen,
long *  w,
long *  d,
long *  p,
const char *  str 
)

Definition at line 472 of file strcvt.c.

References AR_STAT_NEGATIVE, AR_STAT_OK, AR_STAT_UNDEFINED, and AR_STAT_ZERO.

Referenced by ar_convert_str_to_float(), and ar_cvt_str_to_float().


Variable Documentation

char USMID[] = "\n%Z%%M% %I% %G% %U%\n" [static]

Definition at line 852 of file strcvt.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines