You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This has a very fine distinction with little to no runtime effect, but it now follows AVR, and it makes the e.g. PRI16d format specifier just d rather than hd. Code is very unlikely to break, but it still seems possible.
New features
Implemented the all max-width functions in <inttypes.h> (except the wide character versions).
a1a8d22 - Implement the strtox family of instructions using PDCLib.
546bf8b - Define MB_CUR_MAX from <stdlib.h> in line with other clang targets.
eaf7bd5 - Implement atox family of functions using PDCLib.
08494f6 - Implement rand and srand using a 16-bit xorshift.
The implementation is a tradeoff; it's relatively small and fast, and its statistical properties are good for each bit of the output, but it has a short period of 65536. The standard puts no requirements on period, and this is the smallest PRNG I could find with good quality output within its period. We could use a 16-bit add-only LCG, which may be smaller but has worse behavior, or a 32-bit xorshift, which would provide a non-permutation in the low 16 bits returned by rand() and a POSIX compliant 2^32 period, but it would be considerably slower and larger.