FreeCalypso > hg > gsm-codec-lib
annotate libgsmhr1/rxfe_create.c @ 602:72cdae602d6e
libgsmhr1/dec_func.c: rm unused static functions
In the original code, sp_dec.c held two kinds of functions: those
needed only as part of the decoder, and those used by both decoder
and encoder engines. In this library, we have moved the latter
class of functions to dec_func.c module. Almost all static functions
from the original sp_dec.c, with the exception of aToRc(), are
needed only on sp_dec.c side of the new divide - remove them from
dec_func.c, where they became dead code.
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Thu, 04 Dec 2025 18:58:22 +0000 |
| parents | 9cda792c0dd7 |
| children |
| rev | line source |
|---|---|
|
583
9cda792c0dd7
libgsmhr1: implement RxFE state allocation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /* |
|
9cda792c0dd7
libgsmhr1: implement RxFE state allocation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 * Here we implement gsmhr_rxfe_create() function: allocation of a |
|
9cda792c0dd7
libgsmhr1: implement RxFE state allocation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 * free-standing RxFE state structure, used for our TFO transform. |
|
9cda792c0dd7
libgsmhr1: implement RxFE state allocation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 */ |
|
9cda792c0dd7
libgsmhr1: implement RxFE state allocation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 |
|
9cda792c0dd7
libgsmhr1: implement RxFE state allocation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 #include <stdint.h> |
|
9cda792c0dd7
libgsmhr1: implement RxFE state allocation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 #include <stdlib.h> |
|
9cda792c0dd7
libgsmhr1: implement RxFE state allocation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 #include "tw_gsmhr.h" |
|
9cda792c0dd7
libgsmhr1: implement RxFE state allocation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 #include "typedefs.h" |
|
9cda792c0dd7
libgsmhr1: implement RxFE state allocation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 #include "namespace.h" |
|
9cda792c0dd7
libgsmhr1: implement RxFE state allocation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 #include "rxfe.h" |
|
9cda792c0dd7
libgsmhr1: implement RxFE state allocation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 |
|
9cda792c0dd7
libgsmhr1: implement RxFE state allocation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 struct gsmhr_rxfe_state *gsmhr_rxfe_create(void) |
|
9cda792c0dd7
libgsmhr1: implement RxFE state allocation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 { |
|
9cda792c0dd7
libgsmhr1: implement RxFE state allocation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 struct gsmhr_rxfe_state *st; |
|
9cda792c0dd7
libgsmhr1: implement RxFE state allocation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 |
|
9cda792c0dd7
libgsmhr1: implement RxFE state allocation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 st = malloc(sizeof(struct gsmhr_rxfe_state)); |
|
9cda792c0dd7
libgsmhr1: implement RxFE state allocation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 if (st) |
|
9cda792c0dd7
libgsmhr1: implement RxFE state allocation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 gsmhr_rxfe_reset(st); |
|
9cda792c0dd7
libgsmhr1: implement RxFE state allocation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 return st; |
|
9cda792c0dd7
libgsmhr1: implement RxFE state allocation
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 } |
