From dfc3070ec12b7c2bbdb47c301b0c52ebaaf5c070ad98882cf95c20916c24e6e4 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 16 Jan 2023 11:22:10 +0000 Subject: [PATCH] Accepting request 1058654 from home:Andreas_Schwab:Factory - openucx-s390x-support.patch: fix use of clz builtin for 64-bit value OBS-URL: https://build.opensuse.org/request/show/1058654 OBS-URL: https://build.opensuse.org/package/show/science:HPC/openucx?expand=0&rev=53 --- openucx-s390x-support.patch | 2 +- openucx.changes | 5 +++++ openucx.spec | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/openucx-s390x-support.patch b/openucx-s390x-support.patch index fa22dc6..428b948 100644 --- a/openucx-s390x-support.patch +++ b/openucx-s390x-support.patch @@ -244,7 +244,7 @@ index 000000000000..ce48ff1ff451 +{ + if (!n) + return 0; -+ return 63 - __builtin_clz(n); ++ return 63 - __builtin_clzl(n); +} + +static UCS_F_ALWAYS_INLINE unsigned ucs_ffs32(uint32_t n) diff --git a/openucx.changes b/openucx.changes index cfd14d0..a2ccdb7 100644 --- a/openucx.changes +++ b/openucx.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jan 16 09:45:05 UTC 2023 - Andreas Schwab + +- openucx-s390x-support.patch: fix use of clz builtin for 64-bit value + ------------------------------------------------------------------- Tue Oct 4 16:39:30 UTC 2022 - Nicolas Morey-Chaisemartin diff --git a/openucx.spec b/openucx.spec index 17e80ba..cb014d2 100644 --- a/openucx.spec +++ b/openucx.spec @@ -1,7 +1,7 @@ # # spec file for package openucx # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed