Skip to content

Commit 6d366dd

Browse files
committed
Fix inline
1 parent 4296519 commit 6d366dd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/xsimd/xsimd_cpu_features_x86.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ namespace xsimd
7676
}
7777

7878
/** Read the XCR0 register from the CPU if on the correct architecture. */
79-
static x86_xcr0 read()
79+
inline static x86_xcr0 read()
8080
{
8181
return x86_xcr0(detail::get_xcr0_low());
8282
}
@@ -129,7 +129,7 @@ namespace xsimd
129129
*
130130
* @see cpu_id::osxsave
131131
*/
132-
static x86_cpu_id read()
132+
inline static x86_cpu_id read()
133133
{
134134
cpu_id_regs regs = {};
135135
detail::get_cpuid(regs.reg1, 0x1);

test/check_inline_specifier.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Usage: $0 top_srcdir
44
#
55
# This script walks all headers in $top_srcdir/include and makes sure that all
6-
# functions declared tehre are marked as inline or constexpr (which implies
6+
# functions declared there are marked as inline or constexpr (which implies
77
# inline). This makes sure the xsimd headers does not define symbol with global
88
# linkage, and somehow convey our itnent to have all functions in xsimd being
99
# inlined by the compiler.

0 commit comments

Comments
 (0)