* mach-o.c (bfd_mach_o_archive_p): Restrict the number of
[deliverable/binutils-gdb.git] / sim / ppc / bits.c
index 00bba518aac5d2ec54a89e77f97a9681a53e8be6..4a3d9c6f6b4043b6ba83fbec6cd3058fded88fb2 100644 (file)
 
 #include "basics.h"
 
+INLINE_BITS\
+(unsigned64)
+LSMASKED64 (unsigned64 word,
+           int start,
+           int stop)
+{
+  word &= LSMASK64 (start, stop);
+  return word;
+}
 
+INLINE_BITS\
+(unsigned64)
+LSEXTRACTED64 (unsigned64 val,
+              int start,
+              int stop)
+{
+  val <<= (64 - 1 - start); /* drop high bits */
+  val >>= (64 - 1 - start) + (stop); /* drop low bits */
+  return val;
+}
 INLINE_BITS\
 (unsigned32)
 MASKED32(unsigned32 word,
This page took 0.0239 seconds and 4 git commands to generate.