LEFT | RIGHT |
(Both sides are equal) |
1 // Copyright 2014 The Go Authors. All rights reserved. | 1 // Copyright 2014 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 // Generation of runtime function information (pclntab). | 5 // Generation of runtime function information (pclntab). |
6 | 6 |
7 package main | 7 package main |
8 | 8 |
9 import ( | 9 import ( |
10 "debug/goobj" | 10 "debug/goobj" |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 | 470 |
471 // appendVarint appends an unsigned varint encoding of v to p | 471 // appendVarint appends an unsigned varint encoding of v to p |
472 // and returns the resulting slice. | 472 // and returns the resulting slice. |
473 func appendVarint(p []byte, v uint32) []byte { | 473 func appendVarint(p []byte, v uint32) []byte { |
474 for ; v >= 0x80; v >>= 7 { | 474 for ; v >= 0x80; v >>= 7 { |
475 p = append(p, byte(v)|0x80) | 475 p = append(p, byte(v)|0x80) |
476 } | 476 } |
477 p = append(p, byte(v)) | 477 p = append(p, byte(v)) |
478 return p | 478 return p |
479 } | 479 } |
LEFT | RIGHT |