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

*** 40,50 **** #ifdef __cplusplus extern "C" { #endif ! extern __inline__ enum fp_class_type fp_classf(float f) { enum fp_class_type ret; int fint; /* scratch for f as int */ uint64_t tmp; --- 40,50 ---- #ifdef __cplusplus extern "C" { #endif ! 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,100 **** : "cc"); return (ret); } ! extern __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; --- 90,100 ---- : "cc"); return (ret); } ! 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,170 **** : "cc"); return (ret); } ! extern __inline__ float __inline_sqrtf(float f) { float ret; __asm__ __volatile__("fsqrts %1,%0\n\t" : "=f" (ret) : "f" (f)); return (ret); } ! extern __inline__ double __inline_sqrt(double d) { double ret; __asm__ __volatile__("fsqrtd %1,%0\n\t" : "=f" (ret) : "f" (d)); return (ret); } ! extern __inline__ int __swapEX(int i) { int ret; uint32_t fsr; uint64_t tmp1, tmp2; --- 142,170 ---- : "cc"); return (ret); } ! extern __GNU_INLINE float __inline_sqrtf(float f) { float ret; __asm__ __volatile__("fsqrts %1,%0\n\t" : "=f" (ret) : "f" (f)); return (ret); } ! extern __GNU_INLINE double __inline_sqrt(double d) { double ret; __asm__ __volatile__("fsqrtd %1,%0\n\t" : "=f" (ret) : "f" (d)); return (ret); } ! extern __GNU_INLINE int __swapEX(int i) { int ret; uint32_t fsr; uint64_t tmp1, tmp2;
*** 192,208 **** /* * On the SPARC, __swapRP is a no-op; always return 0 for backward * compatibility */ /* ARGSUSED */ ! extern __inline__ enum fp_precision_type __swapRP(enum fp_precision_type i) { return (0); } ! extern __inline__ enum fp_direction_type __swapRD(enum fp_direction_type d) { enum fp_direction_type ret; uint32_t fsr; uint64_t tmp1, tmp2, tmp3; --- 192,208 ---- /* * On the SPARC, __swapRP is a no-op; always return 0 for backward * compatibility */ /* ARGSUSED */ ! extern __GNU_INLINE enum fp_precision_type __swapRP(enum fp_precision_type i) { return (0); } ! 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,237 **** : "cc"); return (ret); } ! extern __inline__ int __swapTE(int i) { int ret; uint32_t fsr; uint64_t tmp1, tmp2, tmp3; --- 227,237 ---- : "cc"); return (ret); } ! extern __GNU_INLINE int __swapTE(int i) { int ret; uint32_t fsr; uint64_t tmp1, tmp2, tmp3;
*** 257,288 **** return (ret); } ! extern __inline__ double sqrt(double d) { return (__inline_sqrt(d)); } ! extern __inline__ float sqrtf(float f) { return (__inline_sqrtf(f)); } ! extern __inline__ double fabs(double d) { double ret; __asm__ __volatile__("fabsd %1,%0\n\t" : "=e" (ret) : "e" (d)); return (ret); } ! extern __inline__ float fabsf(float f) { float ret; __asm__ __volatile__("fabss %1,%0\n\t" : "=f" (ret) : "f" (f)); --- 257,288 ---- return (ret); } ! extern __GNU_INLINE double sqrt(double d) { return (__inline_sqrt(d)); } ! extern __GNU_INLINE float sqrtf(float f) { return (__inline_sqrtf(f)); } ! extern __GNU_INLINE double fabs(double d) { double ret; __asm__ __volatile__("fabsd %1,%0\n\t" : "=e" (ret) : "e" (d)); return (ret); } ! extern __GNU_INLINE float fabsf(float f) { float ret; __asm__ __volatile__("fabss %1,%0\n\t" : "=f" (ret) : "f" (f));