| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010 The VP8 project authors. All Rights Reserved. | 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 | 11 |
| 12 #define __VPX_MEM_C__ | 12 #define __VPX_MEM_C__ |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 heap_start = os_alloc_from_arena_lo(id, size, 32); | 57 heap_start = os_alloc_from_arena_lo(id, size, 32); |
| 58 arena_handle = os_create_heap(id, heap_start, (void *)((u32)heap_start + siz
e)); | 58 arena_handle = os_create_heap(id, heap_start, (void *)((u32)heap_start + siz
e)); |
| 59 | 59 |
| 60 if (os_check_heap(id, arena_handle) == -1) | 60 if (os_check_heap(id, arena_handle) == -1) |
| 61 return -1; //ERROR: DTCM heap is not consistent | 61 return -1; //ERROR: DTCM heap is not consistent |
| 62 | 62 |
| 63 (void)os_set_current_heap(id, arena_handle); | 63 (void)os_set_current_heap(id, arena_handle); |
| 64 | 64 |
| 65 return arena_handle; | 65 return arena_handle; |
| 66 } | 66 } |
| OLD | NEW |