commit | 49b6040048a48e5936beaa44271fd9227ec8a753 | [log] [tgz] |
---|---|---|
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | Wed Nov 17 06:21:28 2021 +0300 |
committer | fixeria <vyanitskiy@sysmocom.de> | Thu Nov 18 13:11:20 2021 +0000 |
tree | 9e88c5a4c1e6d67d5d93a24126a2784d603bc45f | |
parent | 8a55a6c57152c5176af06a0d4c4ef0c515ab1050 [diff] |
bitvec_read_field(): optimize by expanding bytenum_from_bitnum() The bitvec_read_field() is used in performance critical places, such as the CSN.1 decoder in osmo-pcu. Thus the less conditional statements we have in the parsing loop, the better. The bitvec_get_bit_pos() alone is quite a complex function, which does check the boundaries and even supports the L/H syntax. Even if it gets inlined by the compiler, we don't really want to run redundant checks and run bitval2mask() on each iteration. Change-Id: I438fc82d33ab2edbabd4215ec7bc46afb07d50ab
This repository contains a set of C-language libraries that form the core infrastructure of many Osmocom Open Source Mobile Communications projects.
Historically, a lot of this code was developed as part of the OpenBSC project, but which are of a more generic nature and thus useful to (at least) other programs that we develop in the sphere of Free Software / Open Source mobile communications.
There is no clear scope of it. We simply move all shared code between the various Osmocom projects in this library to avoid code duplication.
The libosmocore.git repository build multiple libraries:
The official homepage of the project is https://osmocom.org/projects/libosmocore/wiki/Libosmocore
You can clone from the official libosmocore.git repository using
git clone git://git.osmocom.org/libosmocore.git
There is a cgit interface at https://git.osmocom.org/libosmocore/
Doxygen-generated API documentation is generated during the build process, but also available online for each of the sub-libraries at https://ftp.osmocom.org/api/latest/libosmocore/
Discussions related to libosmocore are happening on the openbsc@lists.osmocom.org mailing list, please see https://lists.osmocom.org/mailman/listinfo/openbsc for subscription options and the list archive.
Please observe the Osmocom Mailing List Rules when posting.
Our coding standards are described at https://osmocom.org/projects/cellular-infrastructure/wiki/Coding_standards
We us a gerrit based patch submission/review process for managing contributions. Please see https://osmocom.org/projects/cellular-infrastructure/wiki/Gerrit for more details
The current patch queue for libosmocore can be seen at https://gerrit.osmocom.org/#/q/project:libosmocore+status:open