File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments