Cpu and architecture related helpers. More...
Typedefs | |
| typedef enum _Eina_Cpu_Features | Eina_Cpu_Features |
| Enumerates different hardware architectures. | |
Functions | |
| EAPI Eina_Cpu_Features | eina_cpu_features_get (void) |
| Cpu features accessor. More... | |
| EAPI int | eina_cpu_count (void) |
| Get the current number of processors. More... | |
| EAPI int | eina_cpu_page_size (void) |
| Get the current virtual page size. More... | |
| static unsigned short | eina_swap16 (unsigned short x) |
| Reverses the byte order of a 16-bit (destination) register. More... | |
| static unsigned int | eina_swap32 (unsigned int x) |
| Reverses the byte order of a 32-bit (destination) register. More... | |
| static unsigned long long | eina_swap64 (unsigned long long x) |
| Reverses the byte order of a 64-bit (destination) register. More... | |
Variables | |
| EAPI Eina_Cpu_Features | eina_cpu_features |
| Global hardware architecture handler. More... | |
Cpu and architecture related helpers.
| EAPI Eina_Cpu_Features eina_cpu_features_get | ( | void | ) |
Cpu features accessor.
References eina_cpu_features, and EINA_LOG_ERR.
| EAPI int eina_cpu_count | ( | void | ) |
Get the current number of processors.
Referenced by ecore_thread_max_reset(), ecore_thread_max_set(), and efl::eina::thread::hardware_concurrency().
| EAPI int eina_cpu_page_size | ( | void | ) |
Get the current virtual page size.
Referenced by eina_mmap_safety_enabled_set().
|
inlinestatic |
Reverses the byte order of a 16-bit (destination) register.
| x | The binary word to swap |
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.
|
inlinestatic |
Reverses the byte order of a 32-bit (destination) register.
| x | The binary word to swap |
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.
|
inlinestatic |
Reverses the byte order of a 64-bit (destination) register.
| x | The binary word to swap |
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.
| EAPI Eina_Cpu_Features eina_cpu_features |
Global hardware architecture handler.
Referenced by eina_cpu_features_get().