From fa344ccc4ba0bcde9e58feeed967af0de203a2fe Mon Sep 17 00:00:00 2001 From: mycroft Date: Tue, 24 Sep 2002 14:05:33 +0000 Subject: [PATCH] Remove quad support. We don't need it, and it wastes a lot of space. (It pulls in {,u}{div,mod}di3() and qdivrem().) --- libexec/ld.elf_so/xprintf.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/libexec/ld.elf_so/xprintf.c b/libexec/ld.elf_so/xprintf.c index 8219c37642cf..200051a082e4 100644 --- a/libexec/ld.elf_so/xprintf.c +++ b/libexec/ld.elf_so/xprintf.c @@ -1,4 +1,4 @@ -/* $NetBSD: xprintf.c,v 1.11 2002/09/24 13:06:07 mycroft Exp $ */ +/* $NetBSD: xprintf.c,v 1.12 2002/09/24 14:05:33 mycroft Exp $ */ /* * Copyright 1996 Matt Thomas @@ -28,18 +28,18 @@ */ #include -#include "rtldenv.h" #include #include #include #include #include +#include "rtldenv.h" + #ifdef RTLD_LOADER #define SZ_SHORT 0x01 #define SZ_INT 0x02 #define SZ_LONG 0x04 -#define SZ_QUAD 0x08 #define SZ_UNSIGNED 0x10 #define SZ_MASK 0x0f @@ -77,28 +77,21 @@ xvsnprintf(buf, buflen, fmt, ap) case 'l': size = (size&SZ_MASK)|SZ_LONG; fmt++; - if (fmt[1] == 'l') { - case 'q': - size = (size&SZ_MASK)|SZ_QUAD; - fmt++; - } goto rflag; case 'u': size |= SZ_UNSIGNED; /* FALLTHROUGH */ case 'd':{ - long long sval; - unsigned long long uval; + long sval; + unsigned long uval; char digits[sizeof(int) * 3], *dp = digits; #define SARG() \ (size & SZ_SHORT ? (short) va_arg(ap, int) : \ size & SZ_LONG ? va_arg(ap, long) : \ -size & SZ_QUAD ? va_arg(ap, long long) : \ va_arg(ap, int)) #define UARG() \ (size & SZ_SHORT ? (unsigned short) va_arg(ap, unsigned int) : \ size & SZ_LONG ? va_arg(ap, unsigned long) : \ -size & SZ_QUAD ? va_arg(ap, unsigned long long) : \ va_arg(ap, unsigned int)) #define ARG() (size & SZ_UNSIGNED ? UARG() : SARG())