returns 1 if "a*b*c + add" has no negative terms/factors and doesn't overflow
| 1055 | |
| 1056 | // returns 1 if "a*b*c + add" has no negative terms/factors and doesn't overflow |
| 1057 | static int stbi__mad3sizes_valid(int a, int b, int c, int add) { |
| 1058 | return stbi__mul2sizes_valid(a, b) && stbi__mul2sizes_valid(a * b, c) && |
| 1059 | stbi__addsizes_valid(a * b * c, add); |
| 1060 | } |
| 1061 | |
| 1062 | // returns 1 if "a*b*c*d + add" has no negative terms/factors and doesn't overflow |
| 1063 | #if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR) || !defined(STBI_NO_PNM) |
no test coverage detected