Attention is currently required from: falconia.

fixeria has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/37558?usp=email )

Change subject: codec: add osmo_hr_sid_classify()
......................................................................


Patch Set 2:

(2 comments)

File src/codec/hr_sid_class.c:

https://gerrit.osmocom.org/c/libosmocore/+/37558/comment/9781f8e8_314e66a0
PS2, Line 35: for (; byte; byte >>= 1) {
This is absolutely fine for not so hot code paths, but if this is to be done 
for each byte of each RTP frame, I would recommend using a look-up table here. 
It can contain bit count for all 4-bit values, so then you could do:

```
return table[byte >> 4] + table[byte & 0x0f].
```


https://gerrit.osmocom.org/c/libosmocore/+/37558/comment/91be866d_6ca1e1ec
PS2, Line 144: class1_ones = sid_field_ones - class2_ones;
I am wondering if, in theory, `class2_ones` can be greater than 
`sid_field_ones`?
We'll end up with a huge number in this case.



--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/37558?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I5f4eb65379646125b966cf182775b6e9348900bd
Gerrit-Change-Number: 37558
Gerrit-PatchSet: 2
Gerrit-Owner: falconia <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-CC: fixeria <[email protected]>
Gerrit-Attention: falconia <[email protected]>
Gerrit-Comment-Date: Mon, 29 Jul 2024 07:58:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment

Reply via email to