Tizen Native API  5.0
Cpu

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

Typedef Documentation

Enumerates different hardware architectures.


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

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:
xThe 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:
xThe 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:
xThe 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 :
2.3