1
0

fp_arch.h 498 B

12345678910111213141516171819202122232425
  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. #define fp_barrier fp_barrier
  8. static inline double fp_barrier(double x)
  9. {
  10. __asm__ __volatile__ ("" : "+w"(x));
  11. return x;
  12. }
  13. #define fp_force_evalf fp_force_evalf
  14. static inline void fp_force_evalf(float x)
  15. {
  16. __asm__ __volatile__ ("" : "+w"(x));
  17. }
  18. #define fp_force_eval fp_force_eval
  19. static inline void fp_force_eval(double x)
  20. {
  21. __asm__ __volatile__ ("" : "+w"(x));
  22. }