Files

47 lines
1008 B
Python
Raw Permalink Normal View History

2020-01-27 10:04:07 -08:00
load("//tools:defs.bzl", "go_library", "go_test")
2018-04-27 10:37:02 -07:00
package(
default_applicable_licenses = ["//:license"],
licenses = ["notice"],
)
2018-10-23 00:19:11 -07:00
2018-04-27 10:37:02 -07:00
go_library(
name = "atomicbitops",
srcs = [
2022-04-18 17:27:50 -07:00
"32b_32bit.go",
"32b_64bit.go",
2021-03-19 13:44:26 -07:00
"aligned_32bit_unsafe.go",
"aligned_64bit.go",
2020-02-18 13:42:31 -08:00
"atomicbitops.go",
"atomicbitops_amd64.s",
"atomicbitops_arm64.go",
2020-02-20 11:14:53 -08:00
"atomicbitops_arm64.s",
2023-06-01 14:18:20 -07:00
"atomicbitops_float64.go",
2020-02-18 13:42:31 -08:00
"atomicbitops_noasm.go",
2018-04-27 10:37:02 -07:00
],
visibility = ["//:sandbox"],
deps = [
"//pkg/cpuid",
"//pkg/sync",
"@org_golang_x_sys//cpu:go_default_library",
],
2018-04-27 10:37:02 -07:00
)
go_test(
name = "atomicbitops_benchmark_test",
size = "small",
srcs = ["atomicbitops_benchmark_test.go"],
library = ":atomicbitops",
2018-04-27 10:37:02 -07:00
)
go_test(
name = "atomicbitops_test",
size = "small",
2021-07-26 15:41:11 -07:00
srcs = [
"aligned_test.go",
"atomicbitops_test.go",
],
2020-01-27 10:04:07 -08:00
library = ":atomicbitops",
2020-01-09 22:00:42 -08:00
deps = ["//pkg/sync"],
2018-04-27 10:37:02 -07:00
)