|
musrfit 1.10.0
|
#include "mud.h"
Go to the source code of this file.
Classes | |
| struct | ieee_single |
| struct | vax_single |
| struct | sgl_limits |
| struct | ieee_double |
| struct | vax_double |
| struct | dbl_limits |
Macros | |
| #define | VAX_SNG_BIAS 0x81 |
| #define | IEEE_SNG_BIAS 0x7f |
| #define | VAX_DBL_BIAS 0x81 |
| #define | IEEE_DBL_BIAS 0x3ff |
| #define | MASK(nbits) |
Functions | |
| void | bdecode_2 (void *b, void *p) |
| void | bencode_2 (void *b, void *p) |
| void | bdecode_4 (void *b, void *p) |
| void | bencode_4 (void *b, void *p) |
| void | bdecode_8 (void *b, void *p) |
| void | bencode_8 (void *b, void *p) |
| void | decode_str (BUF *pB, char **ps) |
| void | encode_str (BUF *pB, char **ps) |
| void | bencode_float (char *buf, float *fp) |
| void | encode_float (BUF *pBuf, float *fp) |
| void | bdecode_float (char *buf, float *fp) |
| void | decode_float (BUF *pBuf, float *fp) |
| void | bencode_double (char *buf, double *dp) |
| void | encode_double (BUF *pBuf, double *fp) |
| void | bdecode_double (char *buf, double *dp) |
| void | decode_double (BUF *pBuf, double *fp) |
Variables | |
| static struct sgl_limits | sgl_limits [2] |
| static struct dbl_limits | dbl_limits [2] |
| #define IEEE_DBL_BIAS 0x3ff |
Definition at line 361 of file mud_encode.c.
Referenced by bdecode_double(), and bencode_double().
| #define IEEE_SNG_BIAS 0x7f |
Definition at line 203 of file mud_encode.c.
Referenced by bdecode_float(), and bencode_float().
| #define MASK | ( | nbits | ) |
Definition at line 362 of file mud_encode.c.
| #define VAX_DBL_BIAS 0x81 |
Definition at line 360 of file mud_encode.c.
Referenced by bdecode_double(), and bencode_double().
| #define VAX_SNG_BIAS 0x81 |
Definition at line 202 of file mud_encode.c.
Referenced by bdecode_float(), and bencode_float().
| void bdecode_2 | ( | void * | b, |
| void * | p ) |
Definition at line 28 of file mud_encode.c.
References _swap2bytes.
Referenced by _ANSI_ARGS_(), decode_str(), MUD_SEC_GEN_HIST_dopack(), and varBinArray().
| void bdecode_4 | ( | void * | b, |
| void * | p ) |
Definition at line 60 of file mud_encode.c.
References _swap4bytes.
Referenced by _ANSI_ARGS_(), bdecode_float(), MUD_read(), MUD_SEC_GEN_HIST_dopack(), and varBinArray().
| void bdecode_8 | ( | void * | b, |
| void * | p ) |
Definition at line 86 of file mud_encode.c.
References _swap4bytes.
Referenced by _ANSI_ARGS_(), and bdecode_double().
| void bdecode_double | ( | char * | buf, |
| double * | dp ) |
Definition at line 415 of file mud_encode.c.
References bdecode_8(), dbl_limits::d, ieee_double::exp, vax_double::exp, dbl_limits::ieee, IEEE_DBL_BIAS, ieee_double::mantissa1, vax_double::mantissa1, ieee_double::mantissa2, vax_double::mantissa2, ieee_double::mantissa3, vax_double::mantissa3, ieee_double::mantissa4, vax_double::mantissa4, ieee_double::sign, vax_double::sign, and VAX_DBL_BIAS.
Referenced by _ANSI_ARGS_(), and decode_double().
| void bdecode_float | ( | char * | buf, |
| float * | fp ) |
Definition at line 252 of file mud_encode.c.
References bdecode_4(), ieee_single::exp, vax_single::exp, sgl_limits::ieee, IEEE_SNG_BIAS, ieee_single::mantissa1, vax_single::mantissa1, ieee_single::mantissa2, vax_single::mantissa2, sgl_limits::s, ieee_single::sign, vax_single::sign, and VAX_SNG_BIAS.
Referenced by _ANSI_ARGS_(), and decode_float().
| void bencode_2 | ( | void * | b, |
| void * | p ) |
Definition at line 41 of file mud_encode.c.
References _swap2bytes.
Referenced by _ANSI_ARGS_(), encode_str(), and MUD_SEC_GEN_HIST_dopack().
| void bencode_4 | ( | void * | b, |
| void * | p ) |
Definition at line 73 of file mud_encode.c.
References _swap4bytes.
Referenced by _ANSI_ARGS_(), bencode_float(), and MUD_SEC_GEN_HIST_dopack().
| void bencode_8 | ( | void * | b, |
| void * | p ) |
Definition at line 100 of file mud_encode.c.
References _swap4bytes.
Referenced by _ANSI_ARGS_(), and bencode_double().
| void bencode_double | ( | char * | buf, |
| double * | dp ) |
Definition at line 368 of file mud_encode.c.
References bencode_8(), dbl_limits::d, ieee_double::exp, vax_double::exp, dbl_limits::ieee, IEEE_DBL_BIAS, ieee_double::mantissa1, vax_double::mantissa1, ieee_double::mantissa2, vax_double::mantissa2, ieee_double::mantissa3, vax_double::mantissa3, ieee_double::mantissa4, vax_double::mantissa4, vax_double::sign, and VAX_DBL_BIAS.
Referenced by _ANSI_ARGS_(), and encode_double().
| void bencode_float | ( | char * | buf, |
| float * | fp ) |
Definition at line 208 of file mud_encode.c.
References bencode_4(), ieee_single::exp, vax_single::exp, sgl_limits::ieee, IEEE_SNG_BIAS, ieee_single::mantissa1, vax_single::mantissa1, ieee_single::mantissa2, vax_single::mantissa2, sgl_limits::s, ieee_single::sign, vax_single::sign, and VAX_SNG_BIAS.
Referenced by _ANSI_ARGS_(), and encode_float().
| void decode_double | ( | BUF * | pBuf, |
| double * | fp ) |
Definition at line 454 of file mud_encode.c.
References bdecode_double(), BUF::buf, BUF::pos, and BUF::size.
Referenced by _ANSI_ARGS_(), MUD_SEC_GEN_ARRAY_proc(), and MUD_SEC_GEN_IND_VAR_proc().
| void decode_float | ( | BUF * | pBuf, |
| float * | fp ) |
Definition at line 293 of file mud_encode.c.
References bdecode_float(), BUF::buf, BUF::pos, and BUF::size.
Referenced by _ANSI_ARGS_(), and MUD_SEC_GEN_ARRAY_proc().
| void decode_str | ( | BUF * | pB, |
| char ** | ps ) |
Definition at line 115 of file mud_encode.c.
References bdecode_2(), BUF::buf, NULL, BUF::pos, BUF::size, and zalloc.
Referenced by _ANSI_ARGS_(), _ANSI_ARGS_(), MUD_SEC_CMT_proc(), MUD_SEC_GEN_HIST_HDR_proc(), MUD_SEC_GEN_IND_VAR_proc(), MUD_SEC_GEN_RUN_DESC_proc(), MUD_SEC_GEN_SCALER_proc(), and MUD_SEC_TRI_TI_RUN_DESC_proc().
| void encode_double | ( | BUF * | pBuf, |
| double * | fp ) |
Definition at line 407 of file mud_encode.c.
References bencode_double(), BUF::buf, BUF::pos, and BUF::size.
Referenced by _ANSI_ARGS_(), MUD_SEC_GEN_ARRAY_proc(), and MUD_SEC_GEN_IND_VAR_proc().
| void encode_float | ( | BUF * | pBuf, |
| float * | fp ) |
Definition at line 244 of file mud_encode.c.
References bencode_float(), BUF::buf, BUF::pos, and BUF::size.
Referenced by _ANSI_ARGS_(), and MUD_SEC_GEN_ARRAY_proc().
| void encode_str | ( | BUF * | pB, |
| char ** | ps ) |
Definition at line 140 of file mud_encode.c.
References _strlen, bencode_2(), BUF::buf, BUF::pos, and BUF::size.
Referenced by _ANSI_ARGS_(), _ANSI_ARGS_(), MUD_SEC_CMT_proc(), MUD_SEC_GEN_HIST_HDR_proc(), MUD_SEC_GEN_IND_VAR_proc(), MUD_SEC_GEN_RUN_DESC_proc(), MUD_SEC_GEN_SCALER_proc(), and MUD_SEC_TRI_TI_RUN_DESC_proc().
|
static |
|
static |