From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta1.formilux.org (mta1.formilux.org [51.159.59.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 870392D372D for ; Sun, 8 Feb 2026 15:14:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=51.159.59.229 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770563664; cv=none; b=iBNRG9jWAFM891Z5XXQqZ7iv2bQpUdSVioJ7TdQKKbR3Z745aFwEy61/Lev8zwEyQFKucQWjf5usYlTF9e/dkveBJgCgynlranz1pvcunE+B06QT5y75bmgg2oK4IusFW6TzM3xGLnLEb3ii03+xMTEO+llsZ2Bpi+1byOsIM8w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770563664; c=relaxed/simple; bh=TK+n41gpkTjALP4TZbiDccusm0Gkwu7BqxwHAm//sjM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Uxj+OtbYb+Q4z1yWRq2VCe04Uo8Yh1a/3mitY+H0zub8JjmWlVDXTHxLbqAKCGXHvlpgLQuyovHnL8RRkbJHb/bGGwoqeha1fB+bc1oxv1+A86RxL1lgEWN6nJ4F6w+EVo63s2NnudFynHziS6sdqZ5v6/f2aDiM0BQjrMj8qSY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=1wt.eu; spf=pass smtp.mailfrom=1wt.eu; dkim=pass (1024-bit key) header.d=1wt.eu header.i=@1wt.eu header.b=RkKXbaM8; arc=none smtp.client-ip=51.159.59.229 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=1wt.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=1wt.eu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=1wt.eu header.i=@1wt.eu header.b="RkKXbaM8" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1wt.eu; s=mail; t=1770563663; bh=TSpHFJtfbSL4fAId9AtlRybJVA9NrOWSZPfX4yQBnHA=; h=From:Message-ID:From; b=RkKXbaM8MpYIMhPMRq9wqEZ3RPg6y+9BNAyt6F0aI719FGX8uPCcJ7KgkBNVHnGXN kvMXPUP9BuQ+kclTiKhfA7SS15eG2GMP9NjZN6sU/FUajHg0inZUjRP8VvzKUDxg/L WWmQqSRyQzbYcGXCKtedbk3GBDN+Pr7s2t7HCNtc= Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by mta1.formilux.org (Postfix) with ESMTP id 1F288C0A6F; Sun, 08 Feb 2026 16:14:23 +0100 (CET) Date: Sun, 8 Feb 2026 16:14:22 +0100 From: Willy Tarreau To: David Laight Cc: Thomas =?iso-8859-1?Q?Wei=DFschuh?= , linux-kernel@vger.kernel.org, Cheng Li Subject: Re: [PATCH v2 next 04/11] tools/nolibc/printf: Output pad characters in 16 byte chunks Message-ID: References: <20260206191121.3602-1-david.laight.linux@gmail.com> <20260206191121.3602-5-david.laight.linux@gmail.com> <20260207234305.508019e5@pumpkin> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260207234305.508019e5@pumpkin> On Sat, Feb 07, 2026 at 11:43:05PM +0000, David Laight wrote: > On Sat, 7 Feb 2026 20:38:36 +0100 > Willy Tarreau wrote: > > > On Fri, Feb 06, 2026 at 07:11:14PM +0000, david.laight.linux@gmail.com wrote: > > > From: David Laight > > > > > > Simple to do and saves calls to the callback function. > > > > +20 bytes here but OK for me. > > I think some of those come back when I change all the variables to 'int'. > Some, but not all, is because width is 32bit but len is 64bit. > The final change that did: > width -= len; > ... > while (width > 0) > saved a surprising amount provided the ... contained some code. > Breath on the code (or compiler version) and you easily get +/-60 bytes. Yeah I tried as well with size_t (since compilers generally do not like mixing data types and tend to place conversions every few instructions), but some constants become larger and the code inflates as well. Willy