Tizen Native API
7.0
|
Cpu and architecture related helpers.
Functions | |
Eina_Cpu_Features | eina_cpu_features_get (void) |
Cpu features accessor. | |
int | eina_cpu_count (void) |
Gets the current number of processors. | |
int | eina_cpu_page_size (void) |
Gets the current virtual page size. | |
static unsigned short | eina_swap16 (unsigned short x) |
Reverses the byte order of a 16-bit (destination) register. | |
static unsigned int | eina_swap32 (unsigned int x) |
Reverses the byte order of a 32-bit (destination) register. | |
static unsigned long long | eina_swap64 (unsigned long long x) |
Reverses the byte order of a 64-bit (destination) register. | |
Typedefs | |
typedef enum _Eina_Cpu_Features | Eina_Cpu_Features |
Defines | |
#define | MIN(x, y) (((x) > (y)) ? (y) : (x)) |
#define | MAX(x, y) (((x) > (y)) ? (x) : (y)) |
Define Documentation
#define MAX | ( | x, | |
y | |||
) | (((x) > (y)) ? (x) : (y)) |
Returns the maximum of the two parameters
- Warning:
- Beware of side effects, since the returned parameter is evaluated twice.
#define MIN | ( | x, | |
y | |||
) | (((x) > (y)) ? (y) : (x)) |
Returns the minimum of the two parameters
- Warning:
- Beware of side effects, since the returned parameter is evaluated twice.
Typedef Documentation
Enumerates different hardware architectures.
Enumeration Type Documentation
enum _Eina_Cpu_Features |
- Enumerator:
Function Documentation
int eina_cpu_count | ( | void | ) |
Gets the current number of processors.
- Returns:
- The number of processors that are online, that is available when the function is called.
- Since :
- 3.0
Eina_Cpu_Features eina_cpu_features_get | ( | void | ) |
Cpu features accessor.
- Returns:
- the current cpu features
- Since :
- 3.0
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.
- Since :
- 3.0
static unsigned short eina_swap16 | ( | unsigned short | x | ) | [static] |
Reverses the byte order of a 16-bit (destination) register.
- Parameters:
-
[in] x The binary word to swap
- 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.
static unsigned int eina_swap32 | ( | unsigned int | x | ) | [static] |
Reverses the byte order of a 32-bit (destination) register.
- Parameters:
-
[in] x The binary word to swap
- 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.
static unsigned long long eina_swap64 | ( | unsigned long long | x | ) | [static] |
Reverses the byte order of a 64-bit (destination) register.
- Parameters:
-
[in] x The binary word to swap
- 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.
Variable Documentation
Global hardware architecture handler.
- Returns:
- the current cpu features
- Since :
- 3.0