1
0
mirror of https://github.com/golang/go synced 2024-10-03 18:21:21 -06:00
go/src/libbio
Dmitriy Vyukov 79dca0327e libbio, all cmd: consistently use BGETC/BPUTC instead of Bgetc/Bputc
Also introduce BGET2/4, BPUT2/4 as they are widely used.
Slightly improve BGETC/BPUTC implementation.
This gives ~5% CPU time improvement on go install -a -p1 std.
Before:
real		user		sys
0m23.561s	0m16.625s	0m5.848s
0m23.766s	0m16.624s	0m5.846s
0m23.742s	0m16.621s	0m5.868s
after:
0m22.999s	0m15.841s	0m5.889s
0m22.845s	0m15.808s	0m5.850s
0m22.889s	0m15.832s	0m5.848s

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/12745047
2013-08-30 15:46:12 +04:00
..
bbuffered.c
bfildes.c
bflush.c libbio: add casts to remove -Wconversion warnings 2013-08-03 11:36:47 -07:00
bgetc.c libbio, all cmd: consistently use BGETC/BPUTC instead of Bgetc/Bputc 2013-08-30 15:46:12 +04:00
bgetd.c libbio, all cmd: consistently use BGETC/BPUTC instead of Bgetc/Bputc 2013-08-30 15:46:12 +04:00
bgetrune.c libbio, all cmd: consistently use BGETC/BPUTC instead of Bgetc/Bputc 2013-08-30 15:46:12 +04:00
binit.c
boffset.c
bprint.c libbio: add casts to remove -Wconversion warnings 2013-08-03 11:36:47 -07:00
bputc.c libbio, all cmd: consistently use BGETC/BPUTC instead of Bgetc/Bputc 2013-08-30 15:46:12 +04:00
bputrune.c libbio, all cmd: consistently use BGETC/BPUTC instead of Bgetc/Bputc 2013-08-30 15:46:12 +04:00
brdline.c libbio: add casts to remove -Wconversion warnings 2013-08-03 11:36:47 -07:00
brdstr.c libbio: add casts to remove -Wconversion warnings 2013-08-03 11:36:47 -07:00
bread.c libbio: add casts to remove -Wconversion warnings 2013-08-03 11:36:47 -07:00
bseek.c libbio: add casts to remove -Wconversion warnings 2013-08-03 11:36:47 -07:00
bwrite.c libbio: add casts to remove -Wconversion warnings 2013-08-03 11:36:47 -07:00
Makefile