LEFT | RIGHT |
(Both sides are equal) |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 // This file provides fast assembly versions for the elementary | 5 // This file provides fast assembly versions for the elementary |
6 // arithmetic operations on vectors implemented in arith.go. | 6 // arithmetic operations on vectors implemented in arith.go. |
7 | 7 |
8 // TODO(gri) - experiment with unrolled loops for faster execution | 8 // TODO(gri) - experiment with unrolled loops for faster execution |
9 | 9 |
10 // func mulWW(x, y Word) (z1, z0 Word) | 10 // func mulWW(x, y Word) (z1, z0 Word) |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 | 254 |
255 L7: MOVQ (R8)(BX*8), AX | 255 L7: MOVQ (R8)(BX*8), AX |
256 DIVQ R9 | 256 DIVQ R9 |
257 MOVQ AX, (R10)(BX*8) | 257 MOVQ AX, (R10)(BX*8) |
258 | 258 |
259 E7: SUBL $1, BX // i-- | 259 E7: SUBL $1, BX // i-- |
260 JGE L7 // i >= 0 | 260 JGE L7 // i >= 0 |
261 | 261 |
262 MOVQ DX, r+48(FP) | 262 MOVQ DX, r+48(FP) |
263 RET | 263 RET |
LEFT | RIGHT |