_TIFFauxiliary.3tiff
Contents
Copyright
1988-2022, LibTIFF contributors
4.7 Apr 30, 2025 _TIFFAUXILIARY(3tiff)
Description
_TIFFClampDoubleToUInt32() clamps double values into the range of uint32_t (i.e. 0 .. 0xFFFFFFFF)
_TIFFMultiply32() and _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.
Name
_TIFFauxiliary - auxiliary functions
See Also
libtiff (3tiff),
Synopsis
#include <tiffio.h>
uint32_t_TIFFClampDoubleToUInt32(doubleval)uint32_t_TIFFMultiply32(TIFF*tif,uint32_tfirst,uint32_tsecond,constchar*where)uint64_t_TIFFMultiply64(TIFF*tif,uint64_tfirst,uint64_tsecond,constchar*where)