2024-06-06 20:28:06 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								<!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.10.0" / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< meta  name = "viewport"  content = "width=device-width, initial-scale=1" / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< title > MLX: mlx/backend/metal/kernels/reduction/ops.h File Reference< / 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 > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< 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 > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< 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 > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								 < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								 < / tbody > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / table > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								<!--  end header part  --> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								<!--  Generated by Doxygen 1.10.0  --> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< 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"  src = "menudata.js" > < / script > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< script  type = "text/javascript"  src = "menu.js" > < / script > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< script  type = "text/javascript" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								$(function() {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  initMenu('',true,false,'search.php','Search');
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  $(function() { init_search(); });
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								});
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								/* @license-end */
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / script > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< div  id = "main-nav" > < / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								<!--  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  id = "nav-path"  class = "navpath" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  < 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_d0c977ea65824390717cdb7efc36c157.html" > metal< / a > < / li > < li  class = "navelem" > < a  class = "el"  href = "dir_70a37effa88bcbd6b791977fa1e64356.html" > kernels< / a > < / li > < li  class = "navelem" > < a  class = "el"  href = "dir_f60cd69d27fd3faa641c79056fff0e2d.html" > reduction< / a > < / li >   < / ul > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / div > <!--  top  --> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< div  class = "header" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  < div  class = "summary" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< a  href = "#nested-classes" > Classes< / a >  | 
							 
						 
					
						
							
								
									
										
										
										
											2024-08-23 12:14:53 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< a  href = "#define-members" > Macros< / a >  | 
							 
						 
					
						
							
								
									
										
										
										
											2024-06-06 20:28:06 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								< a  href = "#var-members" > Variables< / a >   < / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  < div  class = "headertitle" > < div  class = "title" > ops.h File Reference< / div > < / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / div > <!-- header --> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< div  class = "contents" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< div  class = "textblock" > < code > #include < metal_atomic> < / code > < br  / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< code > #include < metal_simdgroup> < / code > < br  / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< p > < a  href = "backend_2metal_2kernels_2reduction_2ops_8h_source.html" > Go to the source code of this file.< / a > < / p > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< table  class = "memberdecls" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< tr  class = "heading" > < td  colspan = "2" > < h2  class = "groupheader" > < a  id = "nested-classes"  name = "nested-classes" > < / a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Classes< / h2 > < / td > < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< tr  class = "memitem:" > < td  class = "memItemLeft"  align = "right"  valign = "top" > union   < / td > < td  class = "memItemRight"  valign = "bottom" > < a  class = "el"  href = "unionbool4__or__uint.html" > bool4_or_uint< / a > < / td > < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< tr  class = "separator:" > < td  class = "memSeparator"  colspan = "2" >   < / td > < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< tr  class = "memitem:" > < td  class = "memItemLeft"  align = "right"  valign = "top" > struct   < / td > < td  class = "memItemRight"  valign = "bottom" > < a  class = "el"  href = "struct_none.html" > None< / a > < / td > < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< tr  class = "separator:" > < td  class = "memSeparator"  colspan = "2" >   < / td > < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< tr  class = "memitem:" > < td  class = "memItemLeft"  align = "right"  valign = "top" > struct   < / td > < td  class = "memItemRight"  valign = "bottom" > < a  class = "el"  href = "struct_and.html" > And<  U > < / a > < / td > < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< tr  class = "separator:" > < td  class = "memSeparator"  colspan = "2" >   < / td > < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< tr  class = "memitem:" > < td  class = "memItemLeft"  align = "right"  valign = "top" > struct   < / td > < td  class = "memItemRight"  valign = "bottom" > < a  class = "el"  href = "struct_or.html" > Or<  U > < / a > < / td > < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< tr  class = "separator:" > < td  class = "memSeparator"  colspan = "2" >   < / td > < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< tr  class = "memitem:" > < td  class = "memItemLeft"  align = "right"  valign = "top" > struct   < / td > < td  class = "memItemRight"  valign = "bottom" > < a  class = "el"  href = "struct_sum.html" > Sum<  U > < / a > < / td > < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< tr  class = "separator:" > < td  class = "memSeparator"  colspan = "2" >   < / td > < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< tr  class = "memitem:" > < td  class = "memItemLeft"  align = "right"  valign = "top" > struct   < / td > < td  class = "memItemRight"  valign = "bottom" > < a  class = "el"  href = "struct_prod.html" > Prod<  U > < / a > < / td > < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< tr  class = "separator:" > < td  class = "memSeparator"  colspan = "2" >   < / td > < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< tr  class = "memitem:" > < td  class = "memItemLeft"  align = "right"  valign = "top" > struct   < / td > < td  class = "memItemRight"  valign = "bottom" > < a  class = "el"  href = "struct_min.html" > Min<  U > < / a > < / td > < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< tr  class = "separator:" > < td  class = "memSeparator"  colspan = "2" >   < / td > < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< tr  class = "memitem:" > < td  class = "memItemLeft"  align = "right"  valign = "top" > struct   < / td > < td  class = "memItemRight"  valign = "bottom" > < a  class = "el"  href = "struct_max.html" > Max<  U > < / a > < / td > < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< tr  class = "separator:" > < td  class = "memSeparator"  colspan = "2" >   < / td > < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / table > < table  class = "memberdecls" > 
							 
						 
					
						
							
								
									
										
										
										
											2024-08-23 12:14:53 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< tr  class = "heading" > < td  colspan = "2" > < h2  class = "groupheader" > < a  id = "define-members"  name = "define-members" > < / a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Macros< / h2 > < / td > < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< tr  class = "memitem:acacf99e0ba629ed062ccc3c2eba89b05"  id = "r_acacf99e0ba629ed062ccc3c2eba89b05" > < td  class = "memItemLeft"  align = "right"  valign = "top" > #define  < / td > < td  class = "memItemRight"  valign = "bottom" > < a  class = "el"  href = "#acacf99e0ba629ed062ccc3c2eba89b05" > DEFINE_SIMD_REDUCE< / a > ()< / td > < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< tr  class = "separator:acacf99e0ba629ed062ccc3c2eba89b05" > < td  class = "memSeparator"  colspan = "2" >   < / td > < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / table > < table  class = "memberdecls" > 
							 
						 
					
						
							
								
									
										
										
										
											2024-06-06 20:28:06 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								< tr  class = "heading" > < td  colspan = "2" > < h2  class = "groupheader" > < a  id = "var-members"  name = "var-members" > < / a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Variables< / h2 > < / td > < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< tr  class = "memitem:a515b75d563a93d3c09ee677948dc83e3"  id = "r_a515b75d563a93d3c09ee677948dc83e3" > < td  class = "memItemLeft"  align = "right"  valign = "top" > static constant constexpr const uint8_t  < / td > < td  class = "memItemRight"  valign = "bottom" > < a  class = "el"  href = "#a515b75d563a93d3c09ee677948dc83e3" > simd_size< / a >  = 32< / td > < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< tr  class = "separator:a515b75d563a93d3c09ee677948dc83e3" > < td  class = "memSeparator"  colspan = "2" >   < / td > < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / table > 
							 
						 
					
						
							
								
									
										
										
										
											2024-08-23 12:14:53 -07:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< h2  class = "groupheader" > Macro Definition Documentation< / h2 > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< a  id = "acacf99e0ba629ed062ccc3c2eba89b05"  name = "acacf99e0ba629ed062ccc3c2eba89b05" > < / a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< h2  class = "memtitle" > < span  class = "permalink" > < a  href = "#acacf99e0ba629ed062ccc3c2eba89b05" > ◆   < / a > < / span > DEFINE_SIMD_REDUCE< / h2 > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< div  class = "memitem" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< div  class = "memproto" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      < table  class = "memname" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          < td  class = "memname" > #define DEFINE_SIMD_REDUCE< / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          < td > (< / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          < td  class = "paramname" > < span  class = "paramname" > < / span > < / td > < td > )< / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          < td > < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      < / table > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / div > < div  class = "memdoc" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< b > Value:< / b > < div  class = "fragment" > < div  class = "line" >   < span  class = "keyword" > template< / span >  < < span  class = "keyword" > typename< / span >  T, metal::enable_if_t< sizeof(T) <  8, < span  class = "keywordtype" > bool< / span > >  = true>   \< / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< div  class = "line" >   T simd_reduce(T val) {                                                 \< / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< div  class = "line" >     return simd_reduce_impl(val);                                        \< / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< div  class = "line" >   }                                                                      \< / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< div  class = "line" >                                                                          \< / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< div  class = "line" >   < span  class = "keyword" > template< / span >  < < span  class = "keyword" > typename< / span >  T, metal::enable_if_t< sizeof(T) == 8, < span  class = "keywordtype" > bool< / span > >  = true>  \< / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< div  class = "line" >   T simd_reduce(T val) {                                                 \< / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< div  class = "line" >     for (< span  class = "keywordtype" > short< / span >  i = < a  class = "code hl_variable"  href = "#a515b75d563a93d3c09ee677948dc83e3" > simd_size< / a >  / 2; i >  0; i /= 2) {                       \< / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< div  class = "line" >       val = operator()(val, < a  class = "code hl_function"  href = "backend_2metal_2kernels_2utils_8h.html#aba6279624b1d30c525efee856a222b5c" > simd_shuffle_down< / a > (val, i));                  \< / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< div  class = "line" >     }                                                                    \< / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< div  class = "line" >     < span  class = "keywordflow" > return< / span >  val;                                                          \< / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< div  class = "line" >   }< / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< div  class = "ttc"  id = "abackend_2metal_2kernels_2reduction_2ops_8h_html_a515b75d563a93d3c09ee677948dc83e3" > < div  class = "ttname" > < a  href = "#a515b75d563a93d3c09ee677948dc83e3" > simd_size< / a > < / div > < div  class = "ttdeci" > static constant constexpr const uint8_t simd_size< / div > < div  class = "ttdef" > < b > Definition< / b >  ops.h:22< / div > < / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< div  class = "ttc"  id = "abackend_2metal_2kernels_2utils_8h_html_aba6279624b1d30c525efee856a222b5c" > < div  class = "ttname" > < a  href = "backend_2metal_2kernels_2utils_8h.html#aba6279624b1d30c525efee856a222b5c" > simd_shuffle_down< / a > < / div > < div  class = "ttdeci" > uint64_t simd_shuffle_down(uint64_t data, uint16_t delta)< / div > < div  class = "ttdef" > < b > Definition< / b >  utils.h:442< / div > < / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / div > <!--  fragment  --> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / div > 
							 
						 
					
						
							
								
									
										
										
										
											2024-06-06 20:28:06 -07:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								< h2  class = "groupheader" > Variable Documentation< / h2 > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< a  id = "a515b75d563a93d3c09ee677948dc83e3"  name = "a515b75d563a93d3c09ee677948dc83e3" > < / a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< h2  class = "memtitle" > < span  class = "permalink" > < a  href = "#a515b75d563a93d3c09ee677948dc83e3" > ◆   < / a > < / span > simd_size< / h2 > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< div  class = "memitem" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< div  class = "memproto" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< table  class = "mlabels" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  < tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  < td  class = "mlabels-left" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      < table  class = "memname" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								          < td  class = "memname" > constant constexpr const uint8_t simd_size = 32< / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								      < / table > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  < td  class = "mlabels-right" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< span  class = "mlabels" > < span  class = "mlabel" > static< / span > < span  class = "mlabel" > constexpr< / span > < / span >   < / td > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  < / tr > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / table > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / div > < div  class = "memdoc" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / div > <!--  contents  --> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								<!--  start footer part  --> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< hr  class = "footer" / > < address  class = "footer" > < small > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Generated by  < a  href = "https://www.doxygen.org/index.html" > < img  class = "footer"  src = "doxygen.svg"  width = "104"  height = "31"  alt = "doxygen" / > < / a >  1.10.0
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / small > < / address > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / body > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / html >