mirror of
				https://github.com/ml-explore/mlx.git
				synced 2025-11-04 18:48:15 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			209 lines
		
	
	
		
			29 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			209 lines
		
	
	
		
			29 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 | 
						|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
 | 
						|
<head>
 | 
						|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
 | 
						|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
 | 
						|
<meta name="generator" content="Doxygen 1.13.2"/>
 | 
						|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
 | 
						|
<title>MLX: mlx/backend/cpu/simd/accelerate_fp16_simd.h Source File</title>
 | 
						|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
 | 
						|
<script type="text/javascript" src="jquery.js"></script>
 | 
						|
<script type="text/javascript" src="dynsections.js"></script>
 | 
						|
<script type="text/javascript" src="clipboard.js"></script>
 | 
						|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
 | 
						|
<script type="text/javascript" src="navtreedata.js"></script>
 | 
						|
<script type="text/javascript" src="navtree.js"></script>
 | 
						|
<script type="text/javascript" src="resize.js"></script>
 | 
						|
<script type="text/javascript" src="cookie.js"></script>
 | 
						|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
 | 
						|
<script type="text/javascript" src="search/searchdata.js"></script>
 | 
						|
<script type="text/javascript" src="search/search.js"></script>
 | 
						|
<script type="text/javascript">
 | 
						|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
 | 
						|
  $(function() { init_search(); });
 | 
						|
/* @license-end */
 | 
						|
</script>
 | 
						|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
 | 
						|
</head>
 | 
						|
<body>
 | 
						|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
 | 
						|
<div id="titlearea">
 | 
						|
<table cellspacing="0" cellpadding="0">
 | 
						|
 <tbody>
 | 
						|
 <tr id="projectrow">
 | 
						|
  <td id="projectalign">
 | 
						|
   <div id="projectname">MLX
 | 
						|
   </div>
 | 
						|
  </td>
 | 
						|
    <td>        <div id="MSearchBox" class="MSearchBoxInactive">
 | 
						|
        <span class="left">
 | 
						|
          <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()"> </span>
 | 
						|
          <input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
 | 
						|
               onfocus="searchBox.OnSearchFieldFocus(true)" 
 | 
						|
               onblur="searchBox.OnSearchFieldFocus(false)" 
 | 
						|
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
 | 
						|
          </span><span class="right">
 | 
						|
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
 | 
						|
          </span>
 | 
						|
        </div>
 | 
						|
</td>
 | 
						|
 </tr>
 | 
						|
 </tbody>
 | 
						|
</table>
 | 
						|
</div>
 | 
						|
<!-- end header part -->
 | 
						|
<!-- Generated by Doxygen 1.13.2 -->
 | 
						|
<script type="text/javascript">
 | 
						|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
 | 
						|
var searchBox = new SearchBox("searchBox", "search/",'.html');
 | 
						|
/* @license-end */
 | 
						|
</script>
 | 
						|
<script type="text/javascript">
 | 
						|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
 | 
						|
$(function() { codefold.init(0); });
 | 
						|
/* @license-end */
 | 
						|
</script>
 | 
						|
</div><!-- top -->
 | 
						|
<div id="side-nav" class="ui-resizable side-nav-resizable">
 | 
						|
  <div id="nav-tree">
 | 
						|
    <div id="nav-tree-contents">
 | 
						|
      <div id="nav-sync" class="sync"></div>
 | 
						|
    </div>
 | 
						|
  </div>
 | 
						|
  <div id="splitbar" style="-moz-user-select:none;" 
 | 
						|
       class="ui-resizable-handle">
 | 
						|
  </div>
 | 
						|
</div>
 | 
						|
<script type="text/javascript">
 | 
						|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
 | 
						|
$(function(){initNavTree('accelerate__fp16__simd_8h_source.html',''); initResizable(true); });
 | 
						|
/* @license-end */
 | 
						|
</script>
 | 
						|
<div id="doc-content">
 | 
						|
