comparison libtwamr/agc.h @ 307:6b33f3ba4289

libtwamr: go for single-chunk-state approach
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 16 Apr 2024 17:18:04 +0000
parents 54f6bc41ed10
children
comparison
equal deleted inserted replaced
306:047c198408c8 307:6b33f3ba4289
38 ***************************************************************************** 38 *****************************************************************************
39 */ 39 */
40 /* 40 /*
41 ************************************************************************** 41 **************************************************************************
42 * 42 *
43 * Function : agc_init
44 * Purpose : Allocates memory for agc state and initializes
45 * state memory
46 * Description : Stores pointer to agc status struct in *st. This pointer
47 * has to be passed to agc in each call.
48 * Returns : 0 on success
49 *
50 **************************************************************************
51 */
52 int agc_init(agcState **st);
53
54 /*
55 **************************************************************************
56 *
57 * Function : agc_reset 43 * Function : agc_reset
58 * Purpose : Reset of agc (i.e. set state memory to 1.0) 44 * Purpose : Reset of agc (i.e. set state memory to 1.0)
59 * Returns : 0 on success 45 * Returns : 0 on success
60 * 46 *
61 ************************************************************************** 47 **************************************************************************
62 */ 48 */
63 int agc_reset (agcState *st); 49 void agc_reset (agcState *st);
64
65 /*
66 **************************************************************************
67 *
68 * Function : agc_exit
69 * Purpose : The memory used for state memory is freed,
70 * de-initialize agc
71 *
72 **************************************************************************
73 */
74 void agc_exit (agcState **st);
75 50
76 /* 51 /*
77 ************************************************************************** 52 **************************************************************************
78 * 53 *
79 * Function : agc 54 * Function : agc