1. 23 Jan, 2013 7 commits
  2. 22 Jan, 2013 16 commits
  3. 21 Jan, 2013 6 commits
  4. 20 Jan, 2013 3 commits
  5. 19 Jan, 2013 5 commits
  6. 18 Jan, 2013 3 commits
    • Russ Cox's avatar
      api: update next.txt · 1debf5bb
      Russ Cox authored
      R=golang-dev, minux.ma, dave
      CC=golang-dev
      https://golang.org/cl/7135061
      1debf5bb
    • Russ Cox's avatar
      math/big: fix typo · 92b2643c
      Russ Cox authored
      Fixes #4678.
      
      TBR=gri
      CC=golang-dev
      https://golang.org/cl/7135059
      92b2643c
    • Matthew Dempsky's avatar
      cmd/6c: Optimize rotate expressions to use rotate instructions. · bb192d13
      Matthew Dempsky authored
      For simplicity, only recognizes expressions of the exact form
      "(x << a) | (x >> b)" where x is a variable and a and b are
      integer constant expressions that add to x's bit width.
      
      Fixes #4629.
      
      $ cat rotate.c
      unsigned int
      rotate(unsigned int x)
      {
              x = (x << 3) | (x >> (sizeof(x) * 8 - 3));
              return x;
      }
      
      ## BEFORE
      $ go tool 6c -S rotate.c
      (rotate.c:2)	TEXT	rotate+0(SB),$0-8
      (rotate.c:2)	MOVL	x+0(FP),!!DX
      (rotate.c:4)	MOVL	DX,!!AX
      (rotate.c:4)	SALL	$3,!!AX
      (rotate.c:4)	MOVL	DX,!!CX
      (rotate.c:4)	SHRL	$29,!!CX
      (rotate.c:4)	ORL	CX,!!AX
      (rotate.c:5)	RET	,!!
      (rotate.c:5)	RET	,!!
      (rotate.c:5)	END	,!!
      
      ## AFTER
      $ go tool 6c -S rotate.c
      (rotate.c:2)	TEXT	rotate+0(SB),$0-8
      (rotate.c:4)	MOVL	x+0(FP),!!AX
      (rotate.c:4)	ROLL	$3,!!AX
      (rotate.c:5)	RET	,!!
      (rotate.c:5)	RET	,!!
      (rotate.c:5)	END	,!!
      
      R=rsc, minux.ma
      CC=golang-dev
      https://golang.org/cl/7069056
      bb192d13