UTLinuxTarget.h File Reference

Go to the source code of this file.

Defines

#define EXPORT   __attribute__ ((visibility("default")))
#define IMPORT
#define TARGET_CPU_LITTLE_ENDIAN   1
#define TARGET_CPU_ALLOW_UNALIGNED_ACCESS   1
#define TARGET_CPU_FAST_INTEGER_MOD   1
#define POINTER_IS_32_BIT   1
#define c_os_timer_reliable_ms   3
#define c_os_timer_resolution_ms   1
#define c_fileoff_printf_format   "%lld"
#define c_fileoff_printf_hex_format   "%llx"

Typedefs

typedef pthread_t thread_id_t
typedef DIR * dir_t
typedef off_t fileoff_t

Define Documentation

#define EXPORT   __attribute__ ((visibility("default")))

For any platform, designates that a function or class is to be exported from a library or executable

Definition at line 49 of file UTLinuxTarget.h.

#define IMPORT

For any platform, designates that a function or class is to be imported from a library or executable

Definition at line 53 of file UTLinuxTarget.h.

#define TARGET_CPU_LITTLE_ENDIAN   1

For any platform, defined if the target CPU is little endian (least significant byte first). If this flag is not defined, then TARGET_CPU_BIG_ENDIAN will be. This is only useful for optimization of extremely time-critical and endian-sensitive code.

Definition at line 81 of file UTLinuxTarget.h.

#define TARGET_CPU_ALLOW_UNALIGNED_ACCESS   1

For any platform, defined if the target CPU allows unaligned access (e.g. reading a uint32 from an address that is not a multiple of four bytes). This is only useful for optimization of code which packs multibyte values into an arbitrary buffer not guaranteed to be byte-aligned.

Definition at line 87 of file UTLinuxTarget.h.

#define TARGET_CPU_FAST_INTEGER_MOD   1

For any platform, defined if the target CPU can perform integer modulus in a single instruction. This is only useful for optimization rollover condition handling for embedded microprocessors without an integer mod instruction, to use "if(val > MAX) val -= MAX;" rather than "val = val % MAX;".

Definition at line 93 of file UTLinuxTarget.h.

#define POINTER_IS_32_BIT   1

For any platform, defined if a pointer is 32 bits, otherwise POINTER_IS_64_BIT will be defined.

Definition at line 97 of file UTLinuxTarget.h.

#define c_os_timer_reliable_ms   3

For any platform, defined to the maximum reliable timer resolution in milliseconds.

Definition at line 113 of file UTLinuxTarget.h.

#define c_os_timer_resolution_ms   1

For any platform, defined to the absolute maximum timer resolution in milliseconds.

Definition at line 116 of file UTLinuxTarget.h.

#define c_fileoff_printf_format   "%lld"

For any platform, defined to an appropriate printf format to use for printing fileoff_t as an integer. This would typically be "%lld" or less likely, "%d", but explicit use of the real printf formats will break.

Definition at line 144 of file UTLinuxTarget.h.

#define c_fileoff_printf_hex_format   "%llx"

For any platform, defined to an appropriate printf format to use for printing fileoff_t as hexadecimal. This would typically be "%llx" or less likely, "%x", but explicit use of the real printf formats will break.

Definition at line 149 of file UTLinuxTarget.h.


Typedef Documentation

typedef pthread_t thread_id_t

Thread ID type: pthread_t.

Definition at line 128 of file UTLinuxTarget.h.

typedef DIR* dir_t

Directory type: DIR.

Definition at line 135 of file UTLinuxTarget.h.

typedef off_t fileoff_t

File offset, always signed, usually 64-bit.

Definition at line 138 of file UTLinuxTarget.h.


Generated on Tue Dec 14 22:35:05 2010 for UT library by  doxygen 1.6.1