diff --git a/app/vmselect/promql/arch.go b/app/vmselect/promql/arch.go new file mode 100644 index 000000000..2e21b8674 --- /dev/null +++ b/app/vmselect/promql/arch.go @@ -0,0 +1,5 @@ +package promql + +import "unsafe" + +const maxByteSliceLen = 1<<(31+9*(unsafe.Sizeof(int(0))/8)) - 1 diff --git a/app/vmselect/promql/arch_386.go b/app/vmselect/promql/arch_386.go deleted file mode 100644 index 1399daa3b..000000000 --- a/app/vmselect/promql/arch_386.go +++ /dev/null @@ -1,3 +0,0 @@ -package promql - -const maxByteSliceLen = 1<<31 - 1 diff --git a/app/vmselect/promql/arch_amd64.go b/app/vmselect/promql/arch_amd64.go deleted file mode 100644 index e26cfda4d..000000000 --- a/app/vmselect/promql/arch_amd64.go +++ /dev/null @@ -1,3 +0,0 @@ -package promql - -const maxByteSliceLen = 1 << 40 diff --git a/app/vmselect/promql/arch_arm.go b/app/vmselect/promql/arch_arm.go deleted file mode 100644 index 1399daa3b..000000000 --- a/app/vmselect/promql/arch_arm.go +++ /dev/null @@ -1,3 +0,0 @@ -package promql - -const maxByteSliceLen = 1<<31 - 1