mirror of
https://github.com/g-truc/glm.git
synced 2024-11-14 14:04:36 +00:00
391 lines
52 KiB
HTML
391 lines
52 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<title>simd_vec4.hpp 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>
|
|
<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 style="height: 56px;">
|
|
<td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.2 -->
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_934f46a345653ef2b3014a1b37a162c1.html">G:</a></li><li class="navelem"><a class="el" href="dir_bf513233250988b6ff3b72f8482c1597.html">Repository</a></li><li class="navelem"><a class="el" href="dir_e217bba5d90990da93f61f0ea8b942dc.html">glm</a></li><li class="navelem"><a class="el" href="dir_a844bf6d5a07b8853f8463b41029861e.html">glm</a></li><li class="navelem"><a class="el" href="dir_abb3ddac8d2c26e45fecc003279ba790.html">gtx</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">simd_vec4.hpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="a00086.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> </div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> </div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> </div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> </div>
|
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> </div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> </div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> </div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> </div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> </div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> </div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> </div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> </div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#ifndef GLM_GTX_simd_vec4</span></div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor"></span><span class="preprocessor">#define GLM_GTX_simd_vec4 GLM_VERSION</span></div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="comment">// Dependency:</span></div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="preprocessor">#include "../glm.hpp"</span></div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="preprocessor">#if(GLM_ARCH != GLM_ARCH_PURE)</span></div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="preprocessor">#if(GLM_ARCH & GLM_ARCH_SSE2)</span></div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="preprocessor"></span><span class="preprocessor"># include "../core/intrinsic_common.hpp"</span></div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="preprocessor"># include "../core/intrinsic_geometric.hpp"</span></div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="preprocessor">#else</span></div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="preprocessor"></span><span class="preprocessor"># error "GLM: GLM_GTX_simd_vec4 requires compiler support of SSE2 through intrinsics"</span></div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(glm_ext))</span></div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="preprocessor"></span><span class="preprocessor"># pragma message("GLM: GLM_GTX_simd_vec4 extension included")</span></div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="comment">// Warning silencer for nameless struct/union.</span></div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="preprocessor">#if (GLM_COMPILER & GLM_COMPILER_VC)</span></div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="preprocessor"></span><span class="preprocessor"># pragma warning(push)</span></div>
|
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="preprocessor"></span><span class="preprocessor"># pragma warning(disable:4201) // warning C4201: nonstandard extension used : nameless struct/union</span></div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> </div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="keyword">namespace </span>glm{</div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="keyword">namespace </span>detail</div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> {</div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  GLM_ALIGNED_STRUCT(16) fvec4SIMD</div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  {</div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keyword">enum</span> ctor{null};</div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keyword">typedef</span> __m128 value_type;</div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keyword">typedef</span> std::size_t size_type;</div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keyword">static</span> size_type value_size();</div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keyword">typedef</span> fvec4SIMD type;</div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keyword">typedef</span> tvec4<bool> bool_type;</div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="preprocessor">#ifdef GLM_SIMD_ENABLE_XYZW_UNION</span></div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="preprocessor"></span> <span class="keyword">union</span></div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  {</div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  __m128 Data;</div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keyword">struct </span>{<span class="keywordtype">float</span> x, y, z, w;};</div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  };</div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="preprocessor">#else</span></div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="preprocessor"></span> __m128 Data;</div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="comment">// Implicit basic constructors</span></div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  fvec4SIMD();</div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  fvec4SIMD(__m128 <span class="keyword">const</span> & Data);</div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  fvec4SIMD(fvec4SIMD <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="comment">// Explicit basic constructors</span></div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keyword">explicit</span> fvec4SIMD(</div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  ctor);</div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keyword">explicit</span> fvec4SIMD(</div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordtype">float</span> <span class="keyword">const</span> & s);</div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keyword">explicit</span> fvec4SIMD(</div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordtype">float</span> <span class="keyword">const</span> & x, </div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keywordtype">float</span> <span class="keyword">const</span> & y, </div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordtype">float</span> <span class="keyword">const</span> & z, </div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keywordtype">float</span> <span class="keyword">const</span> & w);</div>
|
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keyword">explicit</span> fvec4SIMD(</div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  tvec4<float> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  fvec4SIMD(<a class="code" href="a00142.html#ga80139c81aa2687717598312039cea8d1" title="2 components vector of floating-point numbers.">vec2</a> <span class="keyword">const</span> & v, <span class="keywordtype">float</span> <span class="keyword">const</span> & s1, <span class="keywordtype">float</span> <span class="keyword">const</span> & s2);</div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  fvec4SIMD(<span class="keywordtype">float</span> <span class="keyword">const</span> & s1, <a class="code" href="a00142.html#ga80139c81aa2687717598312039cea8d1" title="2 components vector of floating-point numbers.">vec2</a> <span class="keyword">const</span> & v, <span class="keywordtype">float</span> <span class="keyword">const</span> & s2);</div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  fvec4SIMD(<span class="keywordtype">float</span> <span class="keyword">const</span> & s1, <span class="keywordtype">float</span> <span class="keyword">const</span> & s2, <a class="code" href="a00142.html#ga80139c81aa2687717598312039cea8d1" title="2 components vector of floating-point numbers.">vec2</a> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  fvec4SIMD(<a class="code" href="a00142.html#ga8a44105c47072f9ea1413f15faa31f64" title="3 components vector of floating-point numbers.">vec3</a> <span class="keyword">const</span> & v, <span class="keywordtype">float</span> <span class="keyword">const</span> & s);</div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  fvec4SIMD(<span class="keywordtype">float</span> <span class="keyword">const</span> & s, <a class="code" href="a00142.html#ga8a44105c47072f9ea1413f15faa31f64" title="3 components vector of floating-point numbers.">vec3</a> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  fvec4SIMD(<a class="code" href="a00142.html#ga80139c81aa2687717598312039cea8d1" title="2 components vector of floating-point numbers.">vec2</a> <span class="keyword">const</span> & v1, <a class="code" href="a00142.html#ga80139c81aa2687717598312039cea8d1" title="2 components vector of floating-point numbers.">vec2</a> <span class="keyword">const</span> & v2);</div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="comment">//fvec4SIMD(ivec4SIMD const & v);</span></div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> </div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="comment">// Unary arithmetic operators</span></div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  fvec4SIMD& operator= (fvec4SIMD <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  fvec4SIMD& operator+=(fvec4SIMD <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  fvec4SIMD& operator-=(fvec4SIMD <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  fvec4SIMD& operator*=(fvec4SIMD <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  fvec4SIMD& operator/=(fvec4SIMD <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> </div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  fvec4SIMD& operator+=(<span class="keywordtype">float</span> <span class="keyword">const</span> & s);</div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  fvec4SIMD& operator-=(<span class="keywordtype">float</span> <span class="keyword">const</span> & s);</div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  fvec4SIMD& operator*=(<span class="keywordtype">float</span> <span class="keyword">const</span> & s);</div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  fvec4SIMD& operator/=(<span class="keywordtype">float</span> <span class="keyword">const</span> & s);</div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> </div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  fvec4SIMD& operator++();</div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  fvec4SIMD& operator--();</div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> </div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="comment">// Swizzle operators</span></div>
|
|
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> </div>
|
|
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keyword">template</span> <comp X, comp Y, comp Z, comp W></div>
|
|
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  fvec4SIMD& swizzle();</div>
|
|
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keyword">template</span> <comp X, comp Y, comp Z, comp W></div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  fvec4SIMD swizzle() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keyword">template</span> <comp X, comp Y, comp Z></div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  fvec4SIMD swizzle() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keyword">template</span> <comp X, comp Y></div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  fvec4SIMD swizzle() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="keyword">template</span> <comp X></div>
|
|
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  fvec4SIMD swizzle() <span class="keyword">const</span>;</div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  };</div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> }<span class="comment">//namespace detail</span></div>
|
|
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> </div>
|
|
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keyword">typedef</span> glm::detail::fvec4SIMD simdVec4;</div>
|
|
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> </div>
|
|
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> </div>
|
|
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  detail::tvec4<float> vec4_cast(</div>
|
|
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  detail::fvec4SIMD <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> </div>
|
|
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  detail::fvec4SIMD <a class="code" href="a00129.html#gaeca8e195d482248f677e3905d00f11ae" title="Returns x if x >= 0; otherwise, it returns -x.">abs</a>(detail::fvec4SIMD <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> </div>
|
|
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  detail::fvec4SIMD <a class="code" href="a00129.html#ga79f412e6d33cb4be13497056c2298d14" title="Returns 1.0 if x > 0, 0.0 if x == 0, or -1.0 if x < 0.">sign</a>(detail::fvec4SIMD <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> </div>
|
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  detail::fvec4SIMD <a class="code" href="a00129.html#gac3458e950a8a716468866f841a833c77" title="Returns a value equal to the nearest integer that is less then or equal to x.">floor</a>(detail::fvec4SIMD <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> </div>
|
|
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  detail::fvec4SIMD <a class="code" href="a00129.html#gae1268fe85d913d9e4054de0e046abaef" title="Returns a value equal to the nearest integer to x whose absolute value is not larger than the absolut...">trunc</a>(detail::fvec4SIMD <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> </div>
|
|
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  detail::fvec4SIMD <a class="code" href="a00129.html#ga32125c5451799e80b886ef665b947d0c" title="Returns a value equal to the nearest integer to x.">round</a>(detail::fvec4SIMD <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> </div>
|
|
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="comment">//detail::fvec4SIMD roundEven(detail::fvec4SIMD const & x);</span></div>
|
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> </div>
|
|
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  detail::fvec4SIMD <a class="code" href="a00129.html#ga1ce130f2934cf1d7aca83a7027422f3c" title="Returns a value equal to the nearest integer that is greater than or equal to x.">ceil</a>(detail::fvec4SIMD <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> </div>
|
|
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  detail::fvec4SIMD <a class="code" href="a00129.html#gad5e3814491ff6baa4f0d16aebcabff9b" title="Return x - floor(x).">fract</a>(detail::fvec4SIMD <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> </div>
|
|
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  detail::fvec4SIMD <a class="code" href="a00129.html#ga3bdf136bc96f670965cd2f48d14356b4" title="Modulus.">mod</a>(</div>
|
|
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  detail::fvec4SIMD <span class="keyword">const</span> & x, </div>
|
|
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  detail::fvec4SIMD <span class="keyword">const</span> & y);</div>
|
|
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> </div>
|
|
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  detail::fvec4SIMD <a class="code" href="a00129.html#ga3bdf136bc96f670965cd2f48d14356b4" title="Modulus.">mod</a>(</div>
|
|
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  detail::fvec4SIMD <span class="keyword">const</span> & x, </div>
|
|
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="keywordtype">float</span> <span class="keyword">const</span> & y);</div>
|
|
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span> </div>
|
|
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="comment">//detail::fvec4SIMD modf(</span></div>
|
|
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <span class="comment">// detail::fvec4SIMD const & x, </span></div>
|
|
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="comment">// detail::fvec4SIMD & i);</span></div>
|
|
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span> </div>
|
|
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  detail::fvec4SIMD <a class="code" href="a00129.html#ga0d2bb6c2caad4acf992e6dcd41a626fe" title="Returns y if y < x; otherwise, it returns x.">min</a>(</div>
|
|
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  detail::fvec4SIMD <span class="keyword">const</span> & x, </div>
|
|
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  detail::fvec4SIMD <span class="keyword">const</span> & y);</div>
|
|
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span> </div>
|
|
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  detail::fvec4SIMD <a class="code" href="a00129.html#ga0d2bb6c2caad4acf992e6dcd41a626fe" title="Returns y if y < x; otherwise, it returns x.">min</a>(</div>
|
|
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  detail::fvec4SIMD <span class="keyword">const</span> & x, </div>
|
|
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <span class="keywordtype">float</span> <span class="keyword">const</span> & y);</div>
|
|
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> </div>
|
|
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  detail::fvec4SIMD <a class="code" href="a00129.html#ga3f6af26fbb056e0fc8a04ddc8871add2" title="Returns y if x < y; otherwise, it returns x.">max</a>(</div>
|
|
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  detail::fvec4SIMD <span class="keyword">const</span> & x, </div>
|
|
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  detail::fvec4SIMD <span class="keyword">const</span> & y);</div>
|
|
<div class="line"><a name="l00244"></a><span class="lineno"> 244</span> </div>
|
|
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  detail::fvec4SIMD <a class="code" href="a00129.html#ga3f6af26fbb056e0fc8a04ddc8871add2" title="Returns y if x < y; otherwise, it returns x.">max</a>(</div>
|
|
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  detail::fvec4SIMD <span class="keyword">const</span> & x, </div>
|
|
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <span class="keywordtype">float</span> <span class="keyword">const</span> & y);</div>
|
|
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span> </div>
|
|
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  detail::fvec4SIMD <a class="code" href="a00129.html#ga99b1ce602a02833646e5077345858da4" title="Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal an...">clamp</a>(</div>
|
|
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  detail::fvec4SIMD <span class="keyword">const</span> & x, </div>
|
|
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  detail::fvec4SIMD <span class="keyword">const</span> & minVal, </div>
|
|
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  detail::fvec4SIMD <span class="keyword">const</span> & maxVal); </div>
|
|
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span> </div>
|
|
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  detail::fvec4SIMD <a class="code" href="a00129.html#ga99b1ce602a02833646e5077345858da4" title="Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal an...">clamp</a>(</div>
|
|
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  detail::fvec4SIMD <span class="keyword">const</span> & x, </div>
|
|
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <span class="keywordtype">float</span> <span class="keyword">const</span> & minVal, </div>
|
|
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <span class="keywordtype">float</span> <span class="keyword">const</span> & maxVal); </div>
|
|
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span> </div>
|
|
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  <span class="comment">// \todo Test when 'a' is a boolean.</span></div>
|
|
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span> <span class="comment"></span> detail::fvec4SIMD <a class="code" href="a00129.html#ga3f64b3986efe205cf30300700667e761">mix</a>(</div>
|
|
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  detail::fvec4SIMD <span class="keyword">const</span> & x, </div>
|
|
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  detail::fvec4SIMD <span class="keyword">const</span> & y, </div>
|
|
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  detail::fvec4SIMD <span class="keyword">const</span> & a);</div>
|
|
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span> </div>
|
|
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  detail::fvec4SIMD <a class="code" href="a00129.html#ga3d3199dcbbb0ac8e0d9664d538702a40" title="Returns 0.0 if x < edge, otherwise it returns 1.0.">step</a>(</div>
|
|
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  detail::fvec4SIMD <span class="keyword">const</span> & edge, </div>
|
|
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  detail::fvec4SIMD <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span> </div>
|
|
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  detail::fvec4SIMD <a class="code" href="a00129.html#ga3d3199dcbbb0ac8e0d9664d538702a40" title="Returns 0.0 if x < edge, otherwise it returns 1.0.">step</a>(</div>
|
|
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  <span class="keywordtype">float</span> <span class="keyword">const</span> & edge, </div>
|
|
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  detail::fvec4SIMD <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00301"></a><span class="lineno"> 301</span> </div>
|
|
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  detail::fvec4SIMD <a class="code" href="a00129.html#gabdfe71a62ef69b5ec834601e87588667" title="Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth Hermite interpolation between 0 a...">smoothstep</a>(</div>
|
|
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  detail::fvec4SIMD <span class="keyword">const</span> & edge0, </div>
|
|
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  detail::fvec4SIMD <span class="keyword">const</span> & edge1, </div>
|
|
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  detail::fvec4SIMD <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span> </div>
|
|
<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  detail::fvec4SIMD <a class="code" href="a00129.html#gabdfe71a62ef69b5ec834601e87588667" title="Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth Hermite interpolation between 0 a...">smoothstep</a>(</div>
|
|
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  <span class="keywordtype">float</span> <span class="keyword">const</span> & edge0, </div>
|
|
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  <span class="keywordtype">float</span> <span class="keyword">const</span> & edge1, </div>
|
|
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  detail::fvec4SIMD <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span> </div>
|
|
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  <span class="comment">//bvec4 isnan(detail::fvec4SIMD const & x);</span></div>
|
|
<div class="line"><a name="l00329"></a><span class="lineno"> 329</span> </div>
|
|
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  <span class="comment">//bvec4 isinf(detail::fvec4SIMD const & x);</span></div>
|
|
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span> </div>
|
|
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  <span class="comment">//detail::ivec4SIMD floatBitsToInt(detail::fvec4SIMD const & value);</span></div>
|
|
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span> </div>
|
|
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  <span class="comment">//detail::fvec4SIMD intBitsToFloat(detail::ivec4SIMD const & value);</span></div>
|
|
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span> </div>
|
|
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  detail::fvec4SIMD <a class="code" href="a00129.html#gae88b926eebc4d610ecdd148bf8c7bdac" title="Computes and returns a * b + c.">fma</a>(</div>
|
|
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  detail::fvec4SIMD <span class="keyword">const</span> & a, </div>
|
|
<div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  detail::fvec4SIMD <span class="keyword">const</span> & b, </div>
|
|
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  detail::fvec4SIMD <span class="keyword">const</span> & c);</div>
|
|
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span> </div>
|
|
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  <span class="comment">//detail::fvec4SIMD frexp(detail::fvec4SIMD const & x, detail::ivec4SIMD & exp);</span></div>
|
|
<div class="line"><a name="l00369"></a><span class="lineno"> 369</span> </div>
|
|
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  <span class="comment">//detail::fvec4SIMD ldexp(detail::fvec4SIMD const & x, detail::ivec4SIMD const & exp);</span></div>
|
|
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span> </div>
|
|
<div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  <span class="keywordtype">float</span> <a class="code" href="a00131.html#ga282360c8bb80b80d3c7f5bc00766d873" title="Returns the length of x, i.e., sqrt(x * x).">length</a>(</div>
|
|
<div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  detail::fvec4SIMD <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00382"></a><span class="lineno"> 382</span> </div>
|
|
<div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  <span class="keywordtype">float</span> <a class="code" href="a00172.html#ga2e726cc8b9f02b7c09910858ea1afac6" title="Faster than the common length function but less accurate.">fastLength</a>(</div>
|
|
<div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  detail::fvec4SIMD <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00388"></a><span class="lineno"> 388</span> </div>
|
|
<div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  <span class="keywordtype">float</span> niceLength(</div>
|
|
<div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  detail::fvec4SIMD <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00394"></a><span class="lineno"> 394</span> </div>
|
|
<div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  detail::fvec4SIMD length4(</div>
|
|
<div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  detail::fvec4SIMD <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00399"></a><span class="lineno"> 399</span> </div>
|
|
<div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  detail::fvec4SIMD fastLength4(</div>
|
|
<div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  detail::fvec4SIMD <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00405"></a><span class="lineno"> 405</span> </div>
|
|
<div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  detail::fvec4SIMD niceLength4(</div>
|
|
<div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  detail::fvec4SIMD <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00411"></a><span class="lineno"> 411</span> </div>
|
|
<div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  <span class="keywordtype">float</span> <a class="code" href="a00131.html#ga3fac0e61144f60184d961dd156709dd3" title="Returns the distance betwwen p0 and p1, i.e., length(p0 - p1).">distance</a>(</div>
|
|
<div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  detail::fvec4SIMD <span class="keyword">const</span> & p0,</div>
|
|
<div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  detail::fvec4SIMD <span class="keyword">const</span> & p1);</div>
|
|
<div class="line"><a name="l00417"></a><span class="lineno"> 417</span> </div>
|
|
<div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  detail::fvec4SIMD distance4(</div>
|
|
<div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  detail::fvec4SIMD <span class="keyword">const</span> & p0,</div>
|
|
<div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  detail::fvec4SIMD <span class="keyword">const</span> & p1);</div>
|
|
<div class="line"><a name="l00423"></a><span class="lineno"> 423</span> </div>
|
|
<div class="line"><a name="l00426"></a><span class="lineno"> 426</span>  <span class="keywordtype">float</span> simdDot(</div>
|
|
<div class="line"><a name="l00427"></a><span class="lineno"> 427</span>  detail::fvec4SIMD <span class="keyword">const</span> & x,</div>
|
|
<div class="line"><a name="l00428"></a><span class="lineno"> 428</span>  detail::fvec4SIMD <span class="keyword">const</span> & y);</div>
|
|
<div class="line"><a name="l00429"></a><span class="lineno"> 429</span> </div>
|
|
<div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  detail::fvec4SIMD dot4(</div>
|
|
<div class="line"><a name="l00433"></a><span class="lineno"> 433</span>  detail::fvec4SIMD <span class="keyword">const</span> & x,</div>
|
|
<div class="line"><a name="l00434"></a><span class="lineno"> 434</span>  detail::fvec4SIMD <span class="keyword">const</span> & y);</div>
|
|
<div class="line"><a name="l00435"></a><span class="lineno"> 435</span> </div>
|
|
<div class="line"><a name="l00438"></a><span class="lineno"> 438</span>  detail::fvec4SIMD <a class="code" href="a00131.html#gaa127ddc9d38f715125f91742d399eb6f" title="Returns the cross product of x and y.">cross</a>(</div>
|
|
<div class="line"><a name="l00439"></a><span class="lineno"> 439</span>  detail::fvec4SIMD <span class="keyword">const</span> & x,</div>
|
|
<div class="line"><a name="l00440"></a><span class="lineno"> 440</span>  detail::fvec4SIMD <span class="keyword">const</span> & y);</div>
|
|
<div class="line"><a name="l00441"></a><span class="lineno"> 441</span> </div>
|
|
<div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  detail::fvec4SIMD <a class="code" href="a00131.html#ga68b931c228750eeba844c273c54ca43d" title="Returns a vector in the same direction as x but with length of 1.">normalize</a>(</div>
|
|
<div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  detail::fvec4SIMD <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00446"></a><span class="lineno"> 446</span> </div>
|
|
<div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  detail::fvec4SIMD <a class="code" href="a00172.html#ga2953e7426a420bb2b33affce7360ef40" title="Faster than the common normalize function but less accurate.">fastNormalize</a>(</div>
|
|
<div class="line"><a name="l00451"></a><span class="lineno"> 451</span>  detail::fvec4SIMD <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00452"></a><span class="lineno"> 452</span> </div>
|
|
<div class="line"><a name="l00455"></a><span class="lineno"> 455</span>  detail::fvec4SIMD simdFaceforward(</div>
|
|
<div class="line"><a name="l00456"></a><span class="lineno"> 456</span>  detail::fvec4SIMD <span class="keyword">const</span> & N,</div>
|
|
<div class="line"><a name="l00457"></a><span class="lineno"> 457</span>  detail::fvec4SIMD <span class="keyword">const</span> & I,</div>
|
|
<div class="line"><a name="l00458"></a><span class="lineno"> 458</span>  detail::fvec4SIMD <span class="keyword">const</span> & Nref);</div>
|
|
<div class="line"><a name="l00459"></a><span class="lineno"> 459</span> </div>
|
|
<div class="line"><a name="l00463"></a><span class="lineno"> 463</span>  detail::fvec4SIMD <a class="code" href="a00131.html#gabe1fa0bef5f854242eb70ce56e5a7d03" title="For the incident vector I and surface orientation N, returns the reflection direction : result = I - ...">reflect</a>(</div>
|
|
<div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  detail::fvec4SIMD <span class="keyword">const</span> & I,</div>
|
|
<div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  detail::fvec4SIMD <span class="keyword">const</span> & N);</div>
|
|
<div class="line"><a name="l00466"></a><span class="lineno"> 466</span> </div>
|
|
<div class="line"><a name="l00471"></a><span class="lineno"> 471</span>  detail::fvec4SIMD <a class="code" href="a00131.html#gabbb4909d3e99a7a2411cc63252afbbd8" title="For the incident vector I and surface normal N, and the ratio of indices of refraction eta...">refract</a>(</div>
|
|
<div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  detail::fvec4SIMD <span class="keyword">const</span> & I,</div>
|
|
<div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  detail::fvec4SIMD <span class="keyword">const</span> & N,</div>
|
|
<div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  <span class="keywordtype">float</span> <span class="keyword">const</span> & eta);</div>
|
|
<div class="line"><a name="l00475"></a><span class="lineno"> 475</span> </div>
|
|
<div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  detail::fvec4SIMD <a class="code" href="a00130.html#ga9b2fd4f39c29e3d55c4b4087ab873f9f" title="Returns the positive square root of x.">sqrt</a>(</div>
|
|
<div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  detail::fvec4SIMD <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00480"></a><span class="lineno"> 480</span> </div>
|
|
<div class="line"><a name="l00484"></a><span class="lineno"> 484</span>  detail::fvec4SIMD niceSqrt(</div>
|
|
<div class="line"><a name="l00485"></a><span class="lineno"> 485</span>  detail::fvec4SIMD <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00486"></a><span class="lineno"> 486</span> </div>
|
|
<div class="line"><a name="l00490"></a><span class="lineno"> 490</span>  detail::fvec4SIMD <a class="code" href="a00172.html#gad57c343d2362c1469043adedeb8ef8eb" title="Faster than the common sqrt function but less accurate.">fastSqrt</a>(</div>
|
|
<div class="line"><a name="l00491"></a><span class="lineno"> 491</span>  detail::fvec4SIMD <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00492"></a><span class="lineno"> 492</span> </div>
|
|
<div class="line"><a name="l00495"></a><span class="lineno"> 495</span>  detail::fvec4SIMD <a class="code" href="a00130.html#ga3fd19e045e3943b96e0cdad22fbda111" title="Returns the reciprocal of the positive square root of x.">inversesqrt</a>(</div>
|
|
<div class="line"><a name="l00496"></a><span class="lineno"> 496</span>  detail::fvec4SIMD <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00497"></a><span class="lineno"> 497</span> </div>
|
|
<div class="line"><a name="l00501"></a><span class="lineno"> 501</span>  detail::fvec4SIMD fastInversesqrt(</div>
|
|
<div class="line"><a name="l00502"></a><span class="lineno"> 502</span>  detail::fvec4SIMD <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00503"></a><span class="lineno"> 503</span> </div>
|
|
<div class="line"><a name="l00505"></a><span class="lineno"> 505</span> }<span class="comment">//namespace glm</span></div>
|
|
<div class="line"><a name="l00506"></a><span class="lineno"> 506</span> </div>
|
|
<div class="line"><a name="l00507"></a><span class="lineno"> 507</span> <span class="preprocessor">#include "simd_vec4.inl"</span></div>
|
|
<div class="line"><a name="l00508"></a><span class="lineno"> 508</span> </div>
|
|
<div class="line"><a name="l00509"></a><span class="lineno"> 509</span> </div>
|
|
<div class="line"><a name="l00510"></a><span class="lineno"> 510</span> <span class="preprocessor">#if (GLM_COMPILER & GLM_COMPILER_VC)</span></div>
|
|
<div class="line"><a name="l00511"></a><span class="lineno"> 511</span> <span class="preprocessor"></span><span class="preprocessor"># pragma warning(pop)</span></div>
|
|
<div class="line"><a name="l00512"></a><span class="lineno"> 512</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00513"></a><span class="lineno"> 513</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00514"></a><span class="lineno"> 514</span> </div>
|
|
<div class="line"><a name="l00515"></a><span class="lineno"> 515</span> <span class="preprocessor">#endif//(GLM_ARCH != GLM_ARCH_PURE)</span></div>
|
|
<div class="line"><a name="l00516"></a><span class="lineno"> 516</span> <span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00517"></a><span class="lineno"> 517</span> <span class="preprocessor">#endif//GLM_GTX_simd_vec4</span></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.2
|
|
</small></address>
|
|
</body>
|
|
</html>
|