about summary refs log tree commit diff
path: root/src/string/wcpncpy.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-04-11 14:20:45 -0400
committerRich Felker <dalias@aerifal.cx>2012-04-11 14:20:45 -0400
commit5837a0bb6b5cf516f79527e837368af0b494d51a (patch)
treea2cefcd2db2ce4011fe7d248b58b0513cd4b7a9c /src/string/wcpncpy.c
parent1bdd5c8b9868ebc092074e078604acb80546e43f (diff)
downloadmusl-5837a0bb6b5cf516f79527e837368af0b494d51a.tar.gz
musl-5837a0bb6b5cf516f79527e837368af0b494d51a.tar.xz
musl-5837a0bb6b5cf516f79527e837368af0b494d51a.zip
simplify/debloat radix point alignment code in floatscan
now that this is the first operation, it can rely on the circular
buffer contents not being wrapped when it begins. we limit the number
of digits read slightly in the initial parsing loops too so that this
code does not have to consider the case where it might cause the
circular buffer to wrap; this is perfectly fine because KMAX is chosen
as a power of two for circular-buffer purposes and is much larger than
it otherwise needs to be, anyway.

these changes should not affect performance at all.
Diffstat (limited to 'src/string/wcpncpy.c')
0 files changed, 0 insertions, 0 deletions