aboutsummaryrefslogtreecommitdiff
path: root/src/internal/bytealg/indexbyte_amd64.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/bytealg/indexbyte_amd64.s')
-rw-r--r--src/internal/bytealg/indexbyte_amd64.s24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/internal/bytealg/indexbyte_amd64.s b/src/internal/bytealg/indexbyte_amd64.s
index 5bf8866476..f78093c539 100644
--- a/src/internal/bytealg/indexbyte_amd64.s
+++ b/src/internal/bytealg/indexbyte_amd64.s
@@ -19,30 +19,6 @@ TEXT ·IndexByteString(SB), NOSPLIT, $0-32
LEAQ ret+24(FP), R8
JMP indexbytebody<>(SB)
- // Provide direct access to these functions from other packages.
- // This is the equivlant of doing:
- // package bytes
- // func IndexByte(b []byte, c byte) int {
- // return bytealg.IndexByte(s, c)
- // }
- // but involves no call overhead.
- // TODO: remove this hack when midstack inlining is enabled?
-TEXT bytes·IndexByte(SB), NOSPLIT, $0-40
- FUNCDATA $0, ·IndexByte·args_stackmap(SB)
- MOVQ b_base+0(FP), SI
- MOVQ b_len+8(FP), BX
- MOVB c+24(FP), AL
- LEAQ ret+32(FP), R8
- JMP indexbytebody<>(SB)
-
-TEXT strings·IndexByte(SB), NOSPLIT, $0-32
- FUNCDATA $0, ·IndexByteString·args_stackmap(SB)
- MOVQ s_base+0(FP), SI
- MOVQ s_len+8(FP), BX
- MOVB c+16(FP), AL
- LEAQ ret+24(FP), R8
- JMP indexbytebody<>(SB)
-
// input:
// SI: data
// BX: data len