<!-- window showing the filter options -->
 | 
						|
<div id="MSearchSelectWindow"
 | 
						|
     onmouseover="return searchBox.OnSearchSelectShow()"
 | 
						|
     onmouseout="return searchBox.OnSearchSelectHide()"
 | 
						|
     onkeydown="return searchBox.OnSearchSelectKey(event)">
 | 
						|
</div>
 | 
						|
 | 
						|
<!-- iframe showing the search results (closed by default) -->
 | 
						|
<div id="MSearchResultsWindow">
 | 
						|
<div id="MSearchResults">
 | 
						|
<div class="SRPage">
 | 
						|
<div id="SRIndex">
 | 
						|
<div id="SRResults"></div>
 | 
						|
<div class="SRStatus" id="Loading">Loading...</div>
 | 
						|
<div class="SRStatus" id="Searching">Searching...</div>
 | 
						|
<div class="SRStatus" id="NoMatches">No Matches</div>
 | 
						|
</div>
 | 
						|
</div>
 | 
						|
</div>
 | 
						|
</div>
 | 
						|
 | 
						|
<div class="header">
 | 
						|
  <div class="headertitle"><div class="title">accelerate_fp16_simd.h</div></div>
 | 
						|
</div><!--header-->
 | 
						|
<div class="contents">
 | 
						|
<a href="accelerate__fp16__simd_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="preprocessor">#pragma once</span></div>
 | 
						|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span> </div>
 | 
						|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="preprocessor">#include "<a class="code" href="base__simd_8h.html">mlx/backend/cpu/simd/base_simd.h</a>"</span></div>
 | 
						|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span> </div>
 | 
						|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="preprocessor">#if MLX_SIMD_LIBRARY_VERSION < 6</span></div>
 | 
						|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="preprocessor">#include "<a class="code" href="neon__fp16__simd_8h.html">mlx/backend/cpu/simd/neon_fp16_simd.h</a>"</span></div>
 | 
						|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="preprocessor">#endif</span></div>
 | 
						|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span> </div>
 | 
						|
