From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755339AbbBTXVt (ORCPT ); Fri, 20 Feb 2015 18:21:49 -0500 Received: from mail-lb0-f172.google.com ([209.85.217.172]:37608 "EHLO mail-lb0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752745AbbBTXVs (ORCPT ); Fri, 20 Feb 2015 18:21:48 -0500 From: Rasmus Villemoes To: Andrew Morton Cc: Rasmus Villemoes , linux-kernel@vger.kernel.org Subject: [PATCH 0/4] Some minor printf improvements Date: Sat, 21 Feb 2015 00:21:15 +0100 Message-Id: <1424474479-25543-1-git-send-email-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.1.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While studying the kernel's printf internals in order to write the kernel-specific format checking for smatch, I stumbled on a few things one could do to shave an instruction here and there. Nothing earth-shattering. Rasmus Villemoes (4): lib/vsprintf.c: Eliminate some branches lib/vsprintf.c: Reduce stack use in number() lib/vsprintf.c: Eliminate duplicate hex string array lib/vsprintf.c: Another small hack lib/vsprintf.c | 49 +++++++++++++++++-------------------------------- 1 file changed, 17 insertions(+), 32 deletions(-) -- 2.1.3