countlines in go asm, v1
This commit is contained in:
commit
9384c46598
8 changed files with 250 additions and 0 deletions
8
countlines_generic.go
Normal file
8
countlines_generic.go
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
//go:build !amd64 || gccgo || appengine
|
||||
|
||||
package countlines
|
||||
|
||||
// CountBytes function counts number of non-zero bits in slice of 8bit unsigned integers.
|
||||
func CountNewlines(s []byte) uint64 {
|
||||
return countNewlinesGo(s)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue