apache-mynewt-bot commented on PR #1322:
URL: https://github.com/apache/mynewt-nimble/pull/1322#issuecomment-1215284032

   
   <!-- style-bot -->
   
   ## Style check summary
   
   ### Our coding style is 
[here!](https://github.com/apache/mynewt-core/blob/master/CODING_STANDARDS.md)
   
   
   #### porting/nimble/include/os/endian.h
   <details>
   
   ```diff
   @@ -29,35 +29,35 @@
    /* Internal helpers */
    #ifndef os_bswap_64
    #define os_bswap_64(x)   ((uint64_t)                \
   -     ((((x) & 0xff00000000000000ull) >> 56) |       \
   -      (((x) & 0x00ff000000000000ull) >> 40) |       \
   -      (((x) & 0x0000ff0000000000ull) >> 24) |       \
   -      (((x) & 0x000000ff00000000ull) >>  8) |       \
   -      (((x) & 0x00000000ff000000ull) <<  8) |       \
   -      (((x) & 0x0000000000ff0000ull) << 24) |       \
   -      (((x) & 0x000000000000ff00ull) << 40) |       \
   -      (((x) & 0x00000000000000ffull) << 56)))
   +                          ((((x) & 0xff00000000000000ull) >> 56) |       \
   +                           (((x) & 0x00ff000000000000ull) >> 40) |       \
   +                           (((x) & 0x0000ff0000000000ull) >> 24) |       \
   +                           (((x) & 0x000000ff00000000ull) >>  8) |       \
   +                           (((x) & 0x00000000ff000000ull) <<  8) |       \
   +                           (((x) & 0x0000000000ff0000ull) << 24) |       \
   +                           (((x) & 0x000000000000ff00ull) << 40) |       \
   +                           (((x) & 0x00000000000000ffull) << 56)))
    #endif
    
    #ifndef os_bswap_32
    #define os_bswap_32(x)    ((uint32_t)               \
   -    ((((x) & 0xff000000) >> 24) |                   \
   -     (((x) & 0x00ff0000) >>  8) |                   \
   -     (((x) & 0x0000ff00) <<  8) |                   \
   -     (((x) & 0x000000ff) << 24)))
   +                           ((((x) & 0xff000000) >> 24) |                   \
   +                            (((x) & 0x00ff0000) >>  8) |                   \
   +                            (((x) & 0x0000ff00) <<  8) |                   \
   +                            (((x) & 0x000000ff) << 24)))
    #endif
    
    #ifndef os_bswap_16
    #define os_bswap_16(x)   ((uint16_t)                \
   -    ((((x) & 0xff00) >> 8) |                        \
   -     (((x) & 0x00ff) << 8)))
   -#endif
   -
   -#ifndef __BYTE_ORDER__ 
   +                          ((((x) & 0xff00) >> 8) |                        \
   +                           (((x) & 0x00ff) << 8)))
   +#endif
   +
   +#ifndef __BYTE_ORDER__
    #error  "Please define __BYTE_ORDER__ on complier"
    #endif
    
   -#ifndef __ORDER_BIG_ENDIAN__ 
   +#ifndef __ORDER_BIG_ENDIAN__
    #error  "Please define __ORDER_BIG_ENDIAN__ on complier"
    #endif
    
   ```
   
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to