musl/src/internal/intparse.c, branch master musl - an implementation of the standard library for Linux-based systems use the new integer parser (FILE/shgetc based) for strtol, wcstol, etc. 2012年04月16日T20:55:24+00:00 Rich Felker dalias@aerifal.cx 2012年04月16日T20:55:24+00:00 96e9773eb764afa649b099a6e283dba4c69389a9
use fast version of the int reading code for the high-order digits too 2012年04月13日T08:38:56+00:00 Rich Felker dalias@aerifal.cx 2012年04月13日T08:38:56+00:00 11f3e33f9bbb31330b1dc4a51c07f8c58aef2fdd this increases code size slightly, but it's considerably faster, especially for power-of-2 bases.
this increases code size slightly, but it's considerably faster,
especially for power-of-2 bases.
fix spurious overflows in strtoull with small bases 2012年04月13日T07:26:59+00:00 Rich Felker dalias@aerifal.cx 2012年04月13日T07:26:59+00:00 54222d1efc5239d3fc8c528672bd52bfd8dad813 whenever the base was small enough that more than one digit could still fit after UINTMAX_MAX/36-1 was reached, only the first would be allowed; subsequent digits would trigger spurious overflow, making it impossible to read the largest values in low bases.
whenever the base was small enough that more than one digit could
still fit after UINTMAX_MAX/36-1 was reached, only the first would be
allowed; subsequent digits would trigger spurious overflow, making it
impossible to read the largest values in low bases.
fix obscure bug in strtoull reading the highest 16 possible values 2012年03月02日T17:48:17+00:00 Rich Felker dalias@aerifal.cx 2012年03月02日T17:48:17+00:00 b4a07bb469ad5a81ee003b621c362d2e7be38159
comment non-obvious de bruijn sequence code in int parser 2011年07月25日T13:21:40+00:00 Rich Felker dalias@aerifal.cx 2011年07月25日T13:21:40+00:00 dd92a09ecac74760823b047c074e4b21a8cb531f
fix various bugs in new integer parser framework 2011年07月15日T02:11:00+00:00 Rich Felker dalias@aerifal.cx 2011年07月15日T02:11:00+00:00 47d027ee1a44829819c345287623fe75374893ab 1. my interpretation of subject sequence definition was wrong. adjust parser to conform to the standard. 2. some code for handling tail overflow case was missing (forgot to finish writing it). 3. typo (= instead of ==) caused ERANGE to wrongly behave like EINVAL
1. my interpretation of subject sequence definition was wrong. adjust
parser to conform to the standard.
2. some code for handling tail overflow case was missing (forgot to
finish writing it).
3. typo (= instead of ==) caused ERANGE to wrongly behave like EINVAL
new restartable integer parsing framework. 2011年07月14日T04:51:45+00:00 Rich Felker dalias@aerifal.cx 2011年07月14日T04:51:45+00:00 ecc9c5fcfa4831b290cc1a63c0346cbb0c1fcf42 this fixes a number of bugs in integer parsing due to lazy haphazard wrapping, as well as some misinterpretations of the standard. the new parser is able to work character-at-a-time or on whole strings, making it easy to support the wide functions without unbounded space for conversion. it will also be possible to update scanf to use the new parser.
this fixes a number of bugs in integer parsing due to lazy haphazard
wrapping, as well as some misinterpretations of the standard. the new
parser is able to work character-at-a-time or on whole strings, making
it easy to support the wide functions without unbounded space for
conversion. it will also be possible to update scanf to use the new
parser.

AltStyle によって変換されたページ (->オリジナル) /