//go:build amd64 || arm64 || ppc64 || ppc64le || s390x
// +build amd64 arm64 ppc64 ppc64le s390x

package fasthttp

func roundUpForSliceCap( int) int {
	if  <= 0 {
		return 0
	}

	// Above 100MB, we don't round up as the overhead is too large.
	if  > 100*1024*1024 {
		return 
	}

	 := uint64( - 1)
	 |=  >> 1
	 |=  >> 2
	 |=  >> 4
	 |=  >> 8
	 |=  >> 16

	return int( + 1)
}