-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvec__char__ppc_8h_source.html
103 lines (101 loc) · 94.8 KB
/
vec__char__ppc_8h_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!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"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>POWER Vector Library Manual: src/pveclib/vec_char_ppc.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>
<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 style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">POWER Vector Library Manual
 <span id="projectnumber">1.0.4</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</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">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_3653a864936a87c29f489ec2a5b8be1c.html">pveclib</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">vec_char_ppc.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="vec__char__ppc_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> Copyright (c) [2017, 2018] IBM Corporation.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"></span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> Licensed under the Apache License, Version 2.0 (the "License");</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> You may obtain a copy of the License at</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"></span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> distributed under the License is distributed on an "AS IS" BASIS,</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> limitations under the License.</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"></span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> vec_char_ppc.h</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> Contributors:</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> IBM Corporation, Steven Munroe</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> Created on: Jul 2, 2015</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> Steven Munroe, additional contributions for POWER9.</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> */</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> <span class="preprocessor">#ifndef VEC_CHAR_PPC_H_</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#define VEC_CHAR_PPC_H_</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> <span class="preprocessor">#include <<a class="code" href="vec__common__ppc_8h.html">pveclib/vec_common_ppc.h</a>></span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> <a class="code" href="vec__char__ppc_8h.html#a86c23ce0e18ad18d46d27f80c40f465e">vec_vmrgeb</a> (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vra, <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vrb);</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> <a class="code" href="vec__char__ppc_8h.html#a122434ec49f77cf6968e2cb9523e68d2">vec_vmrgob</a> (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vra, <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vrb);</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span> </div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a></div><div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="vec__char__ppc_8h.html#a3eca950eb052ce1b0ad7a8d20ce3f971"> 160</a></span> <a class="code" href="vec__char__ppc_8h.html#a3eca950eb052ce1b0ad7a8d20ce3f971">vec_absdub</a> (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vra, <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vrb)</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> {</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> result;</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="preprocessor">#ifdef _ARCH_PWR9</span></div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  __asm__(</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <span class="stringliteral">"vabsdub %0,%1,%2;"</span></div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  : <span class="stringliteral">"=v"</span> (result)</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  : <span class="stringliteral">"v"</span> (vra), <span class="stringliteral">"v"</span> (vrb)</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  : );</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> a, b;</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vmin, vmax;</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span> </div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  a = (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vra;</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  b = (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vrb;</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  vmin = vec_min (a, b);</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  vmax = vec_max (a, b);</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  result = vec_sub (vmax, vmin);</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="keywordflow">return</span> (result);</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> }</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span> </div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a></div><div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="vec__char__ppc_8h.html#a29190093e687e416c846b885eb2c10c6"> 207</a></span> <a class="code" href="vec__char__ppc_8h.html#a29190093e687e416c846b885eb2c10c6">vec_clzb</a> (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vra)</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span> {</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> r;</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="preprocessor">#ifdef _ARCH_PWR8</span></div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span> <span class="preprocessor">#if defined (vec_vclzb)</span></div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  r = vec_vclzb (vra);</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span> <span class="preprocessor">#elif defined (__clang__)</span></div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  r = vec_cntlz (vra);</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  __asm__(</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="stringliteral">"vclzb %0,%1;"</span></div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  : <span class="stringliteral">"=v"</span> (r)</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  : <span class="stringliteral">"v"</span> (vra)</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  : );</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span> <span class="comment">//#warning Implememention pre power8</span></div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  __vector <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> n, nt, y, x, s, m;</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  __vector <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> z= { 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0};</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  __vector <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> one = { 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1};</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span> </div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <span class="comment">/* n = 8 s = 4 */</span></div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  s = vec_splat_u8(4);</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  n = vec_splat_u8(8);</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  x = vra;</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span> </div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <span class="comment">/* y=x>>4 if (y!=0) (n=n-4 x=y) */</span></div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  y = vec_sr(x, s);</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  nt = vec_sub(n,s);</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  m = (__vector <span class="keywordtype">unsigned</span> char)vec_cmpgt(y, z);</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  s = vec_sr(s,one);</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  x = vec_sel (x , y, m);</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  n = vec_sel (n , nt, m);</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span> </div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <span class="comment">/* y=x>>2 if (y!=0) (n=n-2 x=y) */</span></div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  y = vec_sr(x, s);</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  nt = vec_sub(n,s);</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  m = (__vector <span class="keywordtype">unsigned</span> char)vec_cmpgt(y, z);</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  s = vec_sr(s,one);</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  x = vec_sel (x , y, m);</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  n = vec_sel (n , nt, m);</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span> </div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <span class="comment">/* y=x>>1 if (y!=0) return (n=n-2) */</span></div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  y = vec_sr(x, s);</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  nt = vec_sub(n,s);</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  nt = vec_sub(nt,s);</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  m = (__vector <span class="keywordtype">unsigned</span> char)vec_cmpgt(y, z);</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  n = vec_sel (n , nt, m);</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span> </div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <span class="comment">/* else return (x-n) */</span></div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  nt = vec_sub (n, x);</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  n = vec_sel (nt , n, m);</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  r = n;</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span> </div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  <span class="keywordflow">return</span> (r);</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span> }</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span> </div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a></div><div class="line"><a name="l00282"></a><span class="lineno"><a class="line" href="vec__char__ppc_8h.html#a04af2798abe4f5e568e8fd527bef3b02"> 282</a></span> <a class="code" href="vec__char__ppc_8h.html#a04af2798abe4f5e568e8fd527bef3b02">vec_isalnum</a> (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vec_str)</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span> {</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> result;</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  <span class="keyword">const</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> UC_FIRST =</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  { 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40,</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  0x40, 0x40, 0x40, 0x40 };</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  <span class="keyword">const</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> UC_LAST =</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  { 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a,</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  0x5a, 0x5a, 0x5a, 0x5a };</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <span class="keyword">const</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> LC_FIRST =</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  { 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60,</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  0x60, 0x60, 0x60, 0x60 };</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <span class="keyword">const</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> LC_LAST =</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  { 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a,</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  0x7a, 0x7a, 0x7a, 0x7a };</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  <span class="keyword">const</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> DG_FIRST =</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  { 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f,</div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  0x2f, 0x2f, 0x2f, 0x2f };</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  <span class="keyword">const</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> DG_LAST =</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  { 0x39, 0x39, 0x39, 0x39, 0x39, 0x39, 0x39, 0x39, 0x39, 0x39, 0x39, 0x5a,</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  0x39, 0x39, 0x39, 0x39 };</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span> </div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> cmp1, cmp2, cmp3, cmp4, cmp5, cmp6, cmask1, cmask2, cmask3;</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span> </div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  cmp1 = (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vec_cmpgt (vec_str, LC_FIRST);</div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  cmp2 = (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vec_cmpgt (vec_str, LC_LAST);</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span> </div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  cmp3 = (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vec_cmpgt (vec_str, UC_FIRST);</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  cmp4 = (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vec_cmpgt (vec_str, UC_LAST);</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span> </div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  cmp5 = (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vec_cmpgt (vec_str, DG_FIRST);</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  cmp6 = (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vec_cmpgt (vec_str, DG_LAST);</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span> </div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  cmask1 = vec_andc (cmp1, cmp2);</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  cmask2 = vec_andc (cmp3, cmp4);</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  cmask3 = vec_andc (cmp5, cmp6);</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span> </div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  result = vec_or (vec_or (cmask1, cmask2), cmask3);</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span> </div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  <span class="keywordflow">return</span> (result);</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span> }</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span> </div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a></div><div class="line"><a name="l00341"></a><span class="lineno"><a class="line" href="vec__char__ppc_8h.html#ab6ea0723c4ae1ce1b4137a25eae1a15e"> 341</a></span> <a class="code" href="vec__char__ppc_8h.html#ab6ea0723c4ae1ce1b4137a25eae1a15e">vec_isalpha</a> (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vec_str)</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span> {</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> result;</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  <span class="keyword">const</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> UC_FIRST =</div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  { 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40,</div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  0x40, 0x40, 0x40, 0x40 };</div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  <span class="keyword">const</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> UC_LAST =</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  { 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a,</div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  0x5a, 0x5a, 0x5a, 0x5a };</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  <span class="keyword">const</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> LC_FIRST =</div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  { 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60,</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  0x60, 0x60, 0x60, 0x60 };</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  <span class="keyword">const</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> LC_LAST =</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  { 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a,</div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  0x7a, 0x7a, 0x7a, 0x7a };</div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span> </div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> cmp1, cmp2, cmp3, cmp4, cmask1, cmask2;</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span> </div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  cmp1 = (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vec_cmpgt (vec_str, LC_FIRST);</div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  cmp2 = (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vec_cmpgt (vec_str, LC_LAST);</div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span> </div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  cmp3 = (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vec_cmpgt (vec_str, UC_FIRST);</div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  cmp4 = (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vec_cmpgt (vec_str, UC_LAST);</div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span> </div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  cmask1 = vec_andc (cmp1, cmp2);</div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  cmask2 = vec_andc (cmp3, cmp4);</div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span> </div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  result = vec_or (cmask1, cmask2);</div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span> </div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  <span class="keywordflow">return</span> (result);</div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span> }</div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span> </div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a></div><div class="line"><a name="l00390"></a><span class="lineno"><a class="line" href="vec__char__ppc_8h.html#a0152053aed21f65166488df7e6b6c2a9"> 390</a></span> <a class="code" href="vec__char__ppc_8h.html#a0152053aed21f65166488df7e6b6c2a9">vec_isdigit</a> (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vec_str)</div><div class="line"><a name="l00391"></a><span class="lineno"> 391</span> {</div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> result;</div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  <span class="keyword">const</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> DG_FIRST =</div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  { 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f, 0x2f,</div><div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  0x2f, 0x2f, 0x2f, 0x2f };</div><div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  <span class="keyword">const</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> DG_LAST =</div><div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  { 0x39, 0x39, 0x39, 0x39, 0x39, 0x39, 0x39, 0x39, 0x39, 0x39, 0x39, 0x5a,</div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  0x39, 0x39, 0x39, 0x39 };</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span> </div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> cmp1, cmp2;</div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span> </div><div class="line"><a name="l00402"></a><span class="lineno"> 402</span>  cmp1 = (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vec_cmpgt (vec_str, DG_FIRST);</div><div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  cmp2 = (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vec_cmpgt (vec_str, DG_LAST);</div><div class="line"><a name="l00404"></a><span class="lineno"> 404</span> </div><div class="line"><a name="l00405"></a><span class="lineno"> 405</span>  result = vec_andc (cmp1, cmp2);</div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span> </div><div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  <span class="keywordflow">return</span> (result);</div><div class="line"><a name="l00408"></a><span class="lineno"> 408</span> }</div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span> </div><div class="line"><a name="l00430"></a><span class="lineno"> 430</span> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a></div><div class="line"><a name="l00431"></a><span class="lineno"><a class="line" href="vec__char__ppc_8h.html#ab2ec8f3ed5b75f1e1b21998484d878e8"> 431</a></span> <a class="code" href="vec__char__ppc_8h.html#ab2ec8f3ed5b75f1e1b21998484d878e8">vec_mrgahb</a> (<a class="code" href="vec__common__ppc_8h.html#afb47075b07673afbf78f8c60298f3712">vui16_t</a> vra, <a class="code" href="vec__common__ppc_8h.html#afb47075b07673afbf78f8c60298f3712">vui16_t</a> vrb)</div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span> {</div><div class="line"><a name="l00433"></a><span class="lineno"> 433</span>  <span class="keywordflow">return</span> <a class="code" href="vec__char__ppc_8h.html#a86c23ce0e18ad18d46d27f80c40f465e">vec_vmrgeb</a> ((<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vra, (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vrb);</div><div class="line"><a name="l00434"></a><span class="lineno"> 434</span> }</div><div class="line"><a name="l00435"></a><span class="lineno"> 435</span> </div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a></div><div class="line"><a name="l00457"></a><span class="lineno"><a class="line" href="vec__char__ppc_8h.html#af07f90ac64ed898a5add48932b8ac010"> 457</a></span> <a class="code" href="vec__char__ppc_8h.html#af07f90ac64ed898a5add48932b8ac010">vec_mrgalb</a> (<a class="code" href="vec__common__ppc_8h.html#afb47075b07673afbf78f8c60298f3712">vui16_t</a> vra, <a class="code" href="vec__common__ppc_8h.html#afb47075b07673afbf78f8c60298f3712">vui16_t</a> vrb)</div><div class="line"><a name="l00458"></a><span class="lineno"> 458</span> {</div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span>  <span class="keywordflow">return</span> <a class="code" href="vec__char__ppc_8h.html#a122434ec49f77cf6968e2cb9523e68d2">vec_vmrgob</a> ((<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vra, (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vrb);</div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span> }</div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span> </div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a></div><div class="line"><a name="l00481"></a><span class="lineno"><a class="line" href="vec__char__ppc_8h.html#ab8a776401631aedafdaf371e268fcfe7"> 481</a></span> <a class="code" href="vec__char__ppc_8h.html#ab8a776401631aedafdaf371e268fcfe7">vec_mrgeb</a> (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vra, <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vrb)</div><div class="line"><a name="l00482"></a><span class="lineno"> 482</span> {</div><div class="line"><a name="l00483"></a><span class="lineno"> 483</span> <span class="preprocessor">#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__</span></div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span>  <span class="keywordflow">return</span> <a class="code" href="vec__char__ppc_8h.html#a122434ec49f77cf6968e2cb9523e68d2">vec_vmrgob</a> ((<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vrb, (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vra);</div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00486"></a><span class="lineno"> 486</span>  <span class="keywordflow">return</span> <a class="code" href="vec__char__ppc_8h.html#a86c23ce0e18ad18d46d27f80c40f465e">vec_vmrgeb</a> ((<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vra, (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vrb);</div><div class="line"><a name="l00487"></a><span class="lineno"> 487</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00488"></a><span class="lineno"> 488</span> }</div><div class="line"><a name="l00489"></a><span class="lineno"> 489</span> </div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a></div><div class="line"><a name="l00509"></a><span class="lineno"><a class="line" href="vec__char__ppc_8h.html#a562bddfc070386aabced80167b4571af"> 509</a></span> <a class="code" href="vec__char__ppc_8h.html#a562bddfc070386aabced80167b4571af">vec_mrgob</a> (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vra, <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vrb)</div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span> {</div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span> <span class="preprocessor">#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__</span></div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  <span class="keywordflow">return</span> <a class="code" href="vec__char__ppc_8h.html#a86c23ce0e18ad18d46d27f80c40f465e">vec_vmrgeb</a> ((<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vrb, (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vra);</div><div class="line"><a name="l00513"></a><span class="lineno"> 513</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00514"></a><span class="lineno"> 514</span>  <span class="keywordflow">return</span> <a class="code" href="vec__char__ppc_8h.html#a122434ec49f77cf6968e2cb9523e68d2">vec_vmrgob</a> ((<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vra, (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vrb);</div><div class="line"><a name="l00515"></a><span class="lineno"> 515</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00516"></a><span class="lineno"> 516</span> }</div><div class="line"><a name="l00517"></a><span class="lineno"> 517</span> </div><div class="line"><a name="l00534"></a><span class="lineno"> 534</span> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="vec__common__ppc_8h.html#a748bbf6563e6ab1ddcb694c86e2aaef4">vi8_t</a></div><div class="line"><a name="l00535"></a><span class="lineno"><a class="line" href="vec__char__ppc_8h.html#a5b81ae683c42ead33d58b422ee8f85cb"> 535</a></span> <a class="code" href="vec__char__ppc_8h.html#a5b81ae683c42ead33d58b422ee8f85cb">vec_mulhsb</a> (<a class="code" href="vec__common__ppc_8h.html#a748bbf6563e6ab1ddcb694c86e2aaef4">vi8_t</a> vra, <a class="code" href="vec__common__ppc_8h.html#a748bbf6563e6ab1ddcb694c86e2aaef4">vi8_t</a> vrb)</div><div class="line"><a name="l00536"></a><span class="lineno"> 536</span> {</div><div class="line"><a name="l00537"></a><span class="lineno"> 537</span> <span class="preprocessor">#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__</span></div><div class="line"><a name="l00538"></a><span class="lineno"> 538</span>  <span class="keywordflow">return</span> (<a class="code" href="vec__common__ppc_8h.html#a748bbf6563e6ab1ddcb694c86e2aaef4">vi8_t</a>) <a class="code" href="vec__char__ppc_8h.html#ab2ec8f3ed5b75f1e1b21998484d878e8">vec_mrgahb</a> ((<a class="code" href="vec__common__ppc_8h.html#afb47075b07673afbf78f8c60298f3712">vui16_t</a>)vec_mulo (vra, vrb),</div><div class="line"><a name="l00539"></a><span class="lineno"> 539</span>  (<a class="code" href="vec__common__ppc_8h.html#afb47075b07673afbf78f8c60298f3712">vui16_t</a>)vec_mule (vra, vrb));</div><div class="line"><a name="l00540"></a><span class="lineno"> 540</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00541"></a><span class="lineno"> 541</span>  <span class="keywordflow">return</span> (<a class="code" href="vec__common__ppc_8h.html#a748bbf6563e6ab1ddcb694c86e2aaef4">vi8_t</a>) <a class="code" href="vec__char__ppc_8h.html#ab2ec8f3ed5b75f1e1b21998484d878e8">vec_mrgahb</a> ((<a class="code" href="vec__common__ppc_8h.html#afb47075b07673afbf78f8c60298f3712">vui16_t</a>)vec_mule (vra, vrb),</div><div class="line"><a name="l00542"></a><span class="lineno"> 542</span>  (<a class="code" href="vec__common__ppc_8h.html#afb47075b07673afbf78f8c60298f3712">vui16_t</a>)vec_mulo (vra, vrb));</div><div class="line"><a name="l00543"></a><span class="lineno"> 543</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00544"></a><span class="lineno"> 544</span> }</div><div class="line"><a name="l00545"></a><span class="lineno"> 545</span> </div><div class="line"><a name="l00562"></a><span class="lineno"> 562</span> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a></div><div class="line"><a name="l00563"></a><span class="lineno"><a class="line" href="vec__char__ppc_8h.html#a81a67dcc2623020b065eb244bc54511c"> 563</a></span> <a class="code" href="vec__char__ppc_8h.html#a81a67dcc2623020b065eb244bc54511c">vec_mulhub</a> (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vra, <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vrb)</div><div class="line"><a name="l00564"></a><span class="lineno"> 564</span> {</div><div class="line"><a name="l00565"></a><span class="lineno"> 565</span> <span class="preprocessor">#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__</span></div><div class="line"><a name="l00566"></a><span class="lineno"> 566</span>  <span class="keywordflow">return</span> <a class="code" href="vec__char__ppc_8h.html#ab2ec8f3ed5b75f1e1b21998484d878e8">vec_mrgahb</a> (vec_mulo (vra, vrb), vec_mule (vra, vrb));</div><div class="line"><a name="l00567"></a><span class="lineno"> 567</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00568"></a><span class="lineno"> 568</span>  <span class="keywordflow">return</span> <a class="code" href="vec__char__ppc_8h.html#ab2ec8f3ed5b75f1e1b21998484d878e8">vec_mrgahb</a> (vec_mule (vra, vrb), vec_mulo (vra, vrb));</div><div class="line"><a name="l00569"></a><span class="lineno"> 569</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00570"></a><span class="lineno"> 570</span> }</div><div class="line"><a name="l00571"></a><span class="lineno"> 571</span> </div><div class="line"><a name="l00591"></a><span class="lineno"> 591</span> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a></div><div class="line"><a name="l00592"></a><span class="lineno"><a class="line" href="vec__char__ppc_8h.html#a425151e5a82ee9e204ffd81b1ec7a92c"> 592</a></span> <a class="code" href="vec__char__ppc_8h.html#a425151e5a82ee9e204ffd81b1ec7a92c">vec_mulubm</a> (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vra, <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vrb)</div><div class="line"><a name="l00593"></a><span class="lineno"> 593</span> {</div><div class="line"><a name="l00594"></a><span class="lineno"> 594</span> <span class="preprocessor">#if __GNUC__ >= 7</span></div><div class="line"><a name="l00595"></a><span class="lineno"> 595</span> <span class="comment">/* Generic vec_mul not supported for vector char until GCC 7. */</span></div><div class="line"><a name="l00596"></a><span class="lineno"> 596</span>  <span class="keywordflow">return</span> vec_mul (vra, vrb);</div><div class="line"><a name="l00597"></a><span class="lineno"> 597</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00598"></a><span class="lineno"> 598</span> <span class="preprocessor">#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__</span></div><div class="line"><a name="l00599"></a><span class="lineno"> 599</span>  <span class="keywordflow">return</span> <a class="code" href="vec__char__ppc_8h.html#af07f90ac64ed898a5add48932b8ac010">vec_mrgalb</a> (vec_mulo (vra, vrb), vec_mule (vra, vrb));</div><div class="line"><a name="l00600"></a><span class="lineno"> 600</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00601"></a><span class="lineno"> 601</span>  <span class="keywordflow">return</span> <a class="code" href="vec__char__ppc_8h.html#af07f90ac64ed898a5add48932b8ac010">vec_mrgalb</a> (vec_mule (vra, vrb), vec_mulo (vra, vrb));</div><div class="line"><a name="l00602"></a><span class="lineno"> 602</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00603"></a><span class="lineno"> 603</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00604"></a><span class="lineno"> 604</span> }</div><div class="line"><a name="l00605"></a><span class="lineno"> 605</span> </div><div class="line"><a name="l00629"></a><span class="lineno"> 629</span> <span class="preprocessor">#ifndef vec_popcntb</span></div><div class="line"><a name="l00630"></a><span class="lineno"> 630</span> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a></div><div class="line"><a name="l00631"></a><span class="lineno"><a class="line" href="vec__char__ppc_8h.html#ae0c33360f34cc31ca2e381bf2e7c9ce6"> 631</a></span> <a class="code" href="vec__char__ppc_8h.html#ae0c33360f34cc31ca2e381bf2e7c9ce6">vec_popcntb</a> (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vra)</div><div class="line"><a name="l00632"></a><span class="lineno"> 632</span> {</div><div class="line"><a name="l00633"></a><span class="lineno"> 633</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> r;</div><div class="line"><a name="l00634"></a><span class="lineno"> 634</span> <span class="preprocessor">#ifdef _ARCH_PWR8</span></div><div class="line"><a name="l00635"></a><span class="lineno"> 635</span> <span class="preprocessor">#if defined (vec_vpopcntb)</span></div><div class="line"><a name="l00636"></a><span class="lineno"> 636</span>  r = vec_vpopcntb (vra);</div><div class="line"><a name="l00637"></a><span class="lineno"> 637</span> <span class="preprocessor">#elif defined (__clang__)</span></div><div class="line"><a name="l00638"></a><span class="lineno"> 638</span>  r = vec_popcnt (vra);</div><div class="line"><a name="l00639"></a><span class="lineno"> 639</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00640"></a><span class="lineno"> 640</span>  __asm__(</div><div class="line"><a name="l00641"></a><span class="lineno"> 641</span>  <span class="stringliteral">"vpopcntb %0,%1;"</span></div><div class="line"><a name="l00642"></a><span class="lineno"> 642</span>  : <span class="stringliteral">"=v"</span> (r)</div><div class="line"><a name="l00643"></a><span class="lineno"> 643</span>  : <span class="stringliteral">"v"</span> (vra)</div><div class="line"><a name="l00644"></a><span class="lineno"> 644</span>  : );</div><div class="line"><a name="l00645"></a><span class="lineno"> 645</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00646"></a><span class="lineno"> 646</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00647"></a><span class="lineno"> 647</span> <span class="comment">//#warning Implememention pre power8</span></div><div class="line"><a name="l00648"></a><span class="lineno"> 648</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> n, x1, x2, x, s;</div><div class="line"><a name="l00649"></a><span class="lineno"> 649</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> ones = { 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1};</div><div class="line"><a name="l00650"></a><span class="lineno"> 650</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> fives =</div><div class="line"><a name="l00651"></a><span class="lineno"> 651</span>  {0x55,0x55,0x55,0x55, 0x55,0x55,0x55,0x55,</div><div class="line"><a name="l00652"></a><span class="lineno"> 652</span>  0x55,0x55,0x55,0x55, 0x55,0x55,0x55,0x55};</div><div class="line"><a name="l00653"></a><span class="lineno"> 653</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> threes =</div><div class="line"><a name="l00654"></a><span class="lineno"> 654</span>  {0x33,0x33,0x33,0x33, 0x33,0x33,0x33,0x33,</div><div class="line"><a name="l00655"></a><span class="lineno"> 655</span>  0x33,0x33,0x33,0x33, 0x33,0x33,0x33,0x33};</div><div class="line"><a name="l00656"></a><span class="lineno"> 656</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> fs =</div><div class="line"><a name="l00657"></a><span class="lineno"> 657</span>  {0x0f,0x0f,0x0f,0x0f, 0x0f,0x0f,0x0f,0x0f,</div><div class="line"><a name="l00658"></a><span class="lineno"> 658</span>  0x0f,0x0f,0x0f,0x0f, 0x0f,0x0f,0x0f,0x0f};</div><div class="line"><a name="l00659"></a><span class="lineno"> 659</span>  <span class="comment">/* n = 8 s = 4 */</span></div><div class="line"><a name="l00660"></a><span class="lineno"> 660</span>  s = ones;</div><div class="line"><a name="l00661"></a><span class="lineno"> 661</span>  x = vra;</div><div class="line"><a name="l00662"></a><span class="lineno"> 662</span>  <span class="comment">/* x = x - ((x >> 1) & 0x55) */</span></div><div class="line"><a name="l00663"></a><span class="lineno"> 663</span>  x2 = vec_and (vec_sr (x, s), fives);</div><div class="line"><a name="l00664"></a><span class="lineno"> 664</span>  n = vec_sub (x, x2);</div><div class="line"><a name="l00665"></a><span class="lineno"> 665</span>  s = vec_add (s, s);</div><div class="line"><a name="l00666"></a><span class="lineno"> 666</span>  <span class="comment">/* x = (x & 0x33) + ((x & 0xcc) >> 2) */</span></div><div class="line"><a name="l00667"></a><span class="lineno"> 667</span>  x1 = vec_and (n, threes);</div><div class="line"><a name="l00668"></a><span class="lineno"> 668</span>  x2 = vec_andc (n, threes);</div><div class="line"><a name="l00669"></a><span class="lineno"> 669</span>  n = vec_add (x1, vec_sr (x2, s));</div><div class="line"><a name="l00670"></a><span class="lineno"> 670</span>  s = vec_add (s, s);</div><div class="line"><a name="l00671"></a><span class="lineno"> 671</span>  <span class="comment">/* x = (x + (x >> 4)) & 0x0f) */</span></div><div class="line"><a name="l00672"></a><span class="lineno"> 672</span>  x1 = vec_add (n, vec_sr (n, s));</div><div class="line"><a name="l00673"></a><span class="lineno"> 673</span>  n = vec_and (x1, fs);</div><div class="line"><a name="l00674"></a><span class="lineno"> 674</span>  r = n;</div><div class="line"><a name="l00675"></a><span class="lineno"> 675</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00676"></a><span class="lineno"> 676</span>  <span class="keywordflow">return</span> (r);</div><div class="line"><a name="l00677"></a><span class="lineno"> 677</span> }</div><div class="line"><a name="l00678"></a><span class="lineno"> 678</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00679"></a><span class="lineno"> 679</span> <span class="comment">/* Work around for GCC PR85830. */</span></div><div class="line"><a name="l00680"></a><span class="lineno"> 680</span> <span class="preprocessor">#undef vec_popcntb</span></div><div class="line"><a name="l00681"></a><span class="lineno"> 681</span> <span class="preprocessor">#define vec_popcntb __builtin_vec_vpopcntb</span></div><div class="line"><a name="l00682"></a><span class="lineno"> 682</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00683"></a><span class="lineno"> 683</span> </div><div class="line"><a name="l00701"></a><span class="lineno"> 701</span> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a></div><div class="line"><a name="l00702"></a><span class="lineno"><a class="line" href="vec__char__ppc_8h.html#a095741b255775d4ccf6228a5655599a2"> 702</a></span> <a class="code" href="vec__char__ppc_8h.html#a095741b255775d4ccf6228a5655599a2">vec_slbi</a> (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vra, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shb)</div><div class="line"><a name="l00703"></a><span class="lineno"> 703</span> {</div><div class="line"><a name="l00704"></a><span class="lineno"> 704</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> lshift;</div><div class="line"><a name="l00705"></a><span class="lineno"> 705</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> result;</div><div class="line"><a name="l00706"></a><span class="lineno"> 706</span> </div><div class="line"><a name="l00707"></a><span class="lineno"> 707</span>  <span class="keywordflow">if</span> (shb < 8)</div><div class="line"><a name="l00708"></a><span class="lineno"> 708</span>  {</div><div class="line"><a name="l00709"></a><span class="lineno"> 709</span>  <span class="comment">/* Load the shift const in a vector. The element shifts require</span></div><div class="line"><a name="l00710"></a><span class="lineno"> 710</span> <span class="comment"> a shift amount for each element. For the immediate form the</span></div><div class="line"><a name="l00711"></a><span class="lineno"> 711</span> <span class="comment"> shift constant is splatted to all elements of the</span></div><div class="line"><a name="l00712"></a><span class="lineno"> 712</span> <span class="comment"> shift control. */</span></div><div class="line"><a name="l00713"></a><span class="lineno"> 713</span>  <span class="keywordflow">if</span> (__builtin_constant_p(shb))</div><div class="line"><a name="l00714"></a><span class="lineno"> 714</span>  lshift = (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vec_splat_s8(shb);</div><div class="line"><a name="l00715"></a><span class="lineno"> 715</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00716"></a><span class="lineno"> 716</span>  lshift = vec_splats ((<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>) shb);</div><div class="line"><a name="l00717"></a><span class="lineno"> 717</span> </div><div class="line"><a name="l00718"></a><span class="lineno"> 718</span>  <span class="comment">/* Vector Shift right bytes based on the lower 3-bits of</span></div><div class="line"><a name="l00719"></a><span class="lineno"> 719</span> <span class="comment"> corresponding element of lshift. */</span></div><div class="line"><a name="l00720"></a><span class="lineno"> 720</span>  result = vec_vslb (vra, lshift);</div><div class="line"><a name="l00721"></a><span class="lineno"> 721</span>  }</div><div class="line"><a name="l00722"></a><span class="lineno"> 722</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00723"></a><span class="lineno"> 723</span>  { <span class="comment">/* shifts greater then 7 bits return zeros. */</span></div><div class="line"><a name="l00724"></a><span class="lineno"> 724</span>  result = vec_xor ((<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vra, (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vra);</div><div class="line"><a name="l00725"></a><span class="lineno"> 725</span>  }</div><div class="line"><a name="l00726"></a><span class="lineno"> 726</span> </div><div class="line"><a name="l00727"></a><span class="lineno"> 727</span>  <span class="keywordflow">return</span> (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) result;</div><div class="line"><a name="l00728"></a><span class="lineno"> 728</span> }</div><div class="line"><a name="l00729"></a><span class="lineno"> 729</span> </div><div class="line"><a name="l00748"></a><span class="lineno"> 748</span> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="vec__common__ppc_8h.html#a748bbf6563e6ab1ddcb694c86e2aaef4">vi8_t</a></div><div class="line"><a name="l00749"></a><span class="lineno"><a class="line" href="vec__char__ppc_8h.html#a253a59f286f91817dfac89459ccbeac6"> 749</a></span> <a class="code" href="vec__char__ppc_8h.html#a253a59f286f91817dfac89459ccbeac6">vec_srabi</a> (<a class="code" href="vec__common__ppc_8h.html#a748bbf6563e6ab1ddcb694c86e2aaef4">vi8_t</a> vra, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shb)</div><div class="line"><a name="l00750"></a><span class="lineno"> 750</span> {</div><div class="line"><a name="l00751"></a><span class="lineno"> 751</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> lshift;</div><div class="line"><a name="l00752"></a><span class="lineno"> 752</span>  <a class="code" href="vec__common__ppc_8h.html#a748bbf6563e6ab1ddcb694c86e2aaef4">vi8_t</a> result;</div><div class="line"><a name="l00753"></a><span class="lineno"> 753</span> </div><div class="line"><a name="l00754"></a><span class="lineno"> 754</span>  <span class="keywordflow">if</span> (shb < 8)</div><div class="line"><a name="l00755"></a><span class="lineno"> 755</span>  {</div><div class="line"><a name="l00756"></a><span class="lineno"> 756</span>  <span class="comment">/* Load the shift const in a vector. The element shifts require</span></div><div class="line"><a name="l00757"></a><span class="lineno"> 757</span> <span class="comment"> a shift amount for each element. For the immediate form the</span></div><div class="line"><a name="l00758"></a><span class="lineno"> 758</span> <span class="comment"> shift constant is splatted to all elements of the</span></div><div class="line"><a name="l00759"></a><span class="lineno"> 759</span> <span class="comment"> shift control. */</span></div><div class="line"><a name="l00760"></a><span class="lineno"> 760</span>  <span class="keywordflow">if</span> (__builtin_constant_p(shb))</div><div class="line"><a name="l00761"></a><span class="lineno"> 761</span>  lshift = (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vec_splat_s8(shb);</div><div class="line"><a name="l00762"></a><span class="lineno"> 762</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00763"></a><span class="lineno"> 763</span>  lshift = vec_splats ((<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>) shb);</div><div class="line"><a name="l00764"></a><span class="lineno"> 764</span> </div><div class="line"><a name="l00765"></a><span class="lineno"> 765</span>  <span class="comment">/* Vector Shift Right Algebraic Bytes based on the lower 3-bits</span></div><div class="line"><a name="l00766"></a><span class="lineno"> 766</span> <span class="comment"> of corresponding element of lshift. */</span></div><div class="line"><a name="l00767"></a><span class="lineno"> 767</span>  result = vec_vsrab (vra, lshift);</div><div class="line"><a name="l00768"></a><span class="lineno"> 768</span>  }</div><div class="line"><a name="l00769"></a><span class="lineno"> 769</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00770"></a><span class="lineno"> 770</span>  { <span class="comment">/* shifts greater then 7 bits returns the sign bit propagated to</span></div><div class="line"><a name="l00771"></a><span class="lineno"> 771</span> <span class="comment"> all bits. This is equivalent to shift Right Algebraic of</span></div><div class="line"><a name="l00772"></a><span class="lineno"> 772</span> <span class="comment"> 7 bits. */</span></div><div class="line"><a name="l00773"></a><span class="lineno"> 773</span>  lshift = (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vec_splat_s8(7);</div><div class="line"><a name="l00774"></a><span class="lineno"> 774</span>  result = vec_vsrab (vra, lshift);</div><div class="line"><a name="l00775"></a><span class="lineno"> 775</span>  }</div><div class="line"><a name="l00776"></a><span class="lineno"> 776</span> </div><div class="line"><a name="l00777"></a><span class="lineno"> 777</span>  <span class="keywordflow">return</span> (<a class="code" href="vec__common__ppc_8h.html#a748bbf6563e6ab1ddcb694c86e2aaef4">vi8_t</a>) result;</div><div class="line"><a name="l00778"></a><span class="lineno"> 778</span> }</div><div class="line"><a name="l00779"></a><span class="lineno"> 779</span> </div><div class="line"><a name="l00797"></a><span class="lineno"> 797</span> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a></div><div class="line"><a name="l00798"></a><span class="lineno"><a class="line" href="vec__char__ppc_8h.html#a495109a7d46f4a97b56f22bb315ac567"> 798</a></span> <a class="code" href="vec__char__ppc_8h.html#a495109a7d46f4a97b56f22bb315ac567">vec_srbi</a> (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vra, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> shb)</div><div class="line"><a name="l00799"></a><span class="lineno"> 799</span> {</div><div class="line"><a name="l00800"></a><span class="lineno"> 800</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> lshift;</div><div class="line"><a name="l00801"></a><span class="lineno"> 801</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> result;</div><div class="line"><a name="l00802"></a><span class="lineno"> 802</span> </div><div class="line"><a name="l00803"></a><span class="lineno"> 803</span>  <span class="keywordflow">if</span> (shb < 8)</div><div class="line"><a name="l00804"></a><span class="lineno"> 804</span>  {</div><div class="line"><a name="l00805"></a><span class="lineno"> 805</span>  <span class="comment">/* Load the shift const in a vector. The element shifts require</span></div><div class="line"><a name="l00806"></a><span class="lineno"> 806</span> <span class="comment"> a shift amount for each element. For the immediate form the</span></div><div class="line"><a name="l00807"></a><span class="lineno"> 807</span> <span class="comment"> shift constant is splatted to all elements of the</span></div><div class="line"><a name="l00808"></a><span class="lineno"> 808</span> <span class="comment"> shift control. */</span></div><div class="line"><a name="l00809"></a><span class="lineno"> 809</span>  <span class="keywordflow">if</span> (__builtin_constant_p(shb))</div><div class="line"><a name="l00810"></a><span class="lineno"> 810</span>  lshift = (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vec_splat_s8(shb);</div><div class="line"><a name="l00811"></a><span class="lineno"> 811</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00812"></a><span class="lineno"> 812</span>  lshift = vec_splats ((<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>) shb);</div><div class="line"><a name="l00813"></a><span class="lineno"> 813</span> </div><div class="line"><a name="l00814"></a><span class="lineno"> 814</span>  <span class="comment">/* Vector Shift right bytes based on the lower 3-bits of</span></div><div class="line"><a name="l00815"></a><span class="lineno"> 815</span> <span class="comment"> corresponding element of lshift. */</span></div><div class="line"><a name="l00816"></a><span class="lineno"> 816</span>  result = vec_vsrb (vra, lshift);</div><div class="line"><a name="l00817"></a><span class="lineno"> 817</span>  }</div><div class="line"><a name="l00818"></a><span class="lineno"> 818</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00819"></a><span class="lineno"> 819</span>  { <span class="comment">/* shifts greater then 7 bits return zeros. */</span></div><div class="line"><a name="l00820"></a><span class="lineno"> 820</span>  result = vec_xor ((<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vra, (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vra);</div><div class="line"><a name="l00821"></a><span class="lineno"> 821</span>  }</div><div class="line"><a name="l00822"></a><span class="lineno"> 822</span> </div><div class="line"><a name="l00823"></a><span class="lineno"> 823</span>  <span class="keywordflow">return</span> (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) result;</div><div class="line"><a name="l00824"></a><span class="lineno"> 824</span> }</div><div class="line"><a name="l00825"></a><span class="lineno"> 825</span> </div><div class="line"><a name="l00845"></a><span class="lineno"> 845</span> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a></div><div class="line"><a name="l00846"></a><span class="lineno"><a class="line" href="vec__char__ppc_8h.html#a949a5b375e69a85e76a06e68831cb59a"> 846</a></span> <a class="code" href="vec__char__ppc_8h.html#a949a5b375e69a85e76a06e68831cb59a">vec_shift_leftdo</a> (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vrw, <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vrx, <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vrb)</div><div class="line"><a name="l00847"></a><span class="lineno"> 847</span> {</div><div class="line"><a name="l00848"></a><span class="lineno"> 848</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> result, vt1, vt2, vt3;</div><div class="line"><a name="l00849"></a><span class="lineno"> 849</span>  <span class="keyword">const</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vzero = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};</div><div class="line"><a name="l00850"></a><span class="lineno"> 850</span> </div><div class="line"><a name="l00851"></a><span class="lineno"> 851</span>  vt1 = vec_slo (vrw, vrb);</div><div class="line"><a name="l00852"></a><span class="lineno"> 852</span>  vt3 = vec_sub (vzero, vrb);</div><div class="line"><a name="l00853"></a><span class="lineno"> 853</span>  vt2 = vec_sro (vrx, vt3);</div><div class="line"><a name="l00854"></a><span class="lineno"> 854</span>  result = vec_or (vt1, vt2);</div><div class="line"><a name="l00855"></a><span class="lineno"> 855</span> </div><div class="line"><a name="l00856"></a><span class="lineno"> 856</span>  <span class="keywordflow">return</span> (result);</div><div class="line"><a name="l00857"></a><span class="lineno"> 857</span> }</div><div class="line"><a name="l00858"></a><span class="lineno"> 858</span> </div><div class="line"><a name="l00873"></a><span class="lineno"> 873</span> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a></div><div class="line"><a name="l00874"></a><span class="lineno"><a class="line" href="vec__char__ppc_8h.html#a86d585f1bb4fc5efab4df98594cdb46c"> 874</a></span> <a class="code" href="vec__char__ppc_8h.html#a86d585f1bb4fc5efab4df98594cdb46c">vec_toupper</a> (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vec_str)</div><div class="line"><a name="l00875"></a><span class="lineno"> 875</span> {</div><div class="line"><a name="l00876"></a><span class="lineno"> 876</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> result;</div><div class="line"><a name="l00877"></a><span class="lineno"> 877</span>  <span class="keyword">const</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> UC_MASK =</div><div class="line"><a name="l00878"></a><span class="lineno"> 878</span>  { 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,</div><div class="line"><a name="l00879"></a><span class="lineno"> 879</span>  0x20, 0x20, 0x20, 0x20 };</div><div class="line"><a name="l00880"></a><span class="lineno"> 880</span>  <span class="keyword">const</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> LC_FIRST =</div><div class="line"><a name="l00881"></a><span class="lineno"> 881</span>  { 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60,</div><div class="line"><a name="l00882"></a><span class="lineno"> 882</span>  0x60, 0x60, 0x60, 0x60 };</div><div class="line"><a name="l00883"></a><span class="lineno"> 883</span>  <span class="keyword">const</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> LC_LAST =</div><div class="line"><a name="l00884"></a><span class="lineno"> 884</span>  { 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a, 0x7a,</div><div class="line"><a name="l00885"></a><span class="lineno"> 885</span>  0x7a, 0x7a, 0x7a, 0x7a };</div><div class="line"><a name="l00886"></a><span class="lineno"> 886</span> </div><div class="line"><a name="l00887"></a><span class="lineno"> 887</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> cmp1, cmp2, cmask;</div><div class="line"><a name="l00888"></a><span class="lineno"> 888</span> </div><div class="line"><a name="l00889"></a><span class="lineno"> 889</span>  cmp1 = (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vec_cmpgt (vec_str, LC_FIRST);</div><div class="line"><a name="l00890"></a><span class="lineno"> 890</span>  cmp2 = (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vec_cmpgt (vec_str, LC_LAST);</div><div class="line"><a name="l00891"></a><span class="lineno"> 891</span> </div><div class="line"><a name="l00892"></a><span class="lineno"> 892</span>  cmask = vec_andc (cmp1, cmp2);</div><div class="line"><a name="l00893"></a><span class="lineno"> 893</span>  cmask = vec_and (cmask, UC_MASK);</div><div class="line"><a name="l00894"></a><span class="lineno"> 894</span> </div><div class="line"><a name="l00895"></a><span class="lineno"> 895</span>  result = vec_andc (vec_str, cmask);</div><div class="line"><a name="l00896"></a><span class="lineno"> 896</span> </div><div class="line"><a name="l00897"></a><span class="lineno"> 897</span>  <span class="keywordflow">return</span> (result);</div><div class="line"><a name="l00898"></a><span class="lineno"> 898</span> }</div><div class="line"><a name="l00899"></a><span class="lineno"> 899</span> </div><div class="line"><a name="l00914"></a><span class="lineno"> 914</span> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a></div><div class="line"><a name="l00915"></a><span class="lineno"><a class="line" href="vec__char__ppc_8h.html#a73501120e1af14864b7621e318645426"> 915</a></span> <a class="code" href="vec__char__ppc_8h.html#a73501120e1af14864b7621e318645426">vec_tolower</a> (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vec_str)</div><div class="line"><a name="l00916"></a><span class="lineno"> 916</span> {</div><div class="line"><a name="l00917"></a><span class="lineno"> 917</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> result;</div><div class="line"><a name="l00918"></a><span class="lineno"> 918</span>  <span class="keyword">const</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> UC_MASK =</div><div class="line"><a name="l00919"></a><span class="lineno"> 919</span>  { 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,</div><div class="line"><a name="l00920"></a><span class="lineno"> 920</span>  0x20, 0x20, 0x20, 0x20 };</div><div class="line"><a name="l00921"></a><span class="lineno"> 921</span>  <span class="keyword">const</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> UC_FIRST =</div><div class="line"><a name="l00922"></a><span class="lineno"> 922</span>  { 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40,</div><div class="line"><a name="l00923"></a><span class="lineno"> 923</span>  0x40, 0x40, 0x40, 0x40 };</div><div class="line"><a name="l00924"></a><span class="lineno"> 924</span>  <span class="keyword">const</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> UC_LAST =</div><div class="line"><a name="l00925"></a><span class="lineno"> 925</span>  { 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a, 0x5a,</div><div class="line"><a name="l00926"></a><span class="lineno"> 926</span>  0x5a, 0x5a, 0x5a, 0x5a };</div><div class="line"><a name="l00927"></a><span class="lineno"> 927</span> </div><div class="line"><a name="l00928"></a><span class="lineno"> 928</span>  <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> cmp1, cmp2, cmask;</div><div class="line"><a name="l00929"></a><span class="lineno"> 929</span> </div><div class="line"><a name="l00930"></a><span class="lineno"> 930</span>  cmp1 = (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vec_cmpgt (vec_str, UC_FIRST);</div><div class="line"><a name="l00931"></a><span class="lineno"> 931</span>  cmp2 = (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) vec_cmpgt (vec_str, UC_LAST);</div><div class="line"><a name="l00932"></a><span class="lineno"> 932</span> </div><div class="line"><a name="l00933"></a><span class="lineno"> 933</span>  cmask = vec_andc (cmp1, cmp2);</div><div class="line"><a name="l00934"></a><span class="lineno"> 934</span>  cmask = vec_and (cmask, UC_MASK);</div><div class="line"><a name="l00935"></a><span class="lineno"> 935</span> </div><div class="line"><a name="l00936"></a><span class="lineno"> 936</span>  result = vec_or (vec_str, cmask);</div><div class="line"><a name="l00937"></a><span class="lineno"> 937</span> </div><div class="line"><a name="l00938"></a><span class="lineno"> 938</span>  <span class="keywordflow">return</span> (result);</div><div class="line"><a name="l00939"></a><span class="lineno"> 939</span> }</div><div class="line"><a name="l00940"></a><span class="lineno"> 940</span> </div><div class="line"><a name="l00977"></a><span class="lineno"> 977</span> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a></div><div class="line"><a name="l00978"></a><span class="lineno"><a class="line" href="vec__char__ppc_8h.html#a86c23ce0e18ad18d46d27f80c40f465e"> 978</a></span> <a class="code" href="vec__char__ppc_8h.html#a86c23ce0e18ad18d46d27f80c40f465e">vec_vmrgeb</a> (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vra, <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vrb)</div><div class="line"><a name="l00979"></a><span class="lineno"> 979</span> {</div><div class="line"><a name="l00980"></a><span class="lineno"> 980</span> <span class="preprocessor">#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__</span></div><div class="line"><a name="l00981"></a><span class="lineno"> 981</span>  <span class="keyword">const</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> permute =</div><div class="line"><a name="l00982"></a><span class="lineno"> 982</span>  { 0x01, 0x11, 0x03, 0x13, 0x05, 0x15, 0x07, 0x17, 0x09, 0x19, 0x0B, 0x1B,</div><div class="line"><a name="l00983"></a><span class="lineno"> 983</span>  0x0D, 0x1D, 0x0F, 0x1F };</div><div class="line"><a name="l00984"></a><span class="lineno"> 984</span> </div><div class="line"><a name="l00985"></a><span class="lineno"> 985</span>  <span class="keywordflow">return</span> vec_perm (vrb, vra, (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>) permute);</div><div class="line"><a name="l00986"></a><span class="lineno"> 986</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l00987"></a><span class="lineno"> 987</span>  <span class="keyword">const</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> permute =</div><div class="line"><a name="l00988"></a><span class="lineno"> 988</span>  { 0x00, 0x10, 0x02, 0x12, 0x04, 0x14, 0x06, 0x16, 0x08, 0x18, 0x0A, 0x1A,</div><div class="line"><a name="l00989"></a><span class="lineno"> 989</span>  0x0C, 0x1C, 0x0E, 0x1E};</div><div class="line"><a name="l00990"></a><span class="lineno"> 990</span> </div><div class="line"><a name="l00991"></a><span class="lineno"> 991</span>  <span class="keywordflow">return</span> vec_perm (vra, vrb, (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>)permute);</div><div class="line"><a name="l00992"></a><span class="lineno"> 992</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00993"></a><span class="lineno"> 993</span> }</div><div class="line"><a name="l00994"></a><span class="lineno"> 994</span> </div><div class="line"><a name="l01031"></a><span class="lineno"> 1031</span> <span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a></div><div class="line"><a name="l01032"></a><span class="lineno"><a class="line" href="vec__char__ppc_8h.html#a122434ec49f77cf6968e2cb9523e68d2"> 1032</a></span> <a class="code" href="vec__char__ppc_8h.html#a122434ec49f77cf6968e2cb9523e68d2">vec_vmrgob</a> (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vra, <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> vrb)</div><div class="line"><a name="l01033"></a><span class="lineno"> 1033</span> {</div><div class="line"><a name="l01034"></a><span class="lineno"> 1034</span> <span class="preprocessor">#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__</span></div><div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>  <span class="keyword">const</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> permute =</div><div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>  { 0x00, 0x10, 0x02, 0x12, 0x04, 0x14, 0x06, 0x16, 0x08, 0x18, 0x0A, 0x1A,</div><div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>  0x0C, 0x1C, 0x0E, 0x1E};</div><div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>  <span class="keywordflow">return</span> vec_perm (vrb, vra, (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>)permute);</div><div class="line"><a name="l01039"></a><span class="lineno"> 1039</span> <span class="preprocessor">#else</span></div><div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>  <span class="keyword">const</span> <a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a> permute =</div><div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>  { 0x01, 0x11, 0x03, 0x13, 0x05, 0x15, 0x07, 0x17, 0x09, 0x19, 0x0B, 0x1B,</div><div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>  0x0D, 0x1D, 0x0F, 0x1F };</div><div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>  <span class="keywordflow">return</span> vec_perm (vra, vrb, (<a class="code" href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a>)permute);</div><div class="line"><a name="l01044"></a><span class="lineno"> 1044</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l01045"></a><span class="lineno"> 1045</span> }</div><div class="line"><a name="l01046"></a><span class="lineno"> 1046</span> </div><div class="line"><a name="l01047"></a><span class="lineno"> 1047</span> <span class="preprocessor">#endif </span><span class="comment">/* VEC_CHAR_PPC_H_ */</span><span class="preprocessor"></span></div><div class="ttc" id="vec__char__ppc_8h_html_a495109a7d46f4a97b56f22bb315ac567"><div class="ttname"><a href="vec__char__ppc_8h.html#a495109a7d46f4a97b56f22bb315ac567">vec_srbi</a></div><div class="ttdeci">static vui8_t vec_srbi(vui8_t vra, const unsigned int shb)</div><div class="ttdoc">Vector Shift Right Byte Immediate. </div><div class="ttdef"><b>Definition:</b> vec_char_ppc.h:798</div></div>
<div class="ttc" id="vec__char__ppc_8h_html_a253a59f286f91817dfac89459ccbeac6"><div class="ttname"><a href="vec__char__ppc_8h.html#a253a59f286f91817dfac89459ccbeac6">vec_srabi</a></div><div class="ttdeci">static vi8_t vec_srabi(vi8_t vra, const unsigned int shb)</div><div class="ttdoc">Vector Shift Right Algebraic Byte Immediate. </div><div class="ttdef"><b>Definition:</b> vec_char_ppc.h:749</div></div>
<div class="ttc" id="vec__char__ppc_8h_html_a86c23ce0e18ad18d46d27f80c40f465e"><div class="ttname"><a href="vec__char__ppc_8h.html#a86c23ce0e18ad18d46d27f80c40f465e">vec_vmrgeb</a></div><div class="ttdeci">static vui8_t vec_vmrgeb(vui8_t vra, vui8_t vrb)</div><div class="ttdoc">Vector Merge Even Bytes. </div><div class="ttdef"><b>Definition:</b> vec_char_ppc.h:978</div></div>
<div class="ttc" id="vec__char__ppc_8h_html_a562bddfc070386aabced80167b4571af"><div class="ttname"><a href="vec__char__ppc_8h.html#a562bddfc070386aabced80167b4571af">vec_mrgob</a></div><div class="ttdeci">static vui8_t vec_mrgob(vui8_t vra, vui8_t vrb)</div><div class="ttdoc">Vector Merge Odd Halfwords operation. </div><div class="ttdef"><b>Definition:</b> vec_char_ppc.h:509</div></div>
<div class="ttc" id="vec__char__ppc_8h_html_ab8a776401631aedafdaf371e268fcfe7"><div class="ttname"><a href="vec__char__ppc_8h.html#ab8a776401631aedafdaf371e268fcfe7">vec_mrgeb</a></div><div class="ttdeci">static vui8_t vec_mrgeb(vui8_t vra, vui8_t vrb)</div><div class="ttdoc">Vector Merge Even Bytes operation. </div><div class="ttdef"><b>Definition:</b> vec_char_ppc.h:481</div></div>
<div class="ttc" id="vec__char__ppc_8h_html_a73501120e1af14864b7621e318645426"><div class="ttname"><a href="vec__char__ppc_8h.html#a73501120e1af14864b7621e318645426">vec_tolower</a></div><div class="ttdeci">static vui8_t vec_tolower(vui8_t vec_str)</div><div class="ttdoc">Vector tolower. </div><div class="ttdef"><b>Definition:</b> vec_char_ppc.h:915</div></div>
<div class="ttc" id="vec__char__ppc_8h_html_a0152053aed21f65166488df7e6b6c2a9"><div class="ttname"><a href="vec__char__ppc_8h.html#a0152053aed21f65166488df7e6b6c2a9">vec_isdigit</a></div><div class="ttdeci">static vui8_t vec_isdigit(vui8_t vec_str)</div><div class="ttdoc">Vector isdigit. </div><div class="ttdef"><b>Definition:</b> vec_char_ppc.h:390</div></div>
<div class="ttc" id="vec__char__ppc_8h_html_a86d585f1bb4fc5efab4df98594cdb46c"><div class="ttname"><a href="vec__char__ppc_8h.html#a86d585f1bb4fc5efab4df98594cdb46c">vec_toupper</a></div><div class="ttdeci">static vui8_t vec_toupper(vui8_t vec_str)</div><div class="ttdoc">Vector toupper. </div><div class="ttdef"><b>Definition:</b> vec_char_ppc.h:874</div></div>
<div class="ttc" id="vec__char__ppc_8h_html_a81a67dcc2623020b065eb244bc54511c"><div class="ttname"><a href="vec__char__ppc_8h.html#a81a67dcc2623020b065eb244bc54511c">vec_mulhub</a></div><div class="ttdeci">static vui8_t vec_mulhub(vui8_t vra, vui8_t vrb)</div><div class="ttdoc">Vector Multiply High Unsigned Bytes. </div><div class="ttdef"><b>Definition:</b> vec_char_ppc.h:563</div></div>
<div class="ttc" id="vec__char__ppc_8h_html_a29190093e687e416c846b885eb2c10c6"><div class="ttname"><a href="vec__char__ppc_8h.html#a29190093e687e416c846b885eb2c10c6">vec_clzb</a></div><div class="ttdeci">static vui8_t vec_clzb(vui8_t vra)</div><div class="ttdoc">Count leading zeros for a vector unsigned char (byte) elements. </div><div class="ttdef"><b>Definition:</b> vec_char_ppc.h:207</div></div>
<div class="ttc" id="vec__common__ppc_8h_html"><div class="ttname"><a href="vec__common__ppc_8h.html">vec_common_ppc.h</a></div><div class="ttdoc">Common definitions and typedef used by the collection of Power Vector Library (pveclib) headers...</div></div>
<div class="ttc" id="vec__char__ppc_8h_html_ab6ea0723c4ae1ce1b4137a25eae1a15e"><div class="ttname"><a href="vec__char__ppc_8h.html#ab6ea0723c4ae1ce1b4137a25eae1a15e">vec_isalpha</a></div><div class="ttdeci">static vui8_t vec_isalpha(vui8_t vec_str)</div><div class="ttdoc">Vector isalnum. </div><div class="ttdef"><b>Definition:</b> vec_char_ppc.h:341</div></div>
<div class="ttc" id="vec__char__ppc_8h_html_a5b81ae683c42ead33d58b422ee8f85cb"><div class="ttname"><a href="vec__char__ppc_8h.html#a5b81ae683c42ead33d58b422ee8f85cb">vec_mulhsb</a></div><div class="ttdeci">static vi8_t vec_mulhsb(vi8_t vra, vi8_t vrb)</div><div class="ttdoc">Vector Multiply High Signed Bytes. </div><div class="ttdef"><b>Definition:</b> vec_char_ppc.h:535</div></div>
<div class="ttc" id="vec__char__ppc_8h_html_ae0c33360f34cc31ca2e381bf2e7c9ce6"><div class="ttname"><a href="vec__char__ppc_8h.html#ae0c33360f34cc31ca2e381bf2e7c9ce6">vec_popcntb</a></div><div class="ttdeci">static vui8_t vec_popcntb(vui8_t vra)</div><div class="ttdoc">Vector Population Count byte. </div><div class="ttdef"><b>Definition:</b> vec_char_ppc.h:631</div></div>
<div class="ttc" id="vec__char__ppc_8h_html_a122434ec49f77cf6968e2cb9523e68d2"><div class="ttname"><a href="vec__char__ppc_8h.html#a122434ec49f77cf6968e2cb9523e68d2">vec_vmrgob</a></div><div class="ttdeci">static vui8_t vec_vmrgob(vui8_t vra, vui8_t vrb)</div><div class="ttdoc">Vector Merge Odd Byte. </div><div class="ttdef"><b>Definition:</b> vec_char_ppc.h:1032</div></div>
<div class="ttc" id="vec__char__ppc_8h_html_a425151e5a82ee9e204ffd81b1ec7a92c"><div class="ttname"><a href="vec__char__ppc_8h.html#a425151e5a82ee9e204ffd81b1ec7a92c">vec_mulubm</a></div><div class="ttdeci">static vui8_t vec_mulubm(vui8_t vra, vui8_t vrb)</div><div class="ttdoc">Vector Multiply Unsigned Byte Modulo. </div><div class="ttdef"><b>Definition:</b> vec_char_ppc.h:592</div></div>
<div class="ttc" id="vec__char__ppc_8h_html_a095741b255775d4ccf6228a5655599a2"><div class="ttname"><a href="vec__char__ppc_8h.html#a095741b255775d4ccf6228a5655599a2">vec_slbi</a></div><div class="ttdeci">static vui8_t vec_slbi(vui8_t vra, const unsigned int shb)</div><div class="ttdoc">Vector Shift left Byte Immediate. </div><div class="ttdef"><b>Definition:</b> vec_char_ppc.h:702</div></div>
<div class="ttc" id="vec__char__ppc_8h_html_af07f90ac64ed898a5add48932b8ac010"><div class="ttname"><a href="vec__char__ppc_8h.html#af07f90ac64ed898a5add48932b8ac010">vec_mrgalb</a></div><div class="ttdeci">static vui8_t vec_mrgalb(vui16_t vra, vui16_t vrb)</div><div class="ttdoc">Vector Merge Algebraic Low Byte operation. </div><div class="ttdef"><b>Definition:</b> vec_char_ppc.h:457</div></div>
<div class="ttc" id="vec__char__ppc_8h_html_a04af2798abe4f5e568e8fd527bef3b02"><div class="ttname"><a href="vec__char__ppc_8h.html#a04af2798abe4f5e568e8fd527bef3b02">vec_isalnum</a></div><div class="ttdeci">static vui8_t vec_isalnum(vui8_t vec_str)</div><div class="ttdoc">Vector isalpha. </div><div class="ttdef"><b>Definition:</b> vec_char_ppc.h:282</div></div>
<div class="ttc" id="vec__char__ppc_8h_html_a949a5b375e69a85e76a06e68831cb59a"><div class="ttname"><a href="vec__char__ppc_8h.html#a949a5b375e69a85e76a06e68831cb59a">vec_shift_leftdo</a></div><div class="ttdeci">static vui8_t vec_shift_leftdo(vui8_t vrw, vui8_t vrx, vui8_t vrb)</div><div class="ttdoc">Shift left double quadword by octet. Return a vector unsigned char that is the left most 16 chars aft...</div><div class="ttdef"><b>Definition:</b> vec_char_ppc.h:846</div></div>
<div class="ttc" id="vec__common__ppc_8h_html_a748bbf6563e6ab1ddcb694c86e2aaef4"><div class="ttname"><a href="vec__common__ppc_8h.html#a748bbf6563e6ab1ddcb694c86e2aaef4">vi8_t</a></div><div class="ttdeci">__vector signed char vi8_t</div><div class="ttdoc">vector of 8-bit signed char elements. </div><div class="ttdef"><b>Definition:</b> vec_common_ppc.h:211</div></div>
<div class="ttc" id="vec__common__ppc_8h_html_afb47075b07673afbf78f8c60298f3712"><div class="ttname"><a href="vec__common__ppc_8h.html#afb47075b07673afbf78f8c60298f3712">vui16_t</a></div><div class="ttdeci">__vector unsigned short vui16_t</div><div class="ttdoc">vector of 16-bit unsigned short elements. </div><div class="ttdef"><b>Definition:</b> vec_common_ppc.h:204</div></div>
<div class="ttc" id="vec__char__ppc_8h_html_a3eca950eb052ce1b0ad7a8d20ce3f971"><div class="ttname"><a href="vec__char__ppc_8h.html#a3eca950eb052ce1b0ad7a8d20ce3f971">vec_absdub</a></div><div class="ttdeci">static vui8_t vec_absdub(vui8_t vra, vui8_t vrb)</div><div class="ttdoc">Vector Absolute Difference Unsigned byte. </div><div class="ttdef"><b>Definition:</b> vec_char_ppc.h:160</div></div>
<div class="ttc" id="vec__common__ppc_8h_html_aed458e4755a6589049b936cf9f24f6f8"><div class="ttname"><a href="vec__common__ppc_8h.html#aed458e4755a6589049b936cf9f24f6f8">vui8_t</a></div><div class="ttdeci">__vector unsigned char vui8_t</div><div class="ttdoc">vector of 8-bit unsigned char elements. </div><div class="ttdef"><b>Definition:</b> vec_common_ppc.h:202</div></div>
<div class="ttc" id="vec__char__ppc_8h_html_ab2ec8f3ed5b75f1e1b21998484d878e8"><div class="ttname"><a href="vec__char__ppc_8h.html#ab2ec8f3ed5b75f1e1b21998484d878e8">vec_mrgahb</a></div><div class="ttdeci">static vui8_t vec_mrgahb(vui16_t vra, vui16_t vrb)</div><div class="ttdoc">Vector Merge Algebraic High Byte operation. </div><div class="ttdef"><b>Definition:</b> vec_char_ppc.h:431</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Jul 17 2020 17:13:18 for POWER Vector Library Manual by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>