From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.52]) by sourceware.org (Postfix) with ESMTPS id 8EB903858C53 for ; Thu, 20 Oct 2022 23:02:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8EB903858C53 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=opensuse.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ot1-f52.google.com with SMTP id r8-20020a056830120800b00661a0a236efso794954otp.4 for ; Thu, 20 Oct 2022 16:02:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UWQadRGsmVs/JzcHtzs+/Y+/rMHaKVv6OSzxnfzRGpg=; b=i+aXykOBnVuJyIGDoqaXA5rBana4IbhoqdELhjq8sNKz4S89bLy/9xDU6y9xdO0xpX Cb4H6cZqt4tnP0Ade3uVhGhXs3vAKV2CIprLv0DnAZ4o7BUry2N13caRSCOEIMl6VrRN XCYSl1GbfwSBOn82y2B2A3iDgKHZuNjBpwG66vq7rUPosJqk3Cs93aNes6+UQjO2Ycxm Sa09LcvOp7ru3+VtErhA2fC7OBCzna4X9eSi3uytFtZP/222fczbvJql8brq5voiDIus aMu+UVH2MhI6OGnnNeb96ACTfS3hvwX6yXXzjlkLh/XKh3UqcPiXnvNE6VasYRQ2UY+R PpfA== X-Gm-Message-State: ACrzQf2PqLRHyfV2SsodbYoPUSPFkv+WRovdy85uqaAi04F9fOOY8/Yp +ypv5QZpixZAEiDdogsrVF7GB/8oGrQ= X-Google-Smtp-Source: AMsMyM45F73jBklTTysyrgRcn8WObunemig4wwGRYzyrddKP461WZGpI+ldTR9jL/jPoRxVSnC3VyQ== X-Received: by 2002:a9d:5e84:0:b0:661:a58a:305f with SMTP id f4-20020a9d5e84000000b00661a58a305fmr7813988otl.137.1666306962610; Thu, 20 Oct 2022 16:02:42 -0700 (PDT) Received: from tumbleweedvm.. (181-162-10-230.baf.movistar.cl. [181.162.10.230]) by smtp.gmail.com with ESMTPSA id t14-20020a056870f20e00b00132756f2c94sm2463947oao.12.2022.10.20.16.02.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 16:02:42 -0700 (PDT) From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= To: libc-alpha@sourceware.org Cc: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= Subject: [PATCH] Remove htonl.S for i386/x86_64 Date: Thu, 20 Oct 2022 23:02:37 +0000 Message-Id: <20221020230237.19630-1-crrodriguez@opensuse.org> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,GIT_PATCH_0,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,KAM_NUMSUBJECT,KAM_SHORT,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Generic implementation on top of __bswap_32 always expands inline to either bswap or movbe depending on -march=*. Signed-off-by: Cristian Rodríguez --- sysdeps/i386/htonl.S | 34 ---------------------------------- sysdeps/x86_64/htonl.S | 34 ---------------------------------- 2 files changed, 68 deletions(-) delete mode 100644 sysdeps/i386/htonl.S delete mode 100644 sysdeps/x86_64/htonl.S diff --git a/sysdeps/i386/htonl.S b/sysdeps/i386/htonl.S deleted file mode 100644 index c925440fe4..0000000000 --- a/sysdeps/i386/htonl.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Change byte order in word. For Intel 80x86, x >= 4. - Copyright (C) 1997-2022 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#include -#include "asm-syntax.h" - -/* - INPUT PARAMETERS: - word (sp + 4) -*/ - - .text -ENTRY (htonl) - movl 4(%esp), %eax - bswap %eax - ret -END (htonl) - -weak_alias (htonl, ntohl) diff --git a/sysdeps/x86_64/htonl.S b/sysdeps/x86_64/htonl.S deleted file mode 100644 index 469da6340b..0000000000 --- a/sysdeps/x86_64/htonl.S +++ /dev/null @@ -1,34 +0,0 @@ -/* Change byte order in word. For AMD x86-64. - Copyright (C) 1997-2022 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#include -#include "asm-syntax.h" - -/* - INPUT PARAMETERS: - word %rdi -*/ - - .text -ENTRY (htonl) - movl %edi, %eax - bswap %eax - ret -END (htonl) - -weak_alias (htonl, ntohl) -- 2.38.0