-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SSE and AVX code path to decoder.skipWhitespaces()
- Loading branch information
1 parent
d1c9b03
commit 4affcda
Showing
5 changed files
with
97 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
package gosaxml | ||
|
||
//go:noescape | ||
func openAngleBracket16([]uint8) uint16 | ||
func openAngleBracket16([]uint8) byte | ||
|
||
func findFirstOpenAngleBracket16(slice []uint8) int { | ||
return int(openAngleBracket16(slice)) | ||
func findFirstOpenAngleBracket16(slice []uint8) byte { | ||
return openAngleBracket16(slice) | ||
} | ||
|
||
//go:noescape | ||
func onlySpaces16([]uint8) uint16 | ||
func onlySpaces16([]uint8) byte | ||
|
||
func onlySpacesUntil16(slice []uint8, n int) bool { | ||
return onlySpaces16(slice)<<(16-n) == 0 | ||
func onlySpacesUntil16(slice []uint8, n byte) bool { | ||
return onlySpaces16(slice) >= n | ||
} | ||
|
||
//go:noescape | ||
func openAngleBracket32([]uint8) int | ||
func openAngleBracket32([]uint8) byte | ||
|
||
func findFirstOpenAngleBracket32(slice []uint8) int { | ||
func findFirstOpenAngleBracket32(slice []uint8) byte { | ||
return openAngleBracket32(slice) | ||
} | ||
|
||
//go:noescape | ||
func onlySpaces32([]uint8) uint32 | ||
func onlySpaces32([]uint8) byte | ||
|
||
func onlySpacesUntil32(slice []uint8, n int) bool { | ||
return onlySpaces32(slice)<<(32-n) == 0 | ||
func onlySpacesUntil32(slice []uint8, n byte) bool { | ||
return onlySpaces32(slice) >= n | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters