gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/atomicbitops/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 2 3 package( 4 default_applicable_licenses = ["//:license"], 5 licenses = ["notice"], 6 ) 7 8 go_library( 9 name = "atomicbitops", 10 srcs = [ 11 "32b_32bit.go", 12 "32b_64bit.go", 13 "aligned_32bit_unsafe.go", 14 "aligned_64bit.go", 15 "atomicbitops.go", 16 "atomicbitops_amd64.s", 17 "atomicbitops_arm64.go", 18 "atomicbitops_arm64.s", 19 "atomicbitops_float64.go", 20 "atomicbitops_noasm.go", 21 ], 22 visibility = ["//:sandbox"], 23 deps = [ 24 "//pkg/cpuid", 25 "//pkg/sync", 26 "@org_golang_x_sys//cpu:go_default_library", 27 ], 28 ) 29 30 go_test( 31 name = "atomicbitops_benchmark_test", 32 size = "small", 33 srcs = ["atomicbitops_benchmark_test.go"], 34 library = ":atomicbitops", 35 ) 36 37 go_test( 38 name = "atomicbitops_test", 39 size = "small", 40 srcs = [ 41 "aligned_test.go", 42 "atomicbitops_test.go", 43 ], 44 library = ":atomicbitops", 45 deps = ["//pkg/sync"], 46 )