Changeset 9789434 in rtems-libbsd


Ignore:
Timestamp:
Jun 27, 2017, 7:31:34 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
eeb3fd5d9b07ac9a2e280cff60a1b762bd273a8d, 1e989998de954bef51e6c19cc3d64d39f32100aa
Children:
e3dc39e
Parents:
65d6fa2
git-author:
Sebastian Huber <sebastian.huber@…> (06/27/17 07:31:34)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/23/17 07:24:07)
Message:

linux: Move upper_32_bits() and lower_32_bits()

Location:
rtemsbsd/powerpc/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/powerpc/include/asm/byteorder.h

    r65d6fa2 r9789434  
    9292}
    9393
     94#define upper_32_bits(n)        ((u32)(((n) >> 16) >> 16))
     95
     96#define lower_32_bits(n)        ((u32)(n))
     97
    9498#endif  /* _ASM_BYTEORDER_H_ */
  • rtemsbsd/powerpc/include/linux/kernel.h

    r65d6fa2 r9789434  
    183183#define clamp(x, lo, hi)                min( max(x,lo), hi)
    184184
    185 #define upper_32_bits(n)        ((u32)(((n) >> 16) >> 16))
    186 
    187 #define lower_32_bits(n)        ((u32)(n))
    188 
    189185/*
    190186 * This looks more complex than it should be. But we need to
Note: See TracChangeset for help on using the changeset viewer.