---
name: "_TIFFauxiliary"
section: "3tiff"
platform: "linux"
package: "libtiff-dev"
version: "4.7.0-3+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/_TIFFauxiliary"
---

# \_TIFFauxiliary(3tiff)

auxiliary functions

## NAME

\_TIFFauxiliary - auxiliary functions

## SYNOPSIS

```
#include <tiffio.h>
```

- **uint32\_t \_TIFFClampDoubleToUInt32(double val)**

  - **uint32\_t \_TIFFMultiply32(TIFF \*tif, uint32\_t first, uint32\_t second, const char \*where)**

  - **uint64\_t \_TIFFMultiply64(TIFF \*tif, uint64\_t first, uint64\_t second, const char \*where)**

  ## 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.

## SEE ALSO

*libtiff* (3tiff),

## AUTHOR

LibTIFF contributors

## COPYRIGHT

1988-2022, LibTIFF contributors
