Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 7faa4cd12598db7d59564e3dc9a0913c > files > 42

vips-7.18.2-1mdv2010.0.i586.rpm

<!-- manual page source format generated by PolyglotMan v3.2, -->
<!-- available at http://polyglotman.sourceforge.net/ -->

<html>
<head>
<title>MACROS(3) manual page</title>
</head>
<body bgcolor='white'>
<a href='#toc'>Table of Contents</a><p>

<h2><a name='sect0' href='#toc0'>Name</a></h2>
IM_RINT, IM_MAX, IM_MIN - misc math macros 
<h2><a name='sect1' href='#toc1'>Synopsis</a></h2>

<p> <b>#include &lt;vips/vips.h&gt;</b>

<p> int IM_RINT( float ) <br>
any IM_MAX( any, any ) <br>
any IM_MIN( any, any ) 
<p> 
<h2><a name='sect2' href='#toc2'>Description</a></h2>

<p> These macros provide some simple but
fast math functions --- <a href='IM_MAX.3.html'>IM_MAX(3)</a>
 returns the maximum of its two arguments,
<a href='IM_MIN.3.html'>IM_MIN(3)</a>
 the smallest, and <a href='IM_RINT.3.html'>IM_RINT(3)</a>
 rounds a float or double to the
nearest integer. 
<p> Beware: these macros may evaluate their argument more
than once, so you MUST NOT use ++,--, or a function call in their argument
lists. 
<p> They are defined as: 
<p>   #define IM_MAX(A,B) ((A)&gt;(B)?(A):(B))<br>
   #define IM_MIN(A,B) ((A)&lt;(B)?(A):(B))<br>
   #define IM_RINT(R) ((int)((R)&gt;0?((R)+0.5):((R)-0.5)))<br>
 
<p> 
<h2><a name='sect3' href='#toc3'>Copyright</a></h2>
National Gallery, 1993 
<h2><a name='sect4' href='#toc4'>See Also</a></h2>
<a href='im_malloc.3.html'>im_malloc(3)</a>
, <a href='im_open_local.3.html'>im_open_local(3)</a>
.

<h2><a name='sect5' href='#toc5'>Author</a></h2>
J. Cupitt - 23/7/93 <p>

<hr><p>
<a name='toc'><b>Table of Contents</b></a><p>
<ul>
<li><a name='toc0' href='#sect0'>Name</a></li>
<li><a name='toc1' href='#sect1'>Synopsis</a></li>
<li><a name='toc2' href='#sect2'>Description</a></li>
<li><a name='toc3' href='#sect3'>Copyright</a></li>
<li><a name='toc4' href='#sect4'>See Also</a></li>
<li><a name='toc5' href='#sect5'>Author</a></li>
</ul>
</body>
</html>