Print this page
6648 illumos build should be explicit about C standards

@@ -40,11 +40,11 @@
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-extern __inline__ enum fp_class_type
+extern __GNU_INLINE enum fp_class_type
 fp_classf(float f)
 {
         enum fp_class_type ret;
         int fint;               /* scratch for f as int */
         uint64_t tmp;

@@ -90,11 +90,11 @@
             : "cc");
 
         return (ret);
 }
 
-extern __inline__ enum fp_class_type
+extern __GNU_INLINE enum fp_class_type
 fp_class(double d)
 {
         enum fp_class_type ret;
         uint64_t dint;          /* Scratch for d-as-long */
         uint64_t tmp;

@@ -142,29 +142,29 @@
             : "cc");
 
         return (ret);
 }
 
-extern __inline__ float
+extern __GNU_INLINE float
 __inline_sqrtf(float f)
 {
         float ret;
 
         __asm__ __volatile__("fsqrts %1,%0\n\t" : "=f" (ret) : "f" (f));
         return (ret);
 }
 
-extern __inline__ double
+extern __GNU_INLINE double
 __inline_sqrt(double d)
 {
         double ret;
 
         __asm__ __volatile__("fsqrtd %1,%0\n\t" : "=f" (ret) : "f" (d));
         return (ret);
 }
 
-extern __inline__ int
+extern __GNU_INLINE int
 __swapEX(int i)
 {
         int ret;
         uint32_t fsr;
         uint64_t tmp1, tmp2;

@@ -192,17 +192,17 @@
 /*
  * On the SPARC, __swapRP is a no-op; always return 0 for backward
  * compatibility
  */
 /* ARGSUSED */
-extern __inline__ enum fp_precision_type
+extern __GNU_INLINE enum fp_precision_type
 __swapRP(enum fp_precision_type i)
 {
         return (0);
 }
 
-extern __inline__ enum fp_direction_type
+extern __GNU_INLINE enum fp_direction_type
 __swapRD(enum fp_direction_type d)
 {
         enum fp_direction_type ret;
         uint32_t fsr;
         uint64_t tmp1, tmp2, tmp3;

@@ -227,11 +227,11 @@
             : "cc");
 
         return (ret);
 }
 
-extern __inline__ int
+extern __GNU_INLINE int
 __swapTE(int i)
 {
         int ret;
         uint32_t fsr;
         uint64_t tmp1, tmp2, tmp3;

@@ -257,32 +257,32 @@
 
         return (ret);
 }
 
 
-extern __inline__ double
+extern __GNU_INLINE double
 sqrt(double d)
 {
         return (__inline_sqrt(d));
 }
 
-extern __inline__ float
+extern __GNU_INLINE float
 sqrtf(float f)
 {
         return (__inline_sqrtf(f));
 }
 
-extern __inline__ double
+extern __GNU_INLINE double
 fabs(double d)
 {
         double ret;
 
         __asm__ __volatile__("fabsd %1,%0\n\t" : "=e" (ret) : "e" (d));
         return (ret);
 }
 
-extern __inline__ float
+extern __GNU_INLINE float
 fabsf(float f)
 {
         float ret;
 
         __asm__ __volatile__("fabss %1,%0\n\t" : "=f" (ret) : "f" (f));