Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

qword.h File Reference

#include "global.h"

Go to the source code of this file.

Classes

struct  sint64
struct  uint64

Defines

#define qword   uint64
#define QWORD_SET_HI(q, v)   (((q).hi) = (v))
#define QWORD_SET_LO(q, v)   (((q).lo) = (v))
#define QWORD_GET_HI(q)   ((q).hi)
#define QWORD_GET_LO(q)   ((q).lo)
#define QWORD_GET_INT(q)   ((q).lo)
#define QWORD_GET_FLOAT(q)   ( (((float)QWORD_GET_HI(q))*4294967296.0) + ((float)QWORD_GET_LO(q)))

Functions

int qword_cmp (uint64 a, uint64 b)
uint64 int_to_qword (int i)
uint64 sint64_to_uint64 (sint64 s)
uint64 qword_add (uint64 a, uint64 b)
uint64 qword_sub (uint64 a, uint64 b)
uint64 qword_mul (uint64 a, uint64 b)
int sint64_cmp (sint64 a, sint64 b)
sint64 int_to_sint64 (int i)
sint64 uint64_to_sint64 (uint64 u)
sint64 sint64_add (sint64 a, sint64 b)
sint64 sint64_sub (sint64 a, sint64 b)
sint64 sint64_mul (sint64 a, sint64 b)


Define Documentation

#define qword   uint64
 

Definition at line 32 of file qword.h.

Referenced by bnstr(), AddressFlat64::compareDelinear(), PEAnalyser::convertAddressToRVA(), create_host_int64(), create_host_struct(), AddressFlat64::difference(), elf_addr_to_ofs(), elf_ofs_to_addr(), elf_ofs_to_section(), f2i(), filetime_to_ctime(), func_random(), AnalyserOutput::generateAddr(), ht_object_stream_memmap::getQWordDec(), ht_object_stream_txt::getQWordDec(), ht_object_stream_bin::getQWordDec(), ht_object_stream_memmap::getQWordHex(), ht_object_stream_txt::getQWordHex(), ht_object_stream_bin::getQWordHex(), AnalyserHTOutput::link(), ht_uformat_viewer::render_tagstring(), ht_uformat_viewer::render_tagstring_desc(), scalar_int_op(), ht_format_viewer::string_to_offset(), ht_format_viewer::string_to_pos(), and ht_aviewer::symbol_handler().

#define QWORD_GET_FLOAT  )     ( (((float)QWORD_GET_HI(q))*4294967296.0) + ((float)QWORD_GET_LO(q)))
 

Definition at line 46 of file qword.h.

Referenced by scalar_context_float().

#define QWORD_GET_HI  )     ((q).hi)
 

Definition at line 42 of file qword.h.

Referenced by PEAnalyser::convertAddressToRVA(), and create_foreign_int64().

#define QWORD_GET_INT  )     ((q).lo)
 

Definition at line 45 of file qword.h.

Referenced by blockop_int_process(), create_blockop_int_context(), ht_text_viewer::handlemsg(), ht_uformat_viewer::handlemsg(), ht_linear_func_readbyte(), ht_linear_func_readstring(), ht_uformat_viewer::qword_to_offset(), ht_hex_viewer::qword_to_pos(), ht_disasm_viewer::qword_to_pos(), and ht_aviewer::qword_to_pos().

#define QWORD_GET_LO  )     ((q).lo)
 

Definition at line 43 of file qword.h.

Referenced by bnstr(), PEAnalyser::convertAddressToRVA(), create_foreign_int64(), filetime_to_ctime(), func_byte(), func_char(), func_dword(), func_long(), func_sbyte(), func_short(), func_substr(), func_word(), ht_object_stream_txt::getIntHex(), scalar_int_op(), and ht_aviewer::symbol_handler().

#define QWORD_SET_HI q,
 )     (((q).hi) = (v))
 

Definition at line 40 of file qword.h.

Referenced by create_host_int64(), IA64Disassembler::decode(), and filetime_to_ctime().

#define QWORD_SET_LO q,
 )     (((q).lo) = (v))
 

Definition at line 41 of file qword.h.

Referenced by create_host_int64(), IA64Disassembler::decode(), and filetime_to_ctime().


Function Documentation

uint64 int_to_qword int  i  ) 
 

Definition at line 24 of file qword.cc.

References uint64::hi, and uint64::lo.

Referenced by filetime_to_ctime().

sint64 int_to_sint64 int  i  ) 
 

Definition at line 32 of file qword.cc.

References dword, sint64::hi, and sint64::lo.

uint64 qword_add uint64  a,
uint64  b
 

Definition at line 97 of file qword.cc.

References uint64::hi, and uint64::lo.

Referenced by operator+().

int qword_cmp uint64  a,
uint64  b
 

Definition at line 88 of file qword.cc.

References uint64::hi, and uint64::lo.

Referenced by AddressFlat64::compareDelinear(), AddressFlat64::compareTo(), elf_addr_is_valid(), elf_addr_to_ofs(), elf_addr_to_section(), elf_ofs_to_addr(), elf_ofs_to_section(), operator!(), operator!=(), operator<(), operator<=(), operator==(), operator>(), operator>=(), and scalar_int_op().

uint64 qword_mul uint64  a,
uint64  b
 

Definition at line 179 of file qword.cc.

References uint64::lo, and to_uint64().

Referenced by operator *().

uint64 qword_sub uint64  a,
uint64  b
 

Definition at line 106 of file qword.cc.

References uint64::hi, and uint64::lo.

Referenced by operator-().

sint64 sint64_add sint64  a,
sint64  b
 

Definition at line 414 of file qword.cc.

References sint64::hi, and sint64::lo.

Referenced by operator+().

int sint64_cmp sint64  a,
sint64  b
 

Definition at line 404 of file qword.cc.

References sint64::hi, and sint64::lo.

Referenced by operator!(), operator!=(), operator<(), operator<=(), operator==(), operator>(), and operator>=().

sint64 sint64_mul sint64  a,
sint64  b
 

Definition at line 497 of file qword.cc.

References sint64::lo, and to_sint64().

Referenced by operator *().

sint64 sint64_sub sint64  a,
sint64  b
 

Definition at line 423 of file qword.cc.

References sint64::hi, and sint64::lo.

Referenced by operator-().

uint64 sint64_to_uint64 sint64  s  ) 
 

Definition at line 40 of file qword.cc.

References sint64::hi, uint64::hi, sint64::lo, and uint64::lo.

sint64 uint64_to_sint64 uint64  u  ) 
 

Definition at line 48 of file qword.cc.

References uint64::hi, sint64::hi, uint64::lo, and sint64::lo.


Generated on Fri May 7 21:15:52 2004 by doxygen 1.3.5