| 145 | #endif |
| 146 | |
| 147 | static SECP256K1_INLINE void *checked_malloc(const secp256k1_callback* cb, size_t size) { |
| 148 | void *ret = malloc(size); |
| 149 | if (ret == NULL) { |
| 150 | secp256k1_callback_call(cb, "Out of memory"); |
| 151 | } |
| 152 | return ret; |
| 153 | } |
| 154 | |
| 155 | #if defined(__BIGGEST_ALIGNMENT__) |
| 156 | #define ALIGNMENT __BIGGEST_ALIGNMENT__ |