<div class="foldopen" id="foldopen00009" data-start="{" data-end="}">
 | 
						|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"><a class="line" href="namespacemlx_1_1core_1_1simd.html">    9</a></span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacemlx_1_1core_1_1simd.html">mlx::core::simd</a> {</div>
 | 
						|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span> </div>
 | 
						|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="preprocessor">#if MLX_SIMD_LIBRARY_VERSION >= 6</span></div>
 | 
						|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="keyword">constexpr</span> <span class="keywordtype">int</span> <a class="code hl_variable" href="namespacemlx_1_1core_1_1simd.html#a12b1553495a0c99d52472bd2a6626ddb">N</a> = 8;</div>
 | 
						|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="keyword">template</span> <<span class="keywordtype">int</span> N></div>
 | 
						|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="keyword">struct </span><a class="code hl_struct" href="structmlx_1_1core_1_1simd_1_1_scalar_t.html">ScalarT</a><<a class="code hl_typedef" href="namespacemlx_1_1core.html#afbd2769c30e721afc85a7b9fb55b8e52">float16_t</a>, <a class="code hl_variable" href="namespacemlx_1_1core_1_1simd.html#a12b1553495a0c99d52472bd2a6626ddb">N</a>> {</div>
 | 
						|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span>  <span class="keyword">using </span><a class="code hl_typedef" href="structmlx_1_1core_1_1simd_1_1_scalar_t.html#af165519c33808c4f815143f77739db49">v</a> = _Float16;</div>
 | 
						|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span>};</div>
 | 
						|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="preprocessor">#endif</span></div>
 | 
						|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span> </div>
 | 
						|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="keyword">template</span> <></div>
 | 
						|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="namespacemlx_1_1core_1_1simd.html#a155df1de3c26e1a3725b63e9e97c0b53">   20</a></span><span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keywordtype">int</span> <a class="code hl_variable" href="namespacemlx_1_1core_1_1simd.html#ac91bd36c7caafd3c7ff176e7e2f81887">max_size<float16_t></a> = <a class="code hl_variable" href="namespacemlx_1_1core_1_1simd.html#a12b1553495a0c99d52472bd2a6626ddb">N</a>;</div>
 | 
						|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span> </div>
 | 
						|
<div class="foldopen" id="foldopen00022" data-start="" data-end="">
 | 
						|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="accelerate__fp16__simd_8h.html#a60af883c0392ecab270ecc1146f5e8a2">   22</a></span><span class="preprocessor">#define SIMD_FP16_DEFAULT_UNARY(op)                    \</span></div>
 | 
						|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="preprocessor">  template <>                                          \</span></div>
 | 
						|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="preprocessor">  inline Simd<float16_t, N> op(Simd<float16_t, N> v) { \</span></div>
 | 
						|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="preprocessor">    Simd<float, N> in = v;                             \</span></div>
 | 
						|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span><span class="preprocessor">    return op(in);                                     \</span></div>
 | 
						|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span><span class="preprocessor">  }</span></div>
 | 
						|
</div>
 | 
						|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span> </div>
 | 
						|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="namespacemlx_1_1core_1_1simd.html#ae623449dfa7aab3031aa2f14c1b10a2d">   29</a></span><a class="code hl_define" href="accelerate__fp16__simd_8h.html#a60af883c0392ecab270ecc1146f5e8a2">SIMD_FP16_DEFAULT_UNARY</a>(<a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#ae623449dfa7aab3031aa2f14c1b10a2d">acos</a>)</div>
 | 
						|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="namespacemlx_1_1core_1_1simd.html#a4f8a64e7742fcd8f759f723a36a7c826">   30</a></span><a class="code hl_define" href="accelerate__fp16__simd_8h.html#a60af883c0392ecab270ecc1146f5e8a2">SIMD_FP16_DEFAULT_UNARY</a>(<a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a4f8a64e7742fcd8f759f723a36a7c826">acosh</a>)</div>
 | 
						|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="namespacemlx_1_1core_1_1simd.html#a9c7723fc49137394fa817136a7ffb50f">   31</a></span><a class="code hl_define" href="accelerate__fp16__simd_8h.html#a60af883c0392ecab270ecc1146f5e8a2">SIMD_FP16_DEFAULT_UNARY</a>(<a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a9c7723fc49137394fa817136a7ffb50f">asin</a>)</div>
 | 
						|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="namespacemlx_1_1core_1_1simd.html#aaa76bdf1db09261d84da51d394837f5d">   32</a></span><a class="code hl_define" href="accelerate__fp16__simd_8h.html#a60af883c0392ecab270ecc1146f5e8a2">SIMD_FP16_DEFAULT_UNARY</a>(<a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#aaa76bdf1db09261d84da51d394837f5d">asinh</a>)</div>
 | 
						|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="namespacemlx_1_1core_1_1simd.html#aa7550a1210e50c996d0db84034b8a22e">   33</a></span><a class="code hl_define" href="accelerate__fp16__simd_8h.html#a60af883c0392ecab270ecc1146f5e8a2">SIMD_FP16_DEFAULT_UNARY</a>(<a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#aa7550a1210e50c996d0db84034b8a22e">atan</a>)</div>
 | 
						|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="namespacemlx_1_1core_1_1simd.html#a18d330fd2c7360b2890a722232ba35b7">   34</a></span><a class="code hl_define" href="accelerate__fp16__simd_8h.html#a60af883c0392ecab270ecc1146f5e8a2">SIMD_FP16_DEFAULT_UNARY</a>(<a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a18d330fd2c7360b2890a722232ba35b7">atanh</a>)</div>
 | 
						|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="namespacemlx_1_1core_1_1simd.html#aedc18b6fdb820cce9125c977c02833aa">   35</a></span><a class="code hl_define" href="accelerate__fp16__simd_8h.html#a60af883c0392ecab270ecc1146f5e8a2">SIMD_FP16_DEFAULT_UNARY</a>(<a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#aedc18b6fdb820cce9125c977c02833aa">cosh</a>)</div>
 | 
						|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="namespacemlx_1_1core_1_1simd.html#a9407980793ecff5d5eb19c9a2cbda1eb">   36</a></span><a class="code hl_define" href="accelerate__fp16__simd_8h.html#a60af883c0392ecab270ecc1146f5e8a2">SIMD_FP16_DEFAULT_UNARY</a>(<a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a9407980793ecff5d5eb19c9a2cbda1eb">expm1</a>)</div>
 | 
						|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="namespacemlx_1_1core_1_1simd.html#a8cec82f4fb15bfd31d7554c6c09ceed4">   37</a></span><a class="code hl_define" href="accelerate__fp16__simd_8h.html#a60af883c0392ecab270ecc1146f5e8a2">SIMD_FP16_DEFAULT_UNARY</a>(<a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a8cec82f4fb15bfd31d7554c6c09ceed4">log</a>)</div>
 | 
						|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="namespacemlx_1_1core_1_1simd.html#a66426c28a4324b9f617b7018d9354ea1">   38</a></span><a class="code hl_define" href="accelerate__fp16__simd_8h.html#a60af883c0392ecab270ecc1146f5e8a2">SIMD_FP16_DEFAULT_UNARY</a>(<a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a66426c28a4324b9f617b7018d9354ea1">log2</a>)</div>
 | 
						|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="namespacemlx_1_1core_1_1simd.html#a3cb6ea94836e999c07329b34c501ed85">   39</a></span><a class="code hl_define" href="accelerate__fp16__simd_8h.html#a60af883c0392ecab270ecc1146f5e8a2">SIMD_FP16_DEFAULT_UNARY</a>(<a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a3cb6ea94836e999c07329b34c501ed85">log10</a>)</div>
 | 
						|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="namespacemlx_1_1core_1_1simd.html#ad06680bbc041e76efe2dbff4e11b9a13">   40</a></span><a class="code hl_define" href="accelerate__fp16__simd_8h.html#a60af883c0392ecab270ecc1146f5e8a2">SIMD_FP16_DEFAULT_UNARY</a>(<a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#ad06680bbc041e76efe2dbff4e11b9a13">log1p</a>)</div>
 | 
						|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="namespacemlx_1_1core_1_1simd.html#a09a2f3f2bc999c16babf3d8d90994d6e">   41</a></span><a class="code hl_define" href="accelerate__fp16__simd_8h.html#a60af883c0392ecab270ecc1146f5e8a2">SIMD_FP16_DEFAULT_UNARY</a>(<a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a09a2f3f2bc999c16babf3d8d90994d6e">sinh</a>)</div>
 | 
						|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="namespacemlx_1_1core_1_1simd.html#a445ddc4ed928656df64d889942588cfd">   42</a></span><a class="code hl_define" href="accelerate__fp16__simd_8h.html#a60af883c0392ecab270ecc1146f5e8a2">SIMD_FP16_DEFAULT_UNARY</a>(<a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a445ddc4ed928656df64d889942588cfd">tan</a>)</div>
 | 
						|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="namespacemlx_1_1core_1_1simd.html#aa244fbe7456b653aa50a473108fd6a2b">   43</a></span><a class="code hl_define" href="accelerate__fp16__simd_8h.html#a60af883c0392ecab270ecc1146f5e8a2">SIMD_FP16_DEFAULT_UNARY</a>(<a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#aa244fbe7456b653aa50a473108fd6a2b">tanh</a>)</div>
 | 
						|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span> </div>
 | 
						|
<div class="foldopen" id="foldopen00045" data-start="" data-end="">
 | 
						|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="accelerate__fp16__simd_8h.html#a6437645d67e6a8b7c1349b0040aaa6bb">   45</a></span><span class="preprocessor">#define SIMD_FP16_DEFAULT_BINARY(op)                                         \</span></div>
 | 
						|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span><span class="preprocessor">  template <>                                                                \</span></div>
 | 
						|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span><span class="preprocessor">  inline Simd<float16_t, N> op(Simd<float16_t, N> x, Simd<float16_t, N> y) { \</span></div>
 | 
						|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span><span class="preprocessor">    Simd<float, N> a = x;                                                    \</span></div>
 | 
						|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span><span class="preprocessor">    Simd<float, N> b = y;                                                    \</span></div>
 | 
						|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span><span class="preprocessor">    return op(a, b);                                                         \</span></div>
 | 
						|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span><span class="preprocessor">  }</span></div>
 | 
						|
</div>
 | 
						|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"><a class="line" href="namespacemlx_1_1core_1_1simd.html#a23dba4ee3f0811b41c381733a6e6ff16">   52</a></span><a class="code hl_define" href="accelerate__fp16__simd_8h.html#a6437645d67e6a8b7c1349b0040aaa6bb">SIMD_FP16_DEFAULT_BINARY</a>(<a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a23dba4ee3f0811b41c381733a6e6ff16">atan2</a>)</div>
 | 
						|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="namespacemlx_1_1core_1_1simd.html#ac66bdf1a8e86a4d350c85037bc764da5">   53</a></span><a class="code hl_define" href="accelerate__fp16__simd_8h.html#a6437645d67e6a8b7c1349b0040aaa6bb">SIMD_FP16_DEFAULT_BINARY</a>(<a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#ac66bdf1a8e86a4d350c85037bc764da5">remainder</a>)</div>
 | 
						|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="namespacemlx_1_1core_1_1simd.html#a19d535de1fc179cc39ec9643c9863cbc">   54</a></span><a class="code hl_define" href="accelerate__fp16__simd_8h.html#a6437645d67e6a8b7c1349b0040aaa6bb">SIMD_FP16_DEFAULT_BINARY</a>(<a class="code hl_function" href="namespacemlx_1_1core_1_1simd.html#a19d535de1fc179cc39ec9643c9863cbc">pow</a>)</div>
 | 
						|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span> </div>
 | 
						|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span>} <span class="comment">// namespace mlx::core::simd</span></div>
 | 
						|
</div>
 | 
						|
<div class="ttc" id="aaccelerate__fp16__simd_8h_html_a60af883c0392ecab270ecc1146f5e8a2"><div class="ttname"><a href="accelerate__fp16__simd_8h.html#a60af883c0392ecab270ecc1146f5e8a2">SIMD_FP16_DEFAULT_UNARY</a></div><div class="ttdeci">#define SIMD_FP16_DEFAULT_UNARY(op)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:22</div></div>
 | 
						|
<div class="ttc" id="aaccelerate__fp16__simd_8h_html_a6437645d67e6a8b7c1349b0040aaa6bb"><div class="ttname"><a href="accelerate__fp16__simd_8h.html#a6437645d67e6a8b7c1349b0040aaa6bb">SIMD_FP16_DEFAULT_BINARY</a></div><div class="ttdeci">#define SIMD_FP16_DEFAULT_BINARY(op)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:45</div></div>
 | 
						|
<div class="ttc" id="abase__simd_8h_html"><div class="ttname"><a href="base__simd_8h.html">base_simd.h</a></div></div>
 | 
						|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html">mlx::core::simd</a></div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:9</div></div>
 | 
						|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a09a2f3f2bc999c16babf3d8d90994d6e"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a09a2f3f2bc999c16babf3d8d90994d6e">mlx::core::simd::sinh</a></div><div class="ttdeci">Simd< float16_t, N > sinh(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:41</div></div>
 | 
						|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a12b1553495a0c99d52472bd2a6626ddb"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a12b1553495a0c99d52472bd2a6626ddb">mlx::core::simd::N</a></div><div class="ttdeci">constexpr int N</div><div class="ttdef"><b>Definition</b> neon_fp16_simd.h:9</div></div>
 | 
						|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a18d330fd2c7360b2890a722232ba35b7"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a18d330fd2c7360b2890a722232ba35b7">mlx::core::simd::atanh</a></div><div class="ttdeci">Simd< float16_t, N > atanh(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:34</div></div>
 | 
						|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a19d535de1fc179cc39ec9643c9863cbc"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a19d535de1fc179cc39ec9643c9863cbc">mlx::core::simd::pow</a></div><div class="ttdeci">Simd< float16_t, N > pow(Simd< float16_t, N > x, Simd< float16_t, N > y)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:54</div></div>
 | 
						|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a23dba4ee3f0811b41c381733a6e6ff16"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a23dba4ee3f0811b41c381733a6e6ff16">mlx::core::simd::atan2</a></div><div class="ttdeci">Simd< float16_t, N > atan2(Simd< float16_t, N > x, Simd< float16_t, N > y)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:52</div></div>
 | 
						|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a3cb6ea94836e999c07329b34c501ed85"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a3cb6ea94836e999c07329b34c501ed85">mlx::core::simd::log10</a></div><div class="ttdeci">Simd< float16_t, N > log10(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:39</div></div>
 | 
						|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a445ddc4ed928656df64d889942588cfd"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a445ddc4ed928656df64d889942588cfd">mlx::core::simd::tan</a></div><div class="ttdeci">Simd< float16_t, N > tan(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:42</div></div>
 | 
						|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a4f8a64e7742fcd8f759f723a36a7c826"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a4f8a64e7742fcd8f759f723a36a7c826">mlx::core::simd::acosh</a></div><div class="ttdeci">Simd< float16_t, N > acosh(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:30</div></div>
 | 
						|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a66426c28a4324b9f617b7018d9354ea1"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a66426c28a4324b9f617b7018d9354ea1">mlx::core::simd::log2</a></div><div class="ttdeci">Simd< float16_t, N > log2(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:38</div></div>
 | 
						|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a8cec82f4fb15bfd31d7554c6c09ceed4"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a8cec82f4fb15bfd31d7554c6c09ceed4">mlx::core::simd::log</a></div><div class="ttdeci">Simd< float16_t, N > log(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:37</div></div>
 | 
						|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a9407980793ecff5d5eb19c9a2cbda1eb"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a9407980793ecff5d5eb19c9a2cbda1eb">mlx::core::simd::expm1</a></div><div class="ttdeci">Simd< float16_t, N > expm1(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:36</div></div>
 | 
						|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_a9c7723fc49137394fa817136a7ffb50f"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#a9c7723fc49137394fa817136a7ffb50f">mlx::core::simd::asin</a></div><div class="ttdeci">Simd< float16_t, N > asin(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:31</div></div>
 | 
						|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_aa244fbe7456b653aa50a473108fd6a2b"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#aa244fbe7456b653aa50a473108fd6a2b">mlx::core::simd::tanh</a></div><div class="ttdeci">Simd< float16_t, N > tanh(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:43</div></div>
 | 
						|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_aa7550a1210e50c996d0db84034b8a22e"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#aa7550a1210e50c996d0db84034b8a22e">mlx::core::simd::atan</a></div><div class="ttdeci">Simd< float16_t, N > atan(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:33</div></div>
 | 
						|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_aaa76bdf1db09261d84da51d394837f5d"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#aaa76bdf1db09261d84da51d394837f5d">mlx::core::simd::asinh</a></div><div class="ttdeci">Simd< float16_t, N > asinh(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:32</div></div>
 | 
						|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_ac66bdf1a8e86a4d350c85037bc764da5"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#ac66bdf1a8e86a4d350c85037bc764da5">mlx::core::simd::remainder</a></div><div class="ttdeci">Simd< float16_t, N > remainder(Simd< float16_t, N > x, Simd< float16_t, N > y)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:53</div></div>
 | 
						|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_ac91bd36c7caafd3c7ff176e7e2f81887"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#ac91bd36c7caafd3c7ff176e7e2f81887">mlx::core::simd::max_size</a></div><div class="ttdeci">static constexpr int max_size</div><div class="ttdef"><b>Definition</b> base_simd.h:14</div></div>
 | 
						|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_ad06680bbc041e76efe2dbff4e11b9a13"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#ad06680bbc041e76efe2dbff4e11b9a13">mlx::core::simd::log1p</a></div><div class="ttdeci">Simd< float16_t, N > log1p(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:40</div></div>
 | 
						|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_ae623449dfa7aab3031aa2f14c1b10a2d"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#ae623449dfa7aab3031aa2f14c1b10a2d">mlx::core::simd::acos</a></div><div class="ttdeci">Simd< float16_t, N > acos(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:29</div></div>
 | 
						|
<div class="ttc" id="anamespacemlx_1_1core_1_1simd_html_aedc18b6fdb820cce9125c977c02833aa"><div class="ttname"><a href="namespacemlx_1_1core_1_1simd.html#aedc18b6fdb820cce9125c977c02833aa">mlx::core::simd::cosh</a></div><div class="ttdeci">Simd< float16_t, N > cosh(Simd< float16_t, N > v)</div><div class="ttdef"><b>Definition</b> accelerate_fp16_simd.h:35</div></div>
 | 
						|
<div class="ttc" id="anamespacemlx_1_1core_html_afbd2769c30e721afc85a7b9fb55b8e52"><div class="ttname"><a href="namespacemlx_1_1core.html#afbd2769c30e721afc85a7b9fb55b8e52">mlx::core::float16_t</a></div><div class="ttdeci">struct _MLX_Float16 float16_t</div><div class="ttdef"><b>Definition</b> half_types.h:17</div></div>
 | 
						|
<div class="ttc" id="aneon__fp16__simd_8h_html"><div class="ttname"><a href="neon__fp16__simd_8h.html">neon_fp16_simd.h</a></div></div>
 | 
						|
<div class="ttc" id="astructmlx_1_1core_1_1simd_1_1_scalar_t_html"><div class="ttname"><a href="structmlx_1_1core_1_1simd_1_1_scalar_t.html">mlx::core::simd::ScalarT</a></div><div class="ttdef"><b>Definition</b> accelerate_simd.h:34</div></div>
 | 
						|
<div class="ttc" id="astructmlx_1_1core_1_1simd_1_1_scalar_t_html_af165519c33808c4f815143f77739db49"><div class="ttname"><a href="structmlx_1_1core_1_1simd_1_1_scalar_t.html#af165519c33808c4f815143f77739db49">mlx::core::simd::ScalarT::v</a></div><div class="ttdeci">T v</div><div class="ttdef"><b>Definition</b> accelerate_simd.h:35</div></div>
 | 
						|
</div><!-- fragment --></div><!-- contents -->
 | 
						|
</div><!-- doc-content -->
 | 
						|
<!-- start footer part -->
 | 
						|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
 | 
						|
  <ul>
 | 
						|
    <li class="navelem"><a class="el" href="dir_938ab0ecf10b8b860ff766c820f665fd.html">mlx</a></li><li class="navelem"><a class="el" href="dir_1d446c9bd3c99228254c9484e0bc5c06.html">backend</a></li><li class="navelem"><a class="el" href="dir_48c8bf40aae7e42226b4fe31ea48af19.html">cpu</a></li><li class="navelem"><a class="el" href="dir_777905fddc177f731a39846ae16b0314.html">simd</a></li><li class="navelem"><a class="el" href="accelerate__fp16__simd_8h.html">accelerate_fp16_simd.h</a></li>
 | 
						|
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.13.2 </li>
 | 
						|
  </ul>
 | 
						|
</div>
 | 
						|
</body>
 | 
						|
</html>
 |