ref: 92e4080c9170e34d4e349bc78e47e5d8b61f8c52
parent: 824f1becb09e66d2e38d7b5afeae89f4cec993d0
author: Timothy B. Terriberry <tterribe@xiph.org>
date: Sun Mar 10 06:26:35 EDT 2024
Make opus_cpu_capabilities() static. The MSVC implementations already was, but the others were not. This is an implementation detail that should not have external visibility. The public interface is opus_select_arch().
--- a/celt/arm/armcpu.c
+++ b/celt/arm/armcpu.c
@@ -96,7 +96,7 @@
/* Linux based */
#include <stdio.h>
-opus_uint32 opus_cpu_capabilities(void)
+static opus_uint32 opus_cpu_capabilities(void)
{opus_uint32 flags = 0;
FILE *cpuinfo;
@@ -169,7 +169,7 @@
#include <sys/types.h>
#include <sys/sysctl.h>
-opus_uint32 opus_cpu_capabilities(void)
+static opus_uint32 opus_cpu_capabilities(void)
{opus_uint32 flags = 0;
--
⑨