returns 1 if "a*b + add" has no negative terms/factors and doesn't overflow
| 1021 | #if !defined(STBI_NO_JPEG) || !defined(STBI_NO_PNG) || !defined(STBI_NO_TGA) || !defined(STBI_NO_HDR) |
| 1022 | // returns 1 if "a*b + add" has no negative terms/factors and doesn't overflow |
| 1023 | static int stbi__mad2sizes_valid(int a, int b, int add) |
| 1024 | { |
| 1025 | return stbi__mul2sizes_valid(a, b) && stbi__addsizes_valid(a*b, add); |
| 1026 | } |
| 1027 | #endif |
| 1028 | |
| 1029 | // returns 1 if "a*b*c + add" has no negative terms/factors and doesn't overflow |
no test coverage detected