コード例 #1
0
ファイル: ImmixGC.c プロジェクト: Duhemm/scala-native
void *scalanative_alloc_large(void *info, size_t size) {
    size = MathUtils_RoundToNextMultiple(size, WORD_SIZE);

    void **alloc = (void **)Heap_AllocLarge(heap, size);
    *alloc = info;
    return (void *)alloc;
}
コード例 #2
0
ファイル: ImmixGC.c プロジェクト: Sciss/scala-native
INLINE void *scalanative_alloc_large(void *info, size_t size) {
    size = MathUtils_RoundToNextMultiple(size, ALLOCATION_ALIGNMENT);

    void **alloc = (void **)Heap_AllocLarge(&heap, size);
    *alloc = info;
    return (void *)alloc;
}