xref: /haiku/src/system/libroot/posix/musl/arch/arm64/fp_arch.h (revision c237c4ce593ee823d9867fd997e51e4c447f5623)
1 #define fp_barrierf fp_barrierf
2 static inline float fp_barrierf(float x)
3 {
4 	__asm__ __volatile__ ("" : "+w"(x));
5 	return x;
6 }
7 
8 #define fp_barrier fp_barrier
9 static inline double fp_barrier(double x)
10 {
11 	__asm__ __volatile__ ("" : "+w"(x));
12 	return x;
13 }
14 
15 #define fp_force_evalf fp_force_evalf
16 static inline void fp_force_evalf(float x)
17 {
18 	__asm__ __volatile__ ("" : "+w"(x));
19 }
20 
21 #define fp_force_eval fp_force_eval
22 static inline void fp_force_eval(double x)
23 {
24 	__asm__ __volatile__ ("" : "+w"(x));
25 }
26