From be930668eccf842d5a1a068a3e01b660d5bcb813 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Mon, 24 Oct 2022 11:35:04 -0300 Subject: Remove all assembly optimizations for htonl and htons The builtin bswap is already used if optimziation is enabled for GCC 4.8+, so glibc symbols will be used in a very limited scenarios. Also, gcc generated code is quite similar to all but ia64 and i386 htons. Checked on alpha, i686, and ia64. --- sysdeps/ia64/htonl.S | 29 ----------------------------- sysdeps/ia64/htons.S | 29 ----------------------------- 2 files changed, 58 deletions(-) delete mode 100644 sysdeps/ia64/htonl.S delete mode 100644 sysdeps/ia64/htons.S (limited to 'sysdeps/ia64') diff --git a/sysdeps/ia64/htonl.S b/sysdeps/ia64/htonl.S deleted file mode 100644 index 109802967d..0000000000 --- a/sysdeps/ia64/htonl.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Change byte order in 32-bit value. ia64 version. - Copyright (C) 2000-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 - -ENTRY(htonl) - shl ret0 = r32, 32 - ;; - mux1 ret0 = ret0, @rev - ret -END(htonl) - -weak_alias (htonl, ntohl) diff --git a/sysdeps/ia64/htons.S b/sysdeps/ia64/htons.S deleted file mode 100644 index 5d53b33a06..0000000000 --- a/sysdeps/ia64/htons.S +++ /dev/null @@ -1,29 +0,0 @@ -/* Change byte order in 16-bit value. ia64 version. - Copyright (C) 2000-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 - -ENTRY(htons) - shl ret0 = r32, 48 - ;; - mux1 ret0 = ret0, @rev - ret -END(htons) - -weak_alias (htons, ntohs) -- cgit v1.2.3