returns 1 if "a*b*c + add" has no negative terms/factors and doesn't overflow
| 1028 | |
| 1029 | // returns 1 if "a*b*c + add" has no negative terms/factors and doesn't overflow |
| 1030 | static int stbi__mad3sizes_valid(int a, int b, int c, int add) |
| 1031 | { |
| 1032 | return stbi__mul2sizes_valid(a, b) && stbi__mul2sizes_valid(a*b, c) && |
| 1033 | stbi__addsizes_valid(a*b*c, add); |
| 1034 | } |
| 1035 | |
| 1036 | // returns 1 if "a*b*c*d + add" has no negative terms/factors and doesn't overflow |
| 1037 | #if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR) || !defined(STBI_NO_PNM) |
no test coverage detected