MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / stbi__malloc_mad3

Function stbi__malloc_mad3

Source/Utils/stb_image.h:1054–1058  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1052#endif
1053
1054static void *stbi__malloc_mad3(int a, int b, int c, int add)
1055{
1056 if (!stbi__mad3sizes_valid(a, b, c, add)) return NULL;
1057 return stbi__malloc(a*b*c + add);
1058}
1059
1060#if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR) || !defined(STBI_NO_PNM)
1061static void *stbi__malloc_mad4(int a, int b, int c, int d, int add)

Callers 10

stbi__convert_formatFunction · 0.85
stbi__hdr_to_ldrFunction · 0.85
load_jpeg_imageFunction · 0.85
stbi__create_png_imageFunction · 0.85
stbi__bmp_loadFunction · 0.85
stbi__tga_loadFunction · 0.85
stbi__psd_loadFunction · 0.85
stbi__pic_loadFunction · 0.85

Calls 2

stbi__mad3sizes_validFunction · 0.85
stbi__mallocFunction · 0.85

Tested by

no test coverage detected