osmo-pcu[master]: Use explicit type for pcu_lsb()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Stefan Sperling gerrit-no-reply at lists.osmocom.org
Fri Feb 16 14:18:16 UTC 2018


Patch Set 3:

The sister function pcu_bitcount() is used on wider types (e.g. see find_multi_slots() which uses it with unsigned int).

I think from an API point of view it makes more sense to keep both functions consistent.

Is the goal to get rid of templates? In that case, why not use uint32_t or even uint64_t so pcu_lsb() can be applied to any integer type?

-- 
To view, visit https://gerrit.osmocom.org/6105
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Id0bef691e17e4331c7c4b491661e36173d85388a
Gerrit-PatchSet: 3
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Stefan Sperling <ssperling at sysmocom.de>
Gerrit-HasComments: No



More information about the gerrit-log mailing list