]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Speed up __wcsconv() (and hence the printf() %ls format):
authortjr <tjr@FreeBSD.org>
Sun, 24 Jul 2005 12:12:44 +0000 (12:12 +0000)
committertjr <tjr@FreeBSD.org>
Sun, 24 Jul 2005 12:12:44 +0000 (12:12 +0000)
commitd5948017e9381368f9b2c698d387c982af9b4ffe
treede4ec994c99e2b7447f5cd9d592f59833aa61ed7
parentdae7e7f3e8cc89fb32a5e007cd67694e852b7fae
Speed up __wcsconv() (and hence the printf() %ls format):
- use wcsrtombs() instead of a wcrtomb() loop where possible.
- avoid wcrtomb() loop when output precision is small.
lib/libc/stdio/vfprintf.c