38 lines
3.2 KiB
HTML
Executable File
38 lines
3.2 KiB
HTML
Executable File
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
|
<title>MPI On Cell (Documentation): src/noarch/system/moc_get_count.c Source File</title>
|
|
<link href="../../doxygen.css" rel="stylesheet" type="text/css">
|
|
<link href="../../tabs.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<!-- Generated by Doxygen 1.5.6 -->
|
|
<div class="navigation" id="top">
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="../../main.html"><span>Main Page</span></a></li>
|
|
<li><a href="../../modules.html"><span>Modules</span></a></li>
|
|
<li><a href="../../annotated.html"><span>Data Structures</span></a></li>
|
|
<li class="current"><a href="../../files.html"><span>Files</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<h1>src/noarch/system/moc_get_count.c</h1><a href="../../df/d8a/moc__get__count_8c.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#include <<a class="code" href="../../d0/d3a/spu_2moc_8h.html">moc.h</a>></span>
|
|
<a name="l00002"></a>00002
|
|
<a name="l00003"></a><a class="code" href="../../da/df0/group__p2p__status.html#g0766bc2817b17dcdc8b7e830828fe118">00003</a> <span class="keywordtype">int</span> <a class="code" href="../../da/df0/group__p2p__status.html#g0766bc2817b17dcdc8b7e830828fe118" title="Gets the number of received elements which is encoded in MOC_Status.">MOC_Get_count</a>(<a class="code" href="../../dd/d7a/structMOC__Status__struct.html" title="Structure holding information about a received message.">MOC_Status</a> *status, <a class="code" href="../../dc/d6e/group__p2p__datatype.html#gb4e45f15c08578bd3fc97c0cca2a509a" title="Typedef defining MOC_Datatype.">MOC_Datatype</a> datatype, <span class="keywordtype">int</span> *count)
|
|
<a name="l00004"></a>00004 {
|
|
<a name="l00005"></a>00005 <span class="keywordtype">int</span> bytecount;
|
|
<a name="l00006"></a>00006 <span class="keywordflow">if</span> (!status)
|
|
<a name="l00007"></a>00007 <span class="keywordflow">return</span> <a class="code" href="../../d8/da1/group__environment__error.html#g734aa5985b6d809690f10979ff44785c" title="Invalid argument of some other kind.">MOC_ERR_ARG</a>;
|
|
<a name="l00008"></a>00008 <span class="keywordflow">if</span> (((datatype & 0xF0) >> 4) == 0)
|
|
<a name="l00009"></a>00009 bytecount = 1;
|
|
<a name="l00010"></a>00010 <span class="keywordflow">else</span>
|
|
<a name="l00011"></a>00011 bytecount = (((datatype & 0xF0) >> 4) * 2);
|
|
<a name="l00012"></a>00012 *count = status-><a class="code" href="../../dd/d7a/structMOC__Status__struct.html#872c34c85569926730eebe10e47af384" title="message-size in byte (internal-variable)">message_size</a> / bytecount;
|
|
<a name="l00013"></a>00013 <span class="keywordflow">return</span> 0;
|
|
<a name="l00014"></a>00014 }
|
|
<a name="l00015"></a>00015
|
|
</pre></div></div>
|
|
<hr size="1"><address style="text-align: right;"><small>Generated on Thu Feb 12 13:49:47 2009 for MPI On Cell (Documentation) by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img src="../../doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
|
|
</body>
|
|
</html>
|