summaryrefslogtreecommitdiff
path: root/include/share
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2012-02-17 18:00:10 +1100
committerErik de Castro Lopo <erikd@mega-nerd.com>2012-02-17 18:00:10 +1100
commit3789c44e1461bc9da9f45258a748a3794305b8fb (patch)
treeefe751c9d46a920b38abe026b92db05625d207d2 /include/share
parent587e118bfc5a0301495f5afc6c1cbef5f31dfa2b (diff)
downloadflac-3789c44e1461bc9da9f45258a748a3794305b8fb.tar.gz
Remove '#if 0'-ed out code.
Diffstat (limited to 'include/share')
-rw-r--r--include/share/alloc.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/share/alloc.h b/include/share/alloc.h
index 75043fa9..a74d0707 100644
--- a/include/share/alloc.h
+++ b/include/share/alloc.h
@@ -111,18 +111,6 @@ static inline void *safe_malloc_add_4op_(size_t size1, size_t size2, size_t size
}
static inline void *safe_malloc_mul_2op_(size_t size1, size_t size2)
-#if 0
-needs support for cases where sizeof(size_t) != 4
-{
- /* could be faster #ifdef'ing off SIZEOF_SIZE_T */
- if(sizeof(size_t) == 4) {
- if ((double)size1 * (double)size2 < 4294967296.0)
- return malloc(size1*size2);
- }
- return 0;
-}
-#else
-/* better? */
{
if(!size1 || !size2)
return malloc(1); /* malloc(0) is undefined; FLAC src convention is to always allocate */
@@ -130,7 +118,6 @@ needs support for cases where sizeof(size_t) != 4
return 0;
return malloc(size1*size2);
}
-#endif
static inline void *safe_malloc_mul_3op_(size_t size1, size_t size2, size_t size3)
{