mirror of
https://github.com/reactos/RosBE.git
synced 2024-11-23 19:39:51 +00:00
6e7529a7b5
Install it by running './install.sh $HOME/rosbe-ppc' and then run '$HOME/rosbe-ppc/rosbe' to get a shell with the right environment to build. You can just do 'make -k install' (not everything builds) to get enough to help porting. A big endian registry maker (pyhive) and nls swapper (pynls) are provided to seed registry hives and nls files. svn path=/trunk/tools/RosBE/; revision=542
25 lines
880 B
C++
25 lines
880 B
C++
#ifndef COMPDVR_UTIL_H
|
|
#define COMPDVR_UTIL_H
|
|
|
|
#include <utility>
|
|
#include <stdint.h>
|
|
|
|
void le16write(uint8_t *dataptr, uint16_t value);
|
|
void le16write_postinc(uint8_t *&dataptr, uint16_t value);
|
|
void le32write(uint8_t *dataptr, uint32_t value);
|
|
void le32write_postinc(uint8_t *&dataptr, uint32_t value);
|
|
uint16_t le16read(uint8_t *dataptr);
|
|
uint16_t le16read_postinc(uint8_t *&dataptr);
|
|
uint32_t le32read(uint8_t *dataptr);
|
|
uint32_t le32read_postinc(uint8_t *&dataptr);
|
|
uint16_t be16read(uint8_t *dataptr);
|
|
uint16_t be16read_postinc(uint8_t *&dataptr);
|
|
uint32_t be32read(uint8_t *dataptr);
|
|
uint32_t be32read_postinc(uint8_t *&dataptr);
|
|
typedef std::pair<uint32_t, uint32_t> u32pair_t;
|
|
void le32pwrite_postinc(uint8_t *&dataptr, const u32pair_t &pair);
|
|
void le32pwrite(uint8_t *dataptr, const u32pair_t &pair);
|
|
uint32_t roundup(uint32_t value, int round);
|
|
|
|
#endif//COMPDVR_UTIL_H
|