From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id AC2yKoeKDWQFOAEASxT56A (envelope-from ) for ; Sun, 12 Mar 2023 09:17:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uIlmKoeKDWSsgwAAauVa8A (envelope-from ) for ; Sun, 12 Mar 2023 09:17:11 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8339026F9B for ; Sun, 12 Mar 2023 09:17:11 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbGt6-0003lv-6j; Sun, 12 Mar 2023 04:17:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbGt4-0003lc-PD for guix-patches@gnu.org; Sun, 12 Mar 2023 04:17:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pbGt4-0003pD-HG for guix-patches@gnu.org; Sun, 12 Mar 2023 04:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pbGt4-0002nD-DE for guix-patches@gnu.org; Sun, 12 Mar 2023 04:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#61586] BinaryEn Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 12 Mar 2023 08:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61586 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Andreas Enge , 61586@debbugs.gnu.org Received: via spool by 61586-submit@debbugs.gnu.org id=B61586.167860901410719 (code B ref 61586); Sun, 12 Mar 2023 08:17:02 +0000 Received: (at 61586) by debbugs.gnu.org; 12 Mar 2023 08:16:54 +0000 Received: from localhost ([127.0.0.1]:59089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pbGsv-0002mn-SR for submit@debbugs.gnu.org; Sun, 12 Mar 2023 04:16:54 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:36417) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pbGsu-0002mb-8O for 61586@debbugs.gnu.org; Sun, 12 Mar 2023 04:16:52 -0400 Received: by mail-ed1-f65.google.com with SMTP id da10so37150446edb.3 for <61586@debbugs.gnu.org>; Sun, 12 Mar 2023 00:16:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678609006; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=wGu1X0W/gffA6ErvkY1JEP8xQR6J/B8Qdy5qAZ6t5K8=; b=SWmM5lZamOiNr2vC1tj0RGcFJcomvtrJTv30YoNe+RgjRITBlpMbcbZzOH3/4GzoLQ PFrYVozDi2RwwxLNyA6RNE4JCDkxPZRwIATLrXGBRVA7rG66haF7b14htogMSOMAAC52 A7QHhBrnPFtld3351En9+8Wc0wpwzpng+oRF7BxnVeRlNcqfSueFii4GW76yKOIGzUiH gx0JQQv2ypd5OREGExGW7J2+iXjycmU/3+T+mmY1BYOk0kzPKnafEIYENougvVzCiWFi He+O+S/kw0dAOebzN9sRoM+noaYwdmLJCracbbBHxvr1OYZal0un7A/OO/ZB4GwtlfOt gqnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678609006; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=wGu1X0W/gffA6ErvkY1JEP8xQR6J/B8Qdy5qAZ6t5K8=; b=1afSs8nZ0ZnTzV5g6GogbgCNrcEgJaRBCBwuYJzL7zDcNXygcj4LczZkr7rGP2o5I/ I+G7LsgbydtPZsWmoxMePDDcrzjtQmQWJsaNyYhZS0cMCTaooPrT9hjILu5eg0VqgE/C ccAk3NhBcnAezJ0Gv5MZ4vklwF3/IHEK+bEX5S2bGzISJPdJvsH9ouxwOhdWmeKfHHfK KbNJVNh3CGVvOhAC7Vcse+n3Yq+IZuJQZqNG/SAmCWPbMoL7uAQWTqeOpE/lp7UyFLdZ peX1mj+98Fj1QM3r3P6wRRpRfjDFi75YwAznXMm42X/R6j2LrglyeOleTRxyt2WZs31r xJJg== X-Gm-Message-State: AO0yUKUJy7I/r7o8jaiD3AX5elGF2EIbXKvbffHEnFWPMi1O9kp3h1Wz 7zj0S7qR0EwuQmOoX41pxqmZBh19HGDR6Q== X-Google-Smtp-Source: AK7set+HURdmvNI4wF9RVQb79+4hsASexYp1mEvTHVZttoBGmVl+KldyLL7qNEKHexCZH6oFuYVhfw== X-Received: by 2002:a50:ee18:0:b0:4ac:b6b2:1233 with SMTP id g24-20020a50ee18000000b004acb6b21233mr27343996eds.30.1678609006496; Sun, 12 Mar 2023 00:16:46 -0800 (PST) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id t5-20020a50ab45000000b004bf7905559asm1969557edc.44.2023.03.12.00.16.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Mar 2023 00:16:46 -0800 (PST) Message-ID: From: Liliana Marie Prikler Date: Sun, 12 Mar 2023 09:16:45 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.0 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=SWmM5lZa; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678609031; a=rsa-sha256; cv=none; b=OeEJ3Kn/oZpNmiM9qHGVGX8ZOcxHrwKltgmpCmF5sc1Um3pwOQBU5VthEFMZrgVDPu6Iw0 qLFfuHpZkywKuwYmXCAYF46YTNPy42eLfPxSf1ayAhjzn6UM7UF74L1TTKHeC+PJO5Uwd/ K+O4mbtmX3zNxI/CYGzhWjAqLCVf+DmJmrdxxDENkljtu8CDvu/ELiJZV1ZxxqtBKz1v4v IqFG93KbScLQXwJQBlOU9Ke1QiE4laXDHgvu/OXpU1Dmk/gpj2vFncxCDRV7LbL1MqeAqq 89W85256yb9lC4pR2RYRsAbO3H2oYHKKrcZkIfDt+QLNY2DRA2knansUp3UOWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678609031; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=wGu1X0W/gffA6ErvkY1JEP8xQR6J/B8Qdy5qAZ6t5K8=; b=ODuviXbl/tivaUEiBqqmdu7ETLN9eZyIm5A2c6sIV7+KACrSzkQqYxc/5zIt44eAvd8tiP Em9mp1WI76kNgqbXkso8puSddG3X1dzHzHnEY9Gj0Nm84LCLDSGgCfmHpURs42h0hnImee 06zG4YYXKJ6hZkAUEw5RXsh3B69iJlTYBKT6TcH+/Yus86sbv9qUJbf+gcpLZsyW3HALZI OOaizgDDCj2fvBtQnbDsjqwqo58WvooxM4xfMeuANg6p9UccHxeT0C3BQ3fziVPicSohU1 +1ZxPq8Tf1QTvvlD0FfMo5p9rBICYwuss+eG4a0K8j4zn7y6obEe4pStURy3Sg== X-Migadu-Spam-Score: -2.11 X-Spam-Score: -2.11 X-Migadu-Queue-Id: 8339026F9B X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=SWmM5lZa; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-TUID: H7aIHbhjPR+p Am Samstag, dem 11.03.2023 um 23:48 +0100 schrieb Andreas Enge: > Hello Liliana, Hi Andreas, please don't forget to add me in CC. > how about you start by pushing the python-filecheck package? I'd only do that if it has another user and for the time being I don't see that. Don't worry, I still got more python packages in my backlog :) > Do you have a pointer to BinaryEn using -msse2 for precision? > I am not familiar with SSE2, but a quick look-up on Wikipedia only > shows (packed) double floating point operations and packed integer > arithmetic. > All these should be feasible directly in C, although maybe more > slowly. Possible, but more slowly in C doesn't translate that nicely if you don't want to code up your own float/double types and you really don't want that. The problem here is that expressions like: double a, b, c; c =3D sqrt(a * a, b * b); can use 80 bit intermediaries on x87 chips, which they don't when using SSE2 =E2=80=93 hence the precision argument. You would have to redefine al= l basic operations for your floating point (which would still be doable in C++ due to operator overloading, but be a major pain in the butt to do correctly and well-tested, hence the deference to SSE2, I believe). > In the CMakeLists.txt file there are the following lines: > =C2=A0 if(NOT EMSCRIPTEN) > =C2=A0=C2=A0=C2=A0 if(CMAKE_SYSTEM_PROCESSOR MATCHES "^i.86$") > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # wasm doesn't allow for x87 floating poin= t math > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 add_compile_flag("-msse2") > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 add_compile_flag("-mfpmath=3Dsse") > =C2=A0=C2=A0=C2=A0 elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^armv[2-6]" AND= NOT > CMAKE_CXX_FLAGS MATCHES "-mfpu=3D") > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 add_compile_flag("-mfpu=3Dvfpv3") > =C2=A0=C2=A0=C2=A0 endif() > =C2=A0 endif() >=20 > So the -msse2 flag will not be added on arm; the package is compiled > successfully on aarch64, and I see no reason why in principal it > should not also work on armhf.=C2=A0 It does require the vfpv3 fpu, which I believe won't exist on all arms. > Maybe there is a more precise test for x86_64 that could be used > instead of > =C2=A0=C2=A0=C2=A0 if(CMAKE_SYSTEM_PROCESSOR MATCHES "^i.86$") ? Not for the kind of check they want to make, I believe. Cheers