Projects
osmocom:master
libosmocore
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 232
View file
libosmocore.spec
Changed
@@ -14,13 +14,13 @@ Name: libosmocore Requires: osmocom-master -Version: 1.9.0.4.4332 +Version: 1.9.0.5.5285 Release: 0 Summary: The Open Source Mobile Communications Core Library License: GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later AND AGPL-3.0-or-later Group: Productivity/Telephony/Utilities Url: https://osmocom.org/projects/libosmocore/wiki/Libosmocore -Source: libosmocore_1.9.0.4.4332.tar.xz +Source: libosmocore_1.9.0.5.5285.tar.xz Source1: rpmlintrc BuildRequires: automake >= 1.6 BuildRequires: libtool >= 2
View file
commit_433218a6ef5853f4d40a488d1a1e8b824eab2e7c.txt
Deleted
View file
commit_5285d475485f6414ca6afbdeb36c5f4c844517de.txt
Added
View file
libosmocore_1.9.0.4.4332.dsc -> libosmocore_1.9.0.5.5285.dsc
Changed
@@ -2,7 +2,7 @@ Source: libosmocore Binary: libosmocore, libosmocodec4, libosmocodec-doc, libosmocoding0, libosmocoding-doc, libosmocore21, libosmocore-doc, libosmogb14, libosmogb-doc, libosmogsm20, libosmogsm-doc, libosmoisdn0, libosmoisdn-doc, libosmovty13, libosmovty-doc, libosmoctrl0, libosmoctrl-doc, libosmosim2, libosmosim-doc, libosmousb0, libosmousb-doc, libosmocore-dev, libosmocore-utils, libosmocore-dbg Architecture: any all -Version: 1.9.0.4.4332 +Version: 1.9.0.5.5285 Maintainer: Osmocom team <openbsc@lists.osmocom.org> Homepage: https://projects.osmocom.org/projects/libosmocore Standards-Version: 3.9.8 @@ -35,8 +35,8 @@ libosmovty-doc deb doc optional arch=all libosmovty13 deb libs optional arch=any Checksums-Sha1: - c03e5aa2693bd064ebb548d4ccf05322e00a9635 1072524 libosmocore_1.9.0.4.4332.tar.xz + 9dd88540b0c60f1ecf4c3152c59f87362e17cfea 1073448 libosmocore_1.9.0.5.5285.tar.xz Checksums-Sha256: - ffeddf04733d32f401d9ff3a42fa04adcef5d892f3762c07ebfce36e93391e08 1072524 libosmocore_1.9.0.4.4332.tar.xz + ef29443b41511b73b6d97e5b6f38e47fdf4012ec66d9a8fa43600a1945a0a6a3 1073448 libosmocore_1.9.0.5.5285.tar.xz Files: - 8d5baf81be1a72a8232778a66e27d912 1072524 libosmocore_1.9.0.4.4332.tar.xz + 648f90bb0ed6c20bccb99cb5fd0fc21c 1073448 libosmocore_1.9.0.5.5285.tar.xz
View file
libosmocore_1.9.0.4.4332.tar.xz/.tarball-version -> libosmocore_1.9.0.5.5285.tar.xz/.tarball-version
Changed
@@ -1 +1 @@ -1.9.0.4-4332 +1.9.0.5-5285
View file
libosmocore_1.9.0.4.4332.tar.xz/debian/changelog -> libosmocore_1.9.0.5.5285.tar.xz/debian/changelog
Changed
@@ -1,8 +1,8 @@ -libosmocore (1.9.0.4.4332) unstable; urgency=medium +libosmocore (1.9.0.5.5285) unstable; urgency=medium * Automatically generated changelog entry for building the Osmocom master feed - -- Osmocom OBS scripts <info@osmocom.org> Sun, 24 Sep 2023 17:48:29 +0000 + -- Osmocom OBS scripts <info@osmocom.org> Tue, 26 Sep 2023 08:57:21 +0000 libosmocore (1.9.0) unstable; urgency=medium
View file
libosmocore_1.9.0.4.4332.tar.xz/include/osmocom/gsm/gsm0502.h -> libosmocore_1.9.0.5.5285.tar.xz/include/osmocom/gsm/gsm0502.h
Changed
@@ -64,6 +64,25 @@ #define GSM_NBITS_AB_GMSK_TAIL GSM_NBITS_NB_GMSK_TAIL #define GSM_NBITS_AB_GMSK_BURST GSM_NBITS_NB_GMSK_BURST +/*! Compare the given TDMA FNs, taking the wrapping into account. + * \paramin fn1 First TDMA Fn value to compare. + * \paramin fn2 Second TDMA Fn value to compare. + * \returns similarly to memcmp(), -1 if fn1 goes before fn2; + * 0 if fn1 equals fn2; + * 1 if fn1 goes after fn2. */ +static inline int gsm0502_fn_compare(uint32_t fn1, uint32_t fn2) +{ + const uint32_t thresh = GSM_TDMA_HYPERFRAME / 2; + + if (fn1 == fn2) + return 0; + if ((fn1 < fn2 && (fn2 - fn1) < thresh) || + (fn1 > fn2 && (fn1 - fn2) > thresh)) + return -1; + + return 1; +} + /* Table 5 Clause 7 TS 05.02 */ static inline unsigned int gsm0502_get_n_pag_blocks(const struct gsm48_control_channel_descr *chan_desc)
View file
libosmocore_1.9.0.4.4332.tar.xz/tests/gsm0502/gsm0502_test.c -> libosmocore_1.9.0.5.5285.tar.xz/tests/gsm0502/gsm0502_test.c
Changed
@@ -148,8 +148,28 @@ printf("\n"); } +static void test_gsm0502_fn_compare(void) +{ + OSMO_ASSERT(gsm0502_fn_compare(1337, 1337) == 0); + OSMO_ASSERT(gsm0502_fn_compare(42, 1337) == -1); + OSMO_ASSERT(gsm0502_fn_compare(1337, 42) == 1); + OSMO_ASSERT(gsm0502_fn_compare(42, 0) == 1); + + /* 2715642 is very close to the Fn period (GSM_TDMA_HYPERFRAME) */ + OSMO_ASSERT(gsm0502_fn_compare(2715642, 42) == -1); + OSMO_ASSERT(gsm0502_fn_compare(42, 2715642) == 1); + OSMO_ASSERT(gsm0502_fn_compare(0, 2715642) == 1); + + /* 1357824 is half of the Fn period (GSM_TDMA_HYPERFRAME) */ + OSMO_ASSERT(gsm0502_fn_compare(1357820, 1357824) == -1); + OSMO_ASSERT(gsm0502_fn_compare(1357820, 1357825) == -1); + OSMO_ASSERT(gsm0502_fn_compare(1357824, 1357820) == 1); + OSMO_ASSERT(gsm0502_fn_compare(1357825, 1357820) == 1); +} + int main(int argc, char **argv) { test_gsm0502_fn_remap(); + test_gsm0502_fn_compare(); return EXIT_SUCCESS; }
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.