github.com/cilium/cilium@v1.16.2/bpf/tests/builtin_gen (about)

     1  #!/usr/bin/env bash
     2  # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
     3  # Copyright Authors of Cilium
     4  
     5  for i in 8 16 32 64
     6  do
     7  	echo -e "\ttest___builtin_$1_single($i, 1);"
     8  	((j = 2 * i))
     9  	while [[ $j -le $2 ]]
    10  	do
    11  		echo -e "\ttest___builtin_$1_single($i, $((j / i)));"
    12  		((j = j + 2 * i))
    13  	done
    14  done