diff options
Diffstat (limited to 'pixman/pixman-utils.c')
-rw-r--r-- | pixman/pixman-utils.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/pixman/pixman-utils.c b/pixman/pixman-utils.c index b1e9fb6..9ed9697 100644 --- a/pixman/pixman-utils.c +++ b/pixman/pixman-utils.c @@ -48,29 +48,6 @@ _pixman_addition_overflows_int (unsigned int a, unsigned int b) return a > INT32_MAX - b; } -void * -pixman_malloc_ab (unsigned int a, - unsigned int b) -{ - if (a >= INT32_MAX / b) - return NULL; - - return malloc (a * b); -} - -void * -pixman_malloc_abc (unsigned int a, - unsigned int b, - unsigned int c) -{ - if (a >= INT32_MAX / b) - return NULL; - else if (a * b >= INT32_MAX / c) - return NULL; - else - return malloc (a * b * c); -} - static force_inline uint16_t float_to_unorm (float f, int n_bits) { |