Attention is currently required from: pespin.

fixeria has posted comments on this change by fixeria. ( 
https://gerrit.osmocom.org/c/osmo-bts/+/38301?usp=email )

Change subject: csd_v110: properly set bit E2 for TCH/F4.8 NT
......................................................................


Patch Set 2:

(2 comments)

File src/common/csd_v110.c:

https://gerrit.osmocom.org/c/osmo-bts/+/38301/comment/a1c1e802_cb2ca365?usp=email
 :
PS1, Line 113:                  if ((i & 1) == 0) { /* executed for Q1/Q3 */
> we usually use hex notation to do bitmask. […]
I prefer using hex-notation when dealing with values sent/received over the 
wire/radio. Here I am just checking for odd values, does `0x0` prefix really 
improve readability? A quick grep across all osmo-projects shows we're doing `i 
& 1` in many places...


https://gerrit.osmocom.org/c/osmo-bts/+/38301/comment/538b90cd_298770f6?usp=email
 :
PS1, Line 125:                           *   Q4 | =1 | =1
Yes, we do not execute this code for `i == 3` (i.e. block Q4) and use the value 
that was set during the previous iteration (i.e. block Q3), which should be 1 
according to the table above.

> so you use "e2_bit = 0" at the start of the function ...

I am just setting it to a random value (0 looks sane) to make gcc happy and not 
complain about using uninitialized values (even despite it's not possible 
here). We have seen this in some cases when it's logically impossible, but gcc 
is not smart/careful enough...



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

Gerrit-MessageType: comment
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: If8307a9ce0fdc6da45157149ccef7b840ff9d9b3
Gerrit-Change-Number: 38301
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: pespin <[email protected]>
Gerrit-Attention: pespin <[email protected]>
Gerrit-Comment-Date: Thu, 26 Sep 2024 19:44:25 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <[email protected]>

Reply via email to