From 2b4d82482c887b260866e827e1abf7d57b7cebd7 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 31 Jan 2005 19:57:05 +0000 Subject: [PATCH] * smallprint.c (__rn): Regparmize. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/smallprint.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 7427b111d..81247a4d2 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2005-01-31 Christopher Faylor + + * smallprint.c (__rn): Regparmize. + 2005-01-31 Christopher Faylor * smallprint.c (rnarg): New macro. diff --git a/winsup/cygwin/smallprint.c b/winsup/cygwin/smallprint.c index 2528eec98..43d0decd4 100644 --- a/winsup/cygwin/smallprint.c +++ b/winsup/cygwin/smallprint.c @@ -24,6 +24,10 @@ int __small_vsprintf (char *dst, const char *fmt, va_list ap); #define rnarg(dst, base, dosign, len, pad) __rn ((dst), (base), (dosign), va_arg (ap, unsigned), len, pad, LMASK) #define rnargLL(dst, base, dosign, len, pad) __rn ((dst), (base), (dosign), va_arg (ap, unsigned long long), len, pad, LLMASK) +static char * __rn (char *, int, int, long long, int, int, + unsigned long long) __attribute__ ((regparm (3))); + + static char * __rn (char *dst, int base, int dosign, long long val, int len, int pad, unsigned long long mask) { -- 2.43.5