Attention is currently required from: falconia, laforge.
pespin has posted comments on this change. (
https://gerrit.osmocom.org/c/libosmocore/+/32034 )
Change subject: codec: add osmo_efr_check_sid() function
......................................................................
Patch Set 1:
(3 comments)
File src/codec/gsm660.c:
https://gerrit.osmocom.org/c/libosmocore/+/32034/comment/dfb90092_a029972f
PS1, Line 271: static con
not a request to change: just a question. […]
If
you asked me my bet would be that a local non-static variable would always be allocated in
the stack, which means CPU time storing the data. But I'm no expert here on internals
so not 100% sure.
In the end it's a tradeoff between extra permanent mem use and CPU time here. I think
it makes sense to have it static.
https://gerrit.osmocom.org/c/libosmocore/+/32034/comment/c75a17c6_d5e00661
PS1, Line 272: /* bit numbers relative to "pure" EFR frame beginning,
: * not counting the signature bits. */
: 45, 46, 48, 49, 50, 51, 52, 53, 54, 55,
: 56, 57, 58, 59, 60, 61, 62, 63, 64, 65,
: 66, 67, 68, 94, 95, 96, 98, 99, 100, 101,
: 102, 103, 104, 105, 106, 107, 108, 109, 110, 111,
: 112, 113, 114, 115, 116, 117, 118, 148, 149, 150,
: 151, 152, 153, 154, 155, 156, 157, 158, 159, 160,
: 161, 162, 163, 164, 165, 166, 167, 168, 169, 170,
: 171, 196, 197, 198, 199, 200, 201, 202, 203, 204,
: 205, 206, 207, 208, 209, 212, 213, 214, 215, 216,
: 217, 218, 219, 220, 221 };
one tab indent too much, at least it looks that way in
gerrit
Ack
https://gerrit.osmocom.org/c/libosmocore/+/32034/comment/f6d52ed8_28eb99c1
PS1, Line 293: for (i = 0; i < ARRAY_SIZE(sid_code_word_bits); i++)
In general we always use {} in code blocks with multiple lines in it.
--
To view, visit
https://gerrit.osmocom.org/c/libosmocore/+/32034
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Iab9fb60028f4135375287bc42f5da7ca7838b5f0
Gerrit-Change-Number: 32034
Gerrit-PatchSet: 1
Gerrit-Owner: falconia <falcon(a)freecalypso.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: falconia <falcon(a)freecalypso.org>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Fri, 24 Mar 2023 12:27:07 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: comment