diff options
author | Rich Felker <dalias@aerifal.cx> | 2018-10-18 13:37:05 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-10-18 13:41:25 -0400 |
commit | d8870dcf385a75ae8df2f8bb5bd5ee59525ed348 (patch) | |
tree | c92f8ccffd491650b6b487156c4ddb5fec2442aa /src/string/strndup.c | |
parent | a21a6092cfc0c7e7cb8c0273e5f94d54c0e0eabd (diff) | |
download | musl-d8870dcf385a75ae8df2f8bb5bd5ee59525ed348.tar.gz musl-d8870dcf385a75ae8df2f8bb5bd5ee59525ed348.tar.xz musl-d8870dcf385a75ae8df2f8bb5bd5ee59525ed348.zip |
optimize internal putc_unlocked macro used in putc
to check whether flush due to line buffering is needed, the int-type character argument must be truncated to unsigned char for comparison. if the original value is subsequently passed to __overflow, it must be preserved, adding to register pressure. since it doesn't matter, truncate all uses so the original value is no longer live.
Diffstat (limited to 'src/string/strndup.c')
0 files changed, 0 insertions, 0 deletions