\hypertarget{group__Eina__Cpu__Group}{}\section{Cpu}
\label{group__Eina__Cpu__Group}\index{Cpu@{Cpu}}


Cpu and architecture related helpers.  


\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__Eina__Cpu__Group_ga5b1c582b9cbe7cf337aedb4f80f78a7f}\label{group__Eina__Cpu__Group_ga5b1c582b9cbe7cf337aedb4f80f78a7f}} 
typedef enum \+\_\+\+Eina\+\_\+\+Cpu\+\_\+\+Features \hyperlink{group__Eina__Cpu__Group_ga5b1c582b9cbe7cf337aedb4f80f78a7f}{Eina\+\_\+\+Cpu\+\_\+\+Features}
\begin{DoxyCompactList}\small\item\em Enumerates different hardware architectures. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__Eina__Cpu__Group_ga8c64fbc734db29a2ac43b25801b5f011}\label{group__Eina__Cpu__Group_ga8c64fbc734db29a2ac43b25801b5f011}} 
enum {\bfseries \+\_\+\+Eina\+\_\+\+Cpu\+\_\+\+Features} \{ \newline
{\bfseries E\+I\+N\+A\+\_\+\+C\+P\+U\+\_\+\+M\+MX} = 0x00000001, 
\newline
{\bfseries E\+I\+N\+A\+\_\+\+C\+P\+U\+\_\+\+S\+SE} = 0x00000002, 
\newline
{\bfseries E\+I\+N\+A\+\_\+\+C\+P\+U\+\_\+\+S\+S\+E2} = 0x00000004, 
\newline
{\bfseries E\+I\+N\+A\+\_\+\+C\+P\+U\+\_\+\+S\+S\+E3} = 0x00000008, 
\newline
{\bfseries E\+I\+N\+A\+\_\+\+C\+P\+U\+\_\+\+A\+L\+T\+I\+V\+EC} = 0x00000010, 
\newline
{\bfseries E\+I\+N\+A\+\_\+\+C\+P\+U\+\_\+\+V\+IS} = 0x00000020, 
\newline
{\bfseries E\+I\+N\+A\+\_\+\+C\+P\+U\+\_\+\+N\+E\+ON} = 0x00000040, 
\newline
{\bfseries E\+I\+N\+A\+\_\+\+C\+P\+U\+\_\+\+S\+S\+S\+E3} = 0x00000080, 
\newline
{\bfseries E\+I\+N\+A\+\_\+\+C\+P\+U\+\_\+\+S\+S\+E41} = 0x00000100, 
\newline
{\bfseries E\+I\+N\+A\+\_\+\+C\+P\+U\+\_\+\+S\+S\+E42} = 0x00000200
 \}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} \hyperlink{group__Eina__Cpu__Group_ga5b1c582b9cbe7cf337aedb4f80f78a7f}{Eina\+\_\+\+Cpu\+\_\+\+Features} \hyperlink{group__Eina__Cpu__Group_gaf215e6f00fe3332996b890b7a8e8bf51}{eina\+\_\+cpu\+\_\+features\+\_\+get} (void)
\begin{DoxyCompactList}\small\item\em Cpu features accessor. \end{DoxyCompactList}\item 
\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} int \hyperlink{group__Eina__Cpu__Group_ga34216ac673d316e4e9813d0f68a321f2}{eina\+\_\+cpu\+\_\+count} (void)
\begin{DoxyCompactList}\small\item\em Get the current number of processors. \end{DoxyCompactList}\item 
\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} int \hyperlink{group__Eina__Cpu__Group_ga82af2f09a9568dfb4728e958e90d0e9c}{eina\+\_\+cpu\+\_\+page\+\_\+size} (void)
\begin{DoxyCompactList}\small\item\em Get the current virtual page size. \end{DoxyCompactList}\item 
static unsigned short \hyperlink{group__Eina__Cpu__Group_ga9391dc77f1bac9c5c19548525193077a}{eina\+\_\+swap16} (unsigned short x)
\begin{DoxyCompactList}\small\item\em Reverses the byte order of a 16-\/bit (destination) register. \end{DoxyCompactList}\item 
static unsigned int \hyperlink{group__Eina__Cpu__Group_ga145eac053a5a0bc5a7f99347d3375e1c}{eina\+\_\+swap32} (unsigned int x)
\begin{DoxyCompactList}\small\item\em Reverses the byte order of a 32-\/bit (destination) register. \end{DoxyCompactList}\item 
static unsigned long long \hyperlink{group__Eina__Cpu__Group_ga333e8feb4c7412f32aa0ec817b142948}{eina\+\_\+swap64} (unsigned long long x)
\begin{DoxyCompactList}\small\item\em Reverses the byte order of a 64-\/bit (destination) register. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} \hyperlink{group__Eina__Cpu__Group_ga5b1c582b9cbe7cf337aedb4f80f78a7f}{Eina\+\_\+\+Cpu\+\_\+\+Features} \hyperlink{group__Eina__Cpu__Group_gaabf2bf19bc6c111d69a9fd90263df998}{eina\+\_\+cpu\+\_\+features}
\begin{DoxyCompactList}\small\item\em Global hardware architecture handler. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Cpu and architecture related helpers. 



\subsection{Function Documentation}
\mbox{\Hypertarget{group__Eina__Cpu__Group_gaf215e6f00fe3332996b890b7a8e8bf51}\label{group__Eina__Cpu__Group_gaf215e6f00fe3332996b890b7a8e8bf51}} 
\index{Cpu@{Cpu}!eina\+\_\+cpu\+\_\+features\+\_\+get@{eina\+\_\+cpu\+\_\+features\+\_\+get}}
\index{eina\+\_\+cpu\+\_\+features\+\_\+get@{eina\+\_\+cpu\+\_\+features\+\_\+get}!Cpu@{Cpu}}
\subsubsection{\texorpdfstring{eina\+\_\+cpu\+\_\+features\+\_\+get()}{eina\_cpu\_features\_get()}}
{\footnotesize\ttfamily \hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} \hyperlink{group__Eina__Cpu__Group_ga5b1c582b9cbe7cf337aedb4f80f78a7f}{Eina\+\_\+\+Cpu\+\_\+\+Features} eina\+\_\+cpu\+\_\+features\+\_\+get (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Cpu features accessor. 

\begin{DoxyReturn}{Returns}
the current cpu features


\end{DoxyReturn}
\mbox{\Hypertarget{group__Eina__Cpu__Group_ga34216ac673d316e4e9813d0f68a321f2}\label{group__Eina__Cpu__Group_ga34216ac673d316e4e9813d0f68a321f2}} 
\index{Cpu@{Cpu}!eina\+\_\+cpu\+\_\+count@{eina\+\_\+cpu\+\_\+count}}
\index{eina\+\_\+cpu\+\_\+count@{eina\+\_\+cpu\+\_\+count}!Cpu@{Cpu}}
\subsubsection{\texorpdfstring{eina\+\_\+cpu\+\_\+count()}{eina\_cpu\_count()}}
{\footnotesize\ttfamily \hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} int eina\+\_\+cpu\+\_\+count (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Get the current number of processors. 

\begin{DoxyReturn}{Returns}
the number of processors that are online, that is available when the function is called. 
\end{DoxyReturn}


Referenced by ecore\+\_\+thread\+\_\+max\+\_\+reset(), ecore\+\_\+thread\+\_\+max\+\_\+set(), and efl\+::eina\+::thread\+::hardware\+\_\+concurrency().

\mbox{\Hypertarget{group__Eina__Cpu__Group_ga82af2f09a9568dfb4728e958e90d0e9c}\label{group__Eina__Cpu__Group_ga82af2f09a9568dfb4728e958e90d0e9c}} 
\index{Cpu@{Cpu}!eina\+\_\+cpu\+\_\+page\+\_\+size@{eina\+\_\+cpu\+\_\+page\+\_\+size}}
\index{eina\+\_\+cpu\+\_\+page\+\_\+size@{eina\+\_\+cpu\+\_\+page\+\_\+size}!Cpu@{Cpu}}
\subsubsection{\texorpdfstring{eina\+\_\+cpu\+\_\+page\+\_\+size()}{eina\_cpu\_page\_size()}}
{\footnotesize\ttfamily \hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} int eina\+\_\+cpu\+\_\+page\+\_\+size (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Get the current virtual page size. 

\begin{DoxyReturn}{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. 
\end{DoxyReturn}


Referenced by eina\+\_\+mmap\+\_\+safety\+\_\+enabled\+\_\+set().

\mbox{\Hypertarget{group__Eina__Cpu__Group_ga9391dc77f1bac9c5c19548525193077a}\label{group__Eina__Cpu__Group_ga9391dc77f1bac9c5c19548525193077a}} 
\index{Cpu@{Cpu}!eina\+\_\+swap16@{eina\+\_\+swap16}}
\index{eina\+\_\+swap16@{eina\+\_\+swap16}!Cpu@{Cpu}}
\subsubsection{\texorpdfstring{eina\+\_\+swap16()}{eina\_swap16()}}
{\footnotesize\ttfamily static unsigned short eina\+\_\+swap16 (\begin{DoxyParamCaption}\item[{unsigned short}]{x }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



Reverses the byte order of a 16-\/bit (destination) register. 


\begin{DoxyParams}{Parameters}
{\em x} & The binary word to swap \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a byte order swapped 16-\/bit integer.
\end{DoxyReturn}
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. \mbox{\Hypertarget{group__Eina__Cpu__Group_ga145eac053a5a0bc5a7f99347d3375e1c}\label{group__Eina__Cpu__Group_ga145eac053a5a0bc5a7f99347d3375e1c}} 
\index{Cpu@{Cpu}!eina\+\_\+swap32@{eina\+\_\+swap32}}
\index{eina\+\_\+swap32@{eina\+\_\+swap32}!Cpu@{Cpu}}
\subsubsection{\texorpdfstring{eina\+\_\+swap32()}{eina\_swap32()}}
{\footnotesize\ttfamily static unsigned int eina\+\_\+swap32 (\begin{DoxyParamCaption}\item[{unsigned int}]{x }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



Reverses the byte order of a 32-\/bit (destination) register. 


\begin{DoxyParams}{Parameters}
{\em x} & The binary word to swap \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a byte order swapped 32-\/bit integer.
\end{DoxyReturn}
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. \mbox{\Hypertarget{group__Eina__Cpu__Group_ga333e8feb4c7412f32aa0ec817b142948}\label{group__Eina__Cpu__Group_ga333e8feb4c7412f32aa0ec817b142948}} 
\index{Cpu@{Cpu}!eina\+\_\+swap64@{eina\+\_\+swap64}}
\index{eina\+\_\+swap64@{eina\+\_\+swap64}!Cpu@{Cpu}}
\subsubsection{\texorpdfstring{eina\+\_\+swap64()}{eina\_swap64()}}
{\footnotesize\ttfamily static unsigned long long eina\+\_\+swap64 (\begin{DoxyParamCaption}\item[{unsigned long long}]{x }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



Reverses the byte order of a 64-\/bit (destination) register. 


\begin{DoxyParams}{Parameters}
{\em x} & The binary word to swap \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a byte order swapped 64-\/bit integer.
\end{DoxyReturn}
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. 

\subsection{Variable Documentation}
\mbox{\Hypertarget{group__Eina__Cpu__Group_gaabf2bf19bc6c111d69a9fd90263df998}\label{group__Eina__Cpu__Group_gaabf2bf19bc6c111d69a9fd90263df998}} 
\index{Cpu@{Cpu}!eina\+\_\+cpu\+\_\+features@{eina\+\_\+cpu\+\_\+features}}
\index{eina\+\_\+cpu\+\_\+features@{eina\+\_\+cpu\+\_\+features}!Cpu@{Cpu}}
\subsubsection{\texorpdfstring{eina\+\_\+cpu\+\_\+features}{eina\_cpu\_features}}
{\footnotesize\ttfamily \hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} \hyperlink{group__Eina__Cpu__Group_ga5b1c582b9cbe7cf337aedb4f80f78a7f}{Eina\+\_\+\+Cpu\+\_\+\+Features} eina\+\_\+cpu\+\_\+features}



Global hardware architecture handler. 

\begin{DoxyReturn}{Returns}
the current cpu features 
\end{DoxyReturn}
