From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,URIBL_BLACK autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4395 invoked from network); 20 Apr 2021 19:16:28 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 20 Apr 2021 19:16:28 -0000 Received: (qmail 22391 invoked by uid 550); 20 Apr 2021 19:16:08 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 22256 invoked from network); 20 Apr 2021 19:16:07 -0000 X-Virus-Scanned: Debian amavisd-new at disroot.org From: =?UTF-8?q?=C3=89rico=20Nogueira?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1618946153; bh=OOXiNhQHMgNksF3DPNLmrXicW3g6j7md5tKZdgDdyWI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Yluodf+23SqBhuQQabhovIFTC2vmPmC6tE9FsEJH5dNx+R7fnWm7+Puz+sXqPwBe+ jWQ+74MZvZAQtRlgZMfA/9PscPmugZSvc0zZ4FQE0DzvcplSLim11uTieu7P8gWG5s dvYVEUNFT6qcZFA/KEltOF2Y85aFOj3FdktjPEzvr27xKVqPgVwrFIoETxACsZEXcR Di83G3/TYbN+sdeMq3F452B4THuyxCrLq7QM1qQ7qzwZgj0jO5/B8wGxwiyGUFr1op OBt2Cpis2cq0y5J4Y1SxZVFitkiEPmFwIULE/AvNK/8FeD/2YC18xc328Gyo0UePAD MTReUTOzsxE4g== To: musl@lists.openwall.com Cc: =?UTF-8?q?=C3=89rico=20Nogueira?= Date: Tue, 20 Apr 2021 16:15:19 -0300 Message-Id: <20210420191519.23822-5-ericonr@disroot.org> In-Reply-To: <20210420191519.23822-1-ericonr@disroot.org> References: <20210420191519.23822-1-ericonr@disroot.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [musl] [PATCH] shorten __aeabi_memset by one instruction when building for armhf, this makes libc.so text smaller by 4 bytes: 606619 to 606615 --- src/string/arm/__aeabi_memset.s | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/string/arm/__aeabi_memset.s b/src/string/arm/__aeabi_memset.s index f9f60583..980774e8 100644 --- a/src/string/arm/__aeabi_memset.s +++ b/src/string/arm/__aeabi_memset.s @@ -24,8 +24,7 @@ __aeabi_memset: cmp r1, #0 beq 2f adds r1, r0, r1 -1: strb r2, [r0] - adds r0, r0, #1 +1: strb r2, [r0], #1 cmp r1, r0 bne 1b 2: bx lr -- 2.31.1