]> Cypherpunks repositories - gostls13.git/commit
use cc provided xlog2 instead of system log2.
authorRuss Cox <rsc@golang.org>
Sat, 6 Jun 2009 06:12:07 +0000 (23:12 -0700)
committerRuss Cox <rsc@golang.org>
Sat, 6 Jun 2009 06:12:07 +0000 (23:12 -0700)
commit8720b4721f76c852c237fad28ce252dad07d785f
treeb7750780ac3e5a3cf395013581922ccace8577ae
parent01fe6a9c5845f654d0306ef228854a171c67fb24
use cc provided xlog2 instead of system log2.
(on plan 9 cc calls it log2, but that conflicts here.)
the difference is that xlog2 returns -1 on non powers of 2.
8c was rewriting /10 into /8.

R=ken
OCL=29968
CL=29968
src/cmd/8c/cgen.c