Cpu and architecture related helpers.
More...
|
#define | MIN(x, y) (((x) > (y)) ? (y) : (x)) |
|
#define | MAX(x, y) (((x) > (y)) ? (x) : (y)) |
|
|
typedef enum _Eina_Cpu_Features | Eina_Cpu_Features |
| Enumerates different hardware architectures.
|
|
|
enum | _Eina_Cpu_Features {
EINA_CPU_MMX = 0x00000001,
EINA_CPU_SSE = 0x00000002,
EINA_CPU_SSE2 = 0x00000004,
EINA_CPU_SSE3 = 0x00000008,
EINA_CPU_ALTIVEC = 0x00000010,
EINA_CPU_VIS = 0x00000020,
EINA_CPU_NEON = 0x00000040,
EINA_CPU_SSSE3 = 0x00000080,
EINA_CPU_SSE41 = 0x00000100,
EINA_CPU_SSE42 = 0x00000200
} |
|
Cpu and architecture related helpers.
◆ eina_cpu_features_get()
Cpu features accessor.
- Returns
- the current cpu features
-
◆ eina_cpu_count()
EAPI int eina_cpu_count |
( |
void |
| ) |
|
◆ eina_cpu_page_size()
EAPI int eina_cpu_page_size |
( |
void |
| ) |
|
Gets the current virtual page size.
- Returns
- The fixed length that represents the smallest unit of data for memory allocation performed by the operating system on behalf of the program, and for transfers between the main memory and any other auxiliary store.
Referenced by eina_mmap_safety_enabled_set().
◆ eina_swap16()
static unsigned short eina_swap16 |
( |
unsigned short |
x | ) |
|
|
inlinestatic |
Reverses the byte order of a 16-bit (destination) register.
- Parameters
-
- Returns
- A byte order swapped 16-bit integer.
On big endian systems, the number is converted to little endian byte order. On little endian systems, the number is converted to big endian byte order.
◆ eina_swap32()
static unsigned int eina_swap32 |
( |
unsigned int |
x | ) |
|
|
inlinestatic |
Reverses the byte order of a 32-bit (destination) register.
- Parameters
-
- Returns
- A byte order swapped 32-bit integer.
On big endian systems, the number is converted to little endian byte order. On little endian systems, the number is converted to big endian byte order.
◆ eina_swap64()
static unsigned long long eina_swap64 |
( |
unsigned long long |
x | ) |
|
|
inlinestatic |
Reverses the byte order of a 64-bit (destination) register.
- Parameters
-
- Returns
- A byte order swapped 64-bit integer.
On big endian systems, the number is converted to little endian byte order. On little endian systems, the number is converted to big endian byte order.
◆ eina_cpu_features
Global hardware architecture handler.
- Returns
- the current cpu features