Line | |
---|
1 | // ================================================================= // |
---|
2 | // // |
---|
3 | // File : arb_mem.cxx // |
---|
4 | // Purpose : // |
---|
5 | // // |
---|
6 | // Coded by Elmar Pruesse in September 2014 // |
---|
7 | // http://www.arb-home.de/ // |
---|
8 | // // |
---|
9 | // ================================================================= // |
---|
10 | |
---|
11 | #include "arb_mem.h" |
---|
12 | #include "arb_msg.h" |
---|
13 | |
---|
14 | int arb_alloc_aligned_intern(void** tgt, size_t len) { |
---|
15 | int error = posix_memalign(tgt, 16, len); |
---|
16 | if (error != 0) { |
---|
17 | GB_export_errorf("Failed to allocate memory: %s", strerror(error)); |
---|
18 | } |
---|
19 | return error; |
---|
20 | } |
---|
21 | |
---|
Note: See
TracBrowser
for help on using the repository browser.