summaryrefslogtreecommitdiff
path: root/libc/sysdeps/i386/fpu/math_private.h
blob: 5253998a57039cd7f2fe2efd5a219333cbe2d87e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _MATH_PRIVATE_H

#define math_opt_barrier(x) \
({ __typeof (x) __x;					\
   __asm ("" : "=t" (__x) : "0" (x));			\
   __x; })
#define math_force_eval(x) \
do							\
  {							\
    __typeof (x) __x = (x);				\
    if (sizeof (x) <= sizeof (double))			\
      __asm __volatile ("" : : "m" (__x));		\
    else						\
      __asm __volatile ("" : : "f" (__x));		\
  }							\
while (0)

#include_next <math_private.h>
#endif