ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/AmigaOS/cpu_emulation.h
(Generate patch)

Comparing BasiliskII/src/AmigaOS/cpu_emulation.h (file contents):
Revision 1.1.1.1 by cebix, 1999-10-03T14:16:25Z vs.
Revision 1.2 by cebix, 2000-01-30T19:26:04Z

# Line 43 | Line 43 | static inline void WriteMacInt32(uint32
43   static inline void WriteMacInt16(uint32 addr, uint32 w) {*(uint16 *)addr = htons(w);}
44   static inline void WriteMacInt8(uint32 addr, uint32 b) {*(uint8 *)addr = b;}
45   static inline uint8 *Mac2HostAddr(uint32 addr) {return (uint8 *)addr;}
46 + static inline void *Mac_memset(uint32 addr, int c, size_t n) {return memset(Mac2HostAddr(addr), c, n);}
47 + static inline void *Mac2Host_memcpy(void *dest, uint32 src, size_t n) {return memcpy(dest, Mac2HostAddr(src), n);}
48 + static inline void *Host2Mac_memcpy(uint32 dest, const void *src, size_t n) {return memcpy(Mac2HostAddr(dest), src, n);}
49 + static inline void *Mac2Mac_memcpy(uint32 dest, uint32 src, size_t n) {return memcpy(Mac2HostAddr(dest), Mac2HostAddr(src), n);}
50  
51  
52   /*

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines