]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/cr16/endian.c
sim: cr16: delete unused memory helpers
[thirdparty/binutils-gdb.git] / sim / cr16 / endian.c
index 3cf2f2220dae4d17dbc673d6728a7d7aa7797059..03f79aca8f55993dd24f865bb2148e0ab2371739 100644 (file)
@@ -39,14 +39,6 @@ get_longword (uint8 *x)
   return (((uint32) *(uint16 *)x) << 16) | ((uint32) *(uint16 *)(x+2));
 }
 
-ENDIAN_INLINE int64
-get_longlong (uint8 *x)
-{
-  uint32 top = get_longword (x);
-  uint32 bottom = get_longword (x+4);
-  return (((int64)top)<<32) | (int64)bottom;
-}
-
 ENDIAN_INLINE void
 write_word (uint8 *addr, uint16 data)
 {
@@ -61,10 +53,3 @@ write_longword (uint8 *addr, uint32 data)
   *(uint16 *)(addr + 2) = (uint16)(data >> 16);
   *(uint16 *)(addr) = (uint16)data;
 }
-
-ENDIAN_INLINE void
-write_longlong (uint8 *addr, int64 data)
-{
-  write_longword (addr+4, (uint32)(data >> 32));
-  write_longword (addr, (uint32)data);
-}