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,
 
)    (((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,
 
)    (((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

Enumerator:
EINA_CPU_MMX 

Multimedia Extensions (Intel)

EINA_CPU_SSE 

Streaming SIMD Extensions (Intel)

EINA_CPU_SSE2 

Streaming SIMD Extensions 2 (Intel)

EINA_CPU_SSE3 

Streaming SIMD Extensions 3 (Intel)

EINA_CPU_ALTIVEC 

Single-precision floating point and integer SIMD (PowerPC)

EINA_CPU_VIS 

Visual Instruction Set (Spark)

EINA_CPU_NEON 

Advanced SIMD Extension (ARM)

EINA_CPU_SSSE3 

Supplemental Streaming SIMD Extension 3 (Intel)

EINA_CPU_SSE41 

Streaming SIMD Extension 4.1 (Intel)

EINA_CPU_SSE42 

Streaming SIMD Extension 4.2 (Intel)

EINA_CPU_SVE 

Scalable Vector Extension (ARM)


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:
[in]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:
[in]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:
[in]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 :
3.0