Print this page
11210 libm should be cstyle(1ONBLD) clean

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/i386/src/libm_inlines.h
          +++ new/usr/src/lib/libm/i386/src/libm_inlines.h
↓ open down ↓ 26 lines elided ↑ open up ↑
  27   27  /*
  28   28   * Copyright 2011, Richard Lowe
  29   29   */
  30   30  
  31   31  /* Functions in this file are duplicated in locallibm.il.  Keep them in sync */
  32   32  
  33   33  #ifndef _LIBM_INLINES_H
  34   34  #define _LIBM_INLINES_H
  35   35  
  36   36  #ifdef __GNUC__
  37      -
  38   37  #ifdef __cplusplus
  39   38  extern "C" {
  40   39  #endif
  41   40  
  42   41  #include <sys/types.h>
  43   42  #include <sys/ieeefp.h>
  44   43  
  45   44  #define _LO_WORD(x)     ((uint32_t *)&x)[0]
  46   45  #define _HI_WORD(x)     ((uint32_t *)&x)[1]
  47   46  #define _HIER_WORD(x)   ((uint32_t *)&x)[2]
↓ open down ↓ 206 lines elided ↑ open up ↑
 254  253              "addl $0x7f800000,%0\n\t"
 255  254              "shrl $31,%0\n\t"
 256  255              : "+r" (f)
 257  256              :
 258  257              : "cc");
 259  258  
 260  259          return (f);
 261  260  }
 262  261  
 263  262  extern __GNU_INLINE double
 264      -rint(double a) {
 265      -    return (__inline_rint(a));
      263 +rint(double a)
      264 +{
      265 +        return (__inline_rint(a));
 266  266  }
 267  267  
 268  268  extern __GNU_INLINE double
 269  269  scalbn(double d, int n)
 270  270  {
 271  271          double dummy;
 272  272  
 273  273          __asm__ __volatile__(
 274  274              "fildl %2\n\t"      /* Convert N to extended */
 275  275              "fxch\n\t"
↓ open down ↓ 62 lines elided ↑ open up ↑
 338  338              : "+&r" (ret)
 339  339              : "r" (_HI_WORD(ld)), "r" (_LO_WORD(ld))
 340  340              : "cc");
 341  341  
 342  342          return (ret);
 343  343  }
 344  344  
 345  345  #ifdef __cplusplus
 346  346  }
 347  347  #endif
 348      -
 349  348  #endif  /* __GNUC__ */
 350      -
 351  349  #endif /* _LIBM_INLINES_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX