From: Kevin Day Date: Fri, 10 Jul 2020 01:50:08 +0000 (-0500) Subject: Update: add array types for the 8t, 16t, 32t, 64t, and 128t explicit types. X-Git-Tag: 0.5.0~99 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=cb6d0f959ca7b0fe40e968085c806f2da5103a50;p=fll Update: add array types for the 8t, 16t, 32t, 64t, and 128t explicit types. For both signed and unsigned. Add missing parameter in resize and adjust macro calls. --- diff --git a/level_0/f_type/c/type_array.h b/level_0/f_type/c/type_array.h index 1a1a9ae..2043a18 100644 --- a/level_0/f_type/c/type_array.h +++ b/level_0/f_type/c/type_array.h @@ -78,10 +78,756 @@ extern "C" { #define f_macro_array_lengthss_delete_simple(lengths) f_macro_memory_structures_delete_simple(lengths, f_array_length, f_array_lengths) #define f_macro_array_lengthss_destroy_simple(lengths) f_macro_memory_structures_destroy_simple(lengths, f_array_length, f_array_lengths) - #define f_macro_array_lengthss_resize(status, lengths, new_length) f_macro_memory_structures_resize(status, lengths, f_array_length, f_array_lengths, new_length) - #define f_macro_array_lengthss_adjust(status, lengths, new_length) f_macro_memory_structures_adjust(status, lengths, f_array_length, f_array_lengths, new_length) + #define f_macro_array_lengthss_resize(status, lengths, new_length) f_macro_memory_structures_resize(status, lengths, f_array_length, f_array_lengths, new_length, f_array_length) + #define f_macro_array_lengthss_adjust(status, lengths, new_length) f_macro_memory_structures_adjust(status, lengths, f_array_length, f_array_lengths, new_length, f_array_length) #endif // _di_f_array_lengthss_ +/** + * An array of array int8_t. + * + * array: An array of int8_t. + * size: Total amount of allocated space. + * used: Total number of allocated spaces used. + */ +#ifndef _di_f_array_int8_t_ + typedef struct { + int8_t *array; + + f_array_length size; + f_array_length used; + } f_int8_ts; + + #define f_int8_ts_initialize { 0, 0, 0 } + + #define f_macro_int8_ts_clear(numbers) f_macro_memory_structure_clear(numbers) + + #define f_macro_int8_ts_new(status, numbers, length) f_macro_memory_structure_new(status, numbers, int8_t, length) + + #define f_macro_int8_ts_delete(status, numbers) f_macro_memory_structure_delete(status, numbers, int8_t) + #define f_macro_int8_ts_destroy(status, numbers) f_macro_memory_structure_destroy(status, numbers, int8_t) + + #define f_macro_int8_ts_delete_simple(numbers) f_macro_memory_structure_delete_simple(numbers, int8_t) + #define f_macro_int8_ts_destroy_simple(numbers) f_macro_memory_structure_destroy_simple(numbers, int8_t) + + #define f_macro_int8_ts_resize(status, numbers, new_length) f_macro_memory_structure_resize(status, numbers, int8_t, new_length) + #define f_macro_int8_ts_adjust(status, numbers, new_length) f_macro_memory_structure_adjust(status, numbers, int8_t, new_length) +#endif // _di_int8_ts_ + +/** + * An array of an array of array int8_t. + * + * array: the array of an array of array int8_t. + * size: total amount of allocated space. + * used: total number of allocated spaces used. + */ +#ifndef _di_int8_tss_ + typedef struct { + f_int8_ts *array; + + f_array_length size; + f_array_length used; + } f_int8_tss; + + #define f_int8_tss_initialize { 0, 0, 0 } + + #define f_macro_int8_tss_clear(numbers) f_macro_memory_structures_clear(numbers) + + #define f_macro_int8_tss_new(status, numbers, length) f_macro_memory_structures_new(status, numbers, int8_t, f_int8_ts, length) + + #define f_macro_int8_tss_delete(status, numbers) f_macro_memory_structures_delete(status, numbers, int8_t, f_int8_ts) + #define f_macro_int8_tss_destroy(status, numbers) f_macro_memory_structures_destroy(status, numbers, int8_t, f_int8_ts) + + #define f_macro_int8_tss_delete_simple(numbers) f_macro_memory_structures_delete_simple(numbers, int8_t, f_int8_ts) + #define f_macro_int8_tss_destroy_simple(numbers) f_macro_memory_structures_destroy_simple(numbers, int8_t, f_int8_ts) + + #define f_macro_int8_tss_resize(status, numbers, new_length) f_macro_memory_structures_resize(status, numbers, int8_t, f_int8_ts, new_length, f_array_length) + #define f_macro_int8_tss_adjust(status, numbers, new_length) f_macro_memory_structures_adjust(status, numbers, int8_t, f_int8_ts, new_length, f_array_length) +#endif // _di_int8_tss_ + +/** + * An array of array uint8_t. + * + * array: An array of uint8_t. + * size: Total amount of allocated space. + * used: Total number of allocated spaces used. + */ +#ifndef _di_uint8_ts_ + typedef struct { + uint8_t *array; + + f_array_length size; + f_array_length used; + } f_uint8_ts; + + #define f_uint8_ts_initialize { 0, 0, 0 } + + #define f_macro_uint8_ts_clear(numbers) f_macro_memory_structure_clear(numbers) + + #define f_macro_uint8_ts_new(status, numbers, length) f_macro_memory_structure_new(status, numbers, uint8_t, length) + + #define f_macro_uint8_ts_delete(status, numbers) f_macro_memory_structure_delete(status, numbers, uint8_t) + #define f_macro_uint8_ts_destroy(status, numbers) f_macro_memory_structure_destroy(status, numbers, uint8_t) + + #define f_macro_uint8_ts_delete_simple(numbers) f_macro_memory_structure_delete_simple(numbers, uint8_t) + #define f_macro_uint8_ts_destroy_simple(numbers) f_macro_memory_structure_destroy_simple(numbers, uint8_t) + + #define f_macro_uint8_ts_resize(status, numbers, new_length) f_macro_memory_structure_resize(status, numbers, uint8_t, new_length) + #define f_macro_uint8_ts_adjust(status, numbers, new_length) f_macro_memory_structure_adjust(status, numbers, uint8_t, new_length) +#endif // _di_uint8_ts_ + +/** + * An array of an array of array uint8_t. + * + * array: the array of an array of array uint8_t. + * size: total amount of allocated space. + * used: total number of allocated spaces used. + */ +#ifndef _di_uint8_tss_ + typedef struct { + f_uint8_ts *array; + + f_array_length size; + f_array_length used; + } f_uint8_tss; + + #define f_uint8_tss_initialize { 0, 0, 0 } + + #define f_macro_uint8_tss_clear(numbers) f_macro_memory_structures_clear(numbers) + + #define f_macro_uint8_tss_new(status, numbers, length) f_macro_memory_structures_new(status, numbers, uint8_t, f_uint8_ts, length) + + #define f_macro_uint8_tss_delete(status, numbers) f_macro_memory_structures_delete(status, numbers, uint8_t, f_uint8_ts) + #define f_macro_uint8_tss_destroy(status, numbers) f_macro_memory_structures_destroy(status, numbers, uint8_t, f_uint8_ts) + + #define f_macro_uint8_tss_delete_simple(numbers) f_macro_memory_structures_delete_simple(numbers, uint8_t, f_uint8_ts) + #define f_macro_uint8_tss_destroy_simple(numbers) f_macro_memory_structures_destroy_simple(numbers, uint8_t, f_uint8_ts) + + #define f_macro_uint8_tss_resize(status, numbers, new_length) f_macro_memory_structures_resize(status, numbers, uint8_t, f_uint8_ts, new_length, f_array_length) + #define f_macro_uint8_tss_adjust(status, numbers, new_length) f_macro_memory_structures_adjust(status, numbers, uint8_t, f_uint8_ts, new_length, f_array_length) +#endif // _di_uint8_tss_ + +/** + * An array of array int16_t. + * + * array: An array of int16_t. + * size: Total amount of allocated space. + * used: Total number of allocated spaces used. + */ +#ifndef _di_int16_ts_ + typedef struct { + int16_t *array; + + f_array_length size; + f_array_length used; + } f_int16_ts; + + #define f_int16_ts_initialize { 0, 0, 0 } + + #define f_macro_int16_ts_clear(numbers) f_macro_memory_structure_clear(numbers) + + #define f_macro_int16_ts_new(status, numbers, length) f_macro_memory_structure_new(status, numbers, int16_t, length) + + #define f_macro_int16_ts_delete(status, numbers) f_macro_memory_structure_delete(status, numbers, int16_t) + #define f_macro_int16_ts_destroy(status, numbers) f_macro_memory_structure_destroy(status, numbers, int16_t) + + #define f_macro_int16_ts_delete_simple(numbers) f_macro_memory_structure_delete_simple(numbers, int16_t) + #define f_macro_int16_ts_destroy_simple(numbers) f_macro_memory_structure_destroy_simple(numbers, int16_t) + + #define f_macro_int16_ts_resize(status, numbers, new_length) f_macro_memory_structure_resize(status, numbers, int16_t, new_length) + #define f_macro_int16_ts_adjust(status, numbers, new_length) f_macro_memory_structure_adjust(status, numbers, int16_t, new_length) +#endif // _di_int16_ts_ + +/** + * An array of an array of array int16_t. + * + * array: the array of an array of array int16_t. + * size: total amount of allocated space. + * used: total number of allocated spaces used. + */ +#ifndef _di_int16_tss_ + typedef struct { + f_int16_ts *array; + + f_array_length size; + f_array_length used; + } f_int16_tss; + + #define f_int16_tss_initialize { 0, 0, 0 } + + #define f_macro_int16_tss_clear(numbers) f_macro_memory_structures_clear(numbers) + + #define f_macro_int16_tss_new(status, numbers, length) f_macro_memory_structures_new(status, numbers, int16_t, f_int16_ts, length) + + #define f_macro_int16_tss_delete(status, numbers) f_macro_memory_structures_delete(status, numbers, int16_t, f_int16_ts) + #define f_macro_int16_tss_destroy(status, numbers) f_macro_memory_structures_destroy(status, numbers, int16_t, f_int16_ts) + + #define f_macro_int16_tss_delete_simple(numbers) f_macro_memory_structures_delete_simple(numbers, int16_t, f_int16_ts) + #define f_macro_int16_tss_destroy_simple(numbers) f_macro_memory_structures_destroy_simple(numbers, int16_t, f_int16_ts) + + #define f_macro_int16_tss_resize(status, numbers, new_length) f_macro_memory_structures_resize(status, numbers, int16_t, f_int16_ts, new_length, f_array_length) + #define f_macro_int16_tss_adjust(status, numbers, new_length) f_macro_memory_structures_adjust(status, numbers, int16_t, f_int16_ts, new_length, f_array_length) +#endif // _di_int16_tss_ + +/** + * An array of array uint16_t. + * + * array: An array of uint16_t. + * size: Total amount of allocated space. + * used: Total number of allocated spaces used. + */ +#ifndef _di_uint16_ts_ + typedef struct { + uint16_t *array; + + f_array_length size; + f_array_length used; + } f_uint16_ts; + + #define f_uint16_ts_initialize { 0, 0, 0 } + + #define f_macro_uint16_ts_clear(numbers) f_macro_memory_structure_clear(numbers) + + #define f_macro_uint16_ts_new(status, numbers, length) f_macro_memory_structure_new(status, numbers, uint16_t, length) + + #define f_macro_uint16_ts_delete(status, numbers) f_macro_memory_structure_delete(status, numbers, uint16_t) + #define f_macro_uint16_ts_destroy(status, numbers) f_macro_memory_structure_destroy(status, numbers, uint16_t) + + #define f_macro_uint16_ts_delete_simple(numbers) f_macro_memory_structure_delete_simple(numbers, uint16_t) + #define f_macro_uint16_ts_destroy_simple(numbers) f_macro_memory_structure_destroy_simple(numbers, uint16_t) + + #define f_macro_uint16_ts_resize(status, numbers, new_length) f_macro_memory_structure_resize(status, numbers, uint16_t, new_length) + #define f_macro_uint16_ts_adjust(status, numbers, new_length) f_macro_memory_structure_adjust(status, numbers, uint16_t, new_length) +#endif // _di_uint16_ts_ + +/** + * An array of an array of array uint16_t. + * + * array: the array of an array of array uint16_t. + * size: total amount of allocated space. + * used: total number of allocated spaces used. + */ +#ifndef _di_uint16_tss_ + typedef struct { + f_uint16_ts *array; + + f_array_length size; + f_array_length used; + } f_uint16_tss; + + #define f_uint16_tss_initialize { 0, 0, 0 } + + #define f_macro_uint16_tss_clear(numbers) f_macro_memory_structures_clear(numbers) + + #define f_macro_uint16_tss_new(status, numbers, length) f_macro_memory_structures_new(status, numbers, uint16_t, f_uint16_ts, length) + + #define f_macro_uint16_tss_delete(status, numbers) f_macro_memory_structures_delete(status, numbers, uint16_t, f_uint16_ts) + #define f_macro_uint16_tss_destroy(status, numbers) f_macro_memory_structures_destroy(status, numbers, uint16_t, f_uint16_ts) + + #define f_macro_uint16_tss_delete_simple(numbers) f_macro_memory_structures_delete_simple(numbers, uint16_t, f_uint16_ts) + #define f_macro_uint16_tss_destroy_simple(numbers) f_macro_memory_structures_destroy_simple(numbers, uint16_t, f_uint16_ts) + + #define f_macro_uint16_tss_resize(status, numbers, new_length) f_macro_memory_structures_resize(status, numbers, uint16_t, f_uint16_ts, new_length, f_array_length) + #define f_macro_uint16_tss_adjust(status, numbers, new_length) f_macro_memory_structures_adjust(status, numbers, uint16_t, f_uint16_ts, new_length, f_array_length) +#endif // _di_uint16_tss_ + +/** + * An array of array int32_t. + * + * array: An array of int32_t. + * size: Total amount of allocated space. + * used: Total number of allocated spaces used. + */ +#ifndef _di_int32_ts_ + typedef struct { + int32_t *array; + + f_array_length size; + f_array_length used; + } f_int32_ts; + + #define f_int32_ts_initialize { 0, 0, 0 } + + #define f_macro_int32_ts_clear(numbers) f_macro_memory_structure_clear(numbers) + + #define f_macro_int32_ts_new(status, numbers, length) f_macro_memory_structure_new(status, numbers, int32_t, length) + + #define f_macro_int32_ts_delete(status, numbers) f_macro_memory_structure_delete(status, numbers, int32_t) + #define f_macro_int32_ts_destroy(status, numbers) f_macro_memory_structure_destroy(status, numbers, int32_t) + + #define f_macro_int32_ts_delete_simple(numbers) f_macro_memory_structure_delete_simple(numbers, int32_t) + #define f_macro_int32_ts_destroy_simple(numbers) f_macro_memory_structure_destroy_simple(numbers, int32_t) + + #define f_macro_int32_ts_resize(status, numbers, new_length) f_macro_memory_structure_resize(status, numbers, int32_t, new_length) + #define f_macro_int32_ts_adjust(status, numbers, new_length) f_macro_memory_structure_adjust(status, numbers, int32_t, new_length) +#endif // _di_int32_ts_ + +/** + * An array of an array of array int32_t. + * + * array: the array of an array of array int32_t. + * size: total amount of allocated space. + * used: total number of allocated spaces used. + */ +#ifndef _di_int32_tss_ + typedef struct { + f_int32_ts *array; + + f_array_length size; + f_array_length used; + } f_int32_tss; + + #define f_int32_tss_initialize { 0, 0, 0 } + + #define f_macro_int32_tss_clear(numbers) f_macro_memory_structures_clear(numbers) + + #define f_macro_int32_tss_new(status, numbers, length) f_macro_memory_structures_new(status, numbers, int32_t, f_int32_ts, length) + + #define f_macro_int32_tss_delete(status, numbers) f_macro_memory_structures_delete(status, numbers, int32_t, f_int32_ts) + #define f_macro_int32_tss_destroy(status, numbers) f_macro_memory_structures_destroy(status, numbers, int32_t, f_int32_ts) + + #define f_macro_int32_tss_delete_simple(numbers) f_macro_memory_structures_delete_simple(numbers, int32_t, f_int32_ts) + #define f_macro_int32_tss_destroy_simple(numbers) f_macro_memory_structures_destroy_simple(numbers, int32_t, f_int32_ts) + + #define f_macro_int32_tss_resize(status, numbers, new_length) f_macro_memory_structures_resize(status, numbers, int32_t, f_int32_ts, new_length, f_array_length) + #define f_macro_int32_tss_adjust(status, numbers, new_length) f_macro_memory_structures_adjust(status, numbers, int32_t, f_int32_ts, new_length, f_array_length) +#endif // _di_int32_tss_ + +/** + * An array of array uint32_t. + * + * array: An array of uint32_t. + * size: Total amount of allocated space. + * used: Total number of allocated spaces used. + */ +#ifndef _di_uint32_ts_ + typedef struct { + uint32_t *array; + + f_array_length size; + f_array_length used; + } f_uint32_ts; + + #define f_uint32_ts_initialize { 0, 0, 0 } + + #define f_macro_uint32_ts_clear(numbers) f_macro_memory_structure_clear(numbers) + + #define f_macro_uint32_ts_new(status, numbers, length) f_macro_memory_structure_new(status, numbers, uint32_t, length) + + #define f_macro_uint32_ts_delete(status, numbers) f_macro_memory_structure_delete(status, numbers, uint32_t) + #define f_macro_uint32_ts_destroy(status, numbers) f_macro_memory_structure_destroy(status, numbers, uint32_t) + + #define f_macro_uint32_ts_delete_simple(numbers) f_macro_memory_structure_delete_simple(numbers, uint32_t) + #define f_macro_uint32_ts_destroy_simple(numbers) f_macro_memory_structure_destroy_simple(numbers, uint32_t) + + #define f_macro_uint32_ts_resize(status, numbers, new_length) f_macro_memory_structure_resize(status, numbers, uint32_t, new_length) + #define f_macro_uint32_ts_adjust(status, numbers, new_length) f_macro_memory_structure_adjust(status, numbers, uint32_t, new_length) +#endif // _di_uint32_ts_ + +/** + * An array of an array of array uint32_t. + * + * array: the array of an array of array uint32_t. + * size: total amount of allocated space. + * used: total number of allocated spaces used. + */ +#ifndef _di_uint32_tss_ + typedef struct { + f_uint32_ts *array; + + f_array_length size; + f_array_length used; + } f_uint32_tss; + + #define f_uint32_tss_initialize { 0, 0, 0 } + + #define f_macro_uint32_tss_clear(numbers) f_macro_memory_structures_clear(numbers) + + #define f_macro_uint32_tss_new(status, numbers, length) f_macro_memory_structures_new(status, numbers, uint32_t, f_uint32_ts, length) + + #define f_macro_uint32_tss_delete(status, numbers) f_macro_memory_structures_delete(status, numbers, uint32_t, f_uint32_ts) + #define f_macro_uint32_tss_destroy(status, numbers) f_macro_memory_structures_destroy(status, numbers, uint32_t, f_uint32_ts) + + #define f_macro_uint32_tss_delete_simple(numbers) f_macro_memory_structures_delete_simple(numbers, uint32_t, f_uint32_ts) + #define f_macro_uint32_tss_destroy_simple(numbers) f_macro_memory_structures_destroy_simple(numbers, uint32_t, f_uint32_ts) + + #define f_macro_uint32_tss_resize(status, numbers, new_length) f_macro_memory_structures_resize(status, numbers, uint32_t, f_uint32_ts, new_length, f_array_length) + #define f_macro_uint32_tss_adjust(status, numbers, new_length) f_macro_memory_structures_adjust(status, numbers, uint32_t, f_uint32_ts, new_length, f_array_length) +#endif // _di_uint32_tss_ + +/** + * An array of array int64_t. + * + * array: An array of int64_t. + * size: Total amount of allocated space. + * used: Total number of allocated spaces used. + */ +#ifndef _di_int64_ts_ + typedef struct { + int64_t *array; + + f_array_length size; + f_array_length used; + } f_int64_ts; + + #define f_int64_ts_initialize { 0, 0, 0 } + + #define f_macro_int64_ts_clear(numbers) f_macro_memory_structure_clear(numbers) + + #define f_macro_int64_ts_new(status, numbers, length) f_macro_memory_structure_new(status, numbers, int64_t, length) + + #define f_macro_int64_ts_delete(status, numbers) f_macro_memory_structure_delete(status, numbers, int64_t) + #define f_macro_int64_ts_destroy(status, numbers) f_macro_memory_structure_destroy(status, numbers, int64_t) + + #define f_macro_int64_ts_delete_simple(numbers) f_macro_memory_structure_delete_simple(numbers, int64_t) + #define f_macro_int64_ts_destroy_simple(numbers) f_macro_memory_structure_destroy_simple(numbers, int64_t) + + #define f_macro_int64_ts_resize(status, numbers, new_length) f_macro_memory_structure_resize(status, numbers, int64_t, new_length) + #define f_macro_int64_ts_adjust(status, numbers, new_length) f_macro_memory_structure_adjust(status, numbers, int64_t, new_length) +#endif // _di_int64_ts_ + +/** + * An array of an array of array int64_t. + * + * array: the array of an array of array int64_t. + * size: total amount of allocated space. + * used: total number of allocated spaces used. + */ +#ifndef _di_int64_tss_ + typedef struct { + f_int64_ts *array; + + f_array_length size; + f_array_length used; + } f_int64_tss; + + #define f_int64_tss_initialize { 0, 0, 0 } + + #define f_macro_int64_tss_clear(numbers) f_macro_memory_structures_clear(numbers) + + #define f_macro_int64_tss_new(status, numbers, length) f_macro_memory_structures_new(status, numbers, int64_t, f_int64_ts, length) + + #define f_macro_int64_tss_delete(status, numbers) f_macro_memory_structures_delete(status, numbers, int64_t, f_int64_ts) + #define f_macro_int64_tss_destroy(status, numbers) f_macro_memory_structures_destroy(status, numbers, int64_t, f_int64_ts) + + #define f_macro_int64_tss_delete_simple(numbers) f_macro_memory_structures_delete_simple(numbers, int64_t, f_int64_ts) + #define f_macro_int64_tss_destroy_simple(numbers) f_macro_memory_structures_destroy_simple(numbers, int64_t, f_int64_ts) + + #define f_macro_int64_tss_resize(status, numbers, new_length) f_macro_memory_structures_resize(status, numbers, int64_t, f_int64_ts, new_length, f_array_length) + #define f_macro_int64_tss_adjust(status, numbers, new_length) f_macro_memory_structures_adjust(status, numbers, int64_t, f_int64_ts, new_length, f_array_length) +#endif // _di_int64_tss_ + +/** + * An array of array uint64_t. + * + * array: An array of uint64_t. + * size: Total amount of allocated space. + * used: Total number of allocated spaces used. + */ +#ifndef _di_uint64_ts_ + typedef struct { + uint64_t *array; + + f_array_length size; + f_array_length used; + } f_uint64_ts; + + #define f_uint64_ts_initialize { 0, 0, 0 } + + #define f_macro_uint64_ts_clear(numbers) f_macro_memory_structure_clear(numbers) + + #define f_macro_uint64_ts_new(status, numbers, length) f_macro_memory_structure_new(status, numbers, uint64_t, length) + + #define f_macro_uint64_ts_delete(status, numbers) f_macro_memory_structure_delete(status, numbers, uint64_t) + #define f_macro_uint64_ts_destroy(status, numbers) f_macro_memory_structure_destroy(status, numbers, uint64_t) + + #define f_macro_uint64_ts_delete_simple(numbers) f_macro_memory_structure_delete_simple(numbers, uint64_t) + #define f_macro_uint64_ts_destroy_simple(numbers) f_macro_memory_structure_destroy_simple(numbers, uint64_t) + + #define f_macro_uint64_ts_resize(status, numbers, new_length) f_macro_memory_structure_resize(status, numbers, uint64_t, new_length) + #define f_macro_uint64_ts_adjust(status, numbers, new_length) f_macro_memory_structure_adjust(status, numbers, uint64_t, new_length) +#endif // _di_uint64_ts_ + +/** + * An array of an array of array uint64_t. + * + * array: the array of an array of array uint64_t. + * size: total amount of allocated space. + * used: total number of allocated spaces used. + */ +#ifndef _di_uint64_tss_ + typedef struct { + f_uint64_ts *array; + + f_array_length size; + f_array_length used; + } f_uint64_tss; + + #define f_uint64_tss_initialize { 0, 0, 0 } + + #define f_macro_uint64_tss_clear(numbers) f_macro_memory_structures_clear(numbers) + + #define f_macro_uint64_tss_new(status, numbers, length) f_macro_memory_structures_new(status, numbers, uint64_t, f_uint64_ts, length) + + #define f_macro_uint64_tss_delete(status, numbers) f_macro_memory_structures_delete(status, numbers, uint64_t, f_uint64_ts) + #define f_macro_uint64_tss_destroy(status, numbers) f_macro_memory_structures_destroy(status, numbers, uint64_t, f_uint64_ts) + + #define f_macro_uint64_tss_delete_simple(numbers) f_macro_memory_structures_delete_simple(numbers, uint64_t, f_uint64_ts) + #define f_macro_uint64_tss_destroy_simple(numbers) f_macro_memory_structures_destroy_simple(numbers, uint64_t, f_uint64_ts) + + #define f_macro_uint64_tss_resize(status, numbers, new_length) f_macro_memory_structures_resize(status, numbers, uint64_t, f_uint64_ts, new_length, f_array_length) + #define f_macro_uint64_tss_adjust(status, numbers, new_length) f_macro_memory_structures_adjust(status, numbers, uint64_t, f_uint64_ts, new_length, f_array_length) +#endif // _di_uint64_tss_ + +#ifndef __SIZEOF_INT128__ + /** + * An array of array __int128_t. + * + * array: An array of __int128_t. + * size: Total amount of allocated space. + * used: Total number of allocated spaces used. + */ + #ifndef _di_int128_ts_ + typedef struct { + __int128_t *array; + + f_array_length size; + f_array_length used; + } f_int128_ts; + + #define f_int128_ts_initialize { 0, 0, 0 } + + #define f_macro_int128_ts_clear(numbers) f_macro_memory_structure_clear(numbers) + + #define f_macro_int128_ts_new(status, numbers, length) f_macro_memory_structure_new(status, numbers, __int128_t, length) + + #define f_macro_int128_ts_delete(status, numbers) f_macro_memory_structure_delete(status, numbers, __int128_t) + #define f_macro_int128_ts_destroy(status, numbers) f_macro_memory_structure_destroy(status, numbers, __int128_t) + + #define f_macro_int128_ts_delete_simple(numbers) f_macro_memory_structure_delete_simple(numbers, __int128_t) + #define f_macro_int128_ts_destroy_simple(numbers) f_macro_memory_structure_destroy_simple(numbers, __int128_t) + + #define f_macro_int128_ts_resize(status, numbers, new_length) f_macro_memory_structure_resize(status, numbers, __int128_t, new_length) + #define f_macro_int128_ts_adjust(status, numbers, new_length) f_macro_memory_structure_adjust(status, numbers, __int128_t, new_length) + #endif // _di_int128_ts_ + + /** + * An array of an array of array __int128_t. + * + * array: the array of an array of array __int128_t. + * size: total amount of allocated space. + * used: total number of allocated spaces used. + */ + #ifndef _di_int128_tss_ + typedef struct { + f_int128_ts *array; + + f_array_length size; + f_array_length used; + } f_int128_tss; + + #define f_int128_tss_initialize { 0, 0, 0 } + + #define f_macro_int128_tss_clear(numbers) f_macro_memory_structures_clear(numbers) + + #define f_macro_int128_tss_new(status, numbers, length) f_macro_memory_structures_new(status, numbers, __int128_t, f_int128_ts, length) + + #define f_macro_int128_tss_delete(status, numbers) f_macro_memory_structures_delete(status, numbers, __int128_t, f_int128_ts) + #define f_macro_int128_tss_destroy(status, numbers) f_macro_memory_structures_destroy(status, numbers, __int128_t, f_int128_ts) + + #define f_macro_int128_tss_delete_simple(numbers) f_macro_memory_structures_delete_simple(numbers, __int128_t, f_int128_ts) + #define f_macro_int128_tss_destroy_simple(numbers) f_macro_memory_structures_destroy_simple(numbers, __int128_t, f_int128_ts) + + #define f_macro_int128_tss_resize(status, numbers, new_length) f_macro_memory_structures_resize(status, numbers, __int128_t, f_int128_ts, new_length, f_array_length) + #define f_macro_int128_tss_adjust(status, numbers, new_length) f_macro_memory_structures_adjust(status, numbers, __int128_t, f_int128_ts, new_length, f_array_length) + #endif // _di_int128_tss_ + + /** + * An array of array __uint128_t. + * + * array: An array of __uint128_t. + * size: Total amount of allocated space. + * used: Total number of allocated spaces used. + */ + #ifndef _di_uint128_ts_ + typedef struct { + __uint128_t *array; + + f_array_length size; + f_array_length used; + } f_uint128_ts; + + #define f_uint128_ts_initialize { 0, 0, 0 } + + #define f_macro_uint128_ts_clear(numbers) f_macro_memory_structure_clear(numbers) + + #define f_macro_uint128_ts_new(status, numbers, length) f_macro_memory_structure_new(status, numbers, __uint128_t, length) + + #define f_macro_uint128_ts_delete(status, numbers) f_macro_memory_structure_delete(status, numbers, __uint128_t) + #define f_macro_uint128_ts_destroy(status, numbers) f_macro_memory_structure_destroy(status, numbers, __uint128_t) + + #define f_macro_uint128_ts_delete_simple(numbers) f_macro_memory_structure_delete_simple(numbers, __uint128_t) + #define f_macro_uint128_ts_destroy_simple(numbers) f_macro_memory_structure_destroy_simple(numbers, __uint128_t) + + #define f_macro_uint128_ts_resize(status, numbers, new_length) f_macro_memory_structure_resize(status, numbers, __uint128_t, new_length) + #define f_macro_uint128_ts_adjust(status, numbers, new_length) f_macro_memory_structure_adjust(status, numbers, __uint128_t, new_length) + #endif // _di_uint128_ts_ + + /** + * An array of an array of array __uint128_t. + * + * array: the array of an array of array __uint128_t. + * size: total amount of allocated space. + * used: total number of allocated spaces used. + */ + #ifndef _di_uint128_tss_ + typedef struct { + f_uint128_ts *array; + + f_array_length size; + f_array_length used; + } f_uint128_tss; + + #define f_uint128_tss_initialize { 0, 0, 0 } + + #define f_macro_uint128_tss_clear(numbers) f_macro_memory_structures_clear(numbers) + + #define f_macro_uint128_tss_new(status, numbers, length) f_macro_memory_structures_new(status, numbers, __uint128_t, f_uint128_ts, length) + + #define f_macro_uint128_tss_delete(status, numbers) f_macro_memory_structures_delete(status, numbers, __uint128_t, f_uint128_ts) + #define f_macro_uint128_tss_destroy(status, numbers) f_macro_memory_structures_destroy(status, numbers, __uint128_t, f_uint128_ts) + + #define f_macro_uint128_tss_delete_simple(numbers) f_macro_memory_structures_delete_simple(numbers, __uint128_t, f_uint128_ts) + #define f_macro_uint128_tss_destroy_simple(numbers) f_macro_memory_structures_destroy_simple(numbers, __uint128_t, f_uint128_ts) + + #define f_macro_uint128_tss_resize(status, numbers, new_length) f_macro_memory_structures_resize(status, numbers, __uint128_t, f_uint128_ts, new_length, f_array_length) + #define f_macro_uint128_tss_adjust(status, numbers, new_length) f_macro_memory_structures_adjust(status, numbers, __uint128_t, f_uint128_ts, new_length, f_array_length) + #endif // _di_uint128_tss_ +#else + /** + * An array of array int64_t acting in place of __int128_t when 128 is not supported. + * + * array: An array of int64_t acting in place of __int128_t when 128 is not supported. + * size: Total amount of allocated space. + * used: Total number of allocated spaces used. + */ + #ifndef _di_int128_ts_ + typedef struct { + int64_t *array; + + f_array_length size; + f_array_length used; + } f_int128_ts; + + #define f_int128_ts_initialize { 0, 0, 0 } + + #define f_macro_int128_ts_clear(numbers) f_macro_memory_structure_clear(numbers) + + #define f_macro_int128_ts_new(status, numbers, length) f_macro_memory_structure_new(status, numbers, int64_t, length) + + #define f_macro_int128_ts_delete(status, numbers) f_macro_memory_structure_delete(status, numbers, int64_t) + #define f_macro_int128_ts_destroy(status, numbers) f_macro_memory_structure_destroy(status, numbers, int64_t) + + #define f_macro_int128_ts_delete_simple(numbers) f_macro_memory_structure_delete_simple(numbers, int64_t) + #define f_macro_int128_ts_destroy_simple(numbers) f_macro_memory_structure_destroy_simple(numbers, int64_t) + + #define f_macro_int128_ts_resize(status, numbers, new_length) f_macro_memory_structure_resize(status, numbers, int64_t, new_length) + #define f_macro_int128_ts_adjust(status, numbers, new_length) f_macro_memory_structure_adjust(status, numbers, int64_t, new_length) + #endif // _di_int128_ts_ + + /** + * An array of an array of array int64_t acting in place of __int128_t when 128 is not supported. + * + * array: the array of an array of array int64_t acting in place of __int128_t when 128 is not supported. + * size: total amount of allocated space. + * used: total number of allocated spaces used. + */ + #ifndef _di_int128_tss_ + typedef struct { + f_int128_ts *array; + + f_array_length size; + f_array_length used; + } f_int128_tss; + + #define f_int128_tss_initialize { 0, 0, 0 } + + #define f_macro_int128_tss_clear(numbers) f_macro_memory_structures_clear(numbers) + + #define f_macro_int128_tss_new(status, numbers, length) f_macro_memory_structures_new(status, numbers, int64_t, f_int128_ts, length) + + #define f_macro_int128_tss_delete(status, numbers) f_macro_memory_structures_delete(status, numbers, int64_t, f_int128_ts) + #define f_macro_int128_tss_destroy(status, numbers) f_macro_memory_structures_destroy(status, numbers, int64_t, f_int128_ts) + + #define f_macro_int128_tss_delete_simple(numbers) f_macro_memory_structures_delete_simple(numbers, int64_t, f_int128_ts) + #define f_macro_int128_tss_destroy_simple(numbers) f_macro_memory_structures_destroy_simple(numbers, int64_t, f_int128_ts) + + #define f_macro_int128_tss_resize(status, numbers, new_length) f_macro_memory_structures_resize(status, numbers, int64_t, f_int128_ts, new_length, f_array_length) + #define f_macro_int128_tss_adjust(status, numbers, new_length) f_macro_memory_structures_adjust(status, numbers, int64_t, f_int128_ts, new_length, f_array_length) + #endif // _di_int128_tss_ + + /** + * An array of array uint64_t acting in place of __uint128_t when 128 is not supported. + * + * array: An array of uint64_t acting in place of __uint128_t when 128 is not supported. + * size: Total amount of allocated space. + * used: Total number of allocated spaces used. + */ + #ifndef _di_uint128_ts_ + typedef struct { + uint64_t *array; + + f_array_length size; + f_array_length used; + } f_uint128_ts; + + #define f_uint128_ts_initialize { 0, 0, 0 } + + #define f_macro_uint128_ts_clear(numbers) f_macro_memory_structure_clear(numbers) + + #define f_macro_uint128_ts_new(status, numbers, length) f_macro_memory_structure_new(status, numbers, uint64_t, length) + + #define f_macro_uint128_ts_delete(status, numbers) f_macro_memory_structure_delete(status, numbers, uint64_t) + #define f_macro_uint128_ts_destroy(status, numbers) f_macro_memory_structure_destroy(status, numbers, uint64_t) + + #define f_macro_uint128_ts_delete_simple(numbers) f_macro_memory_structure_delete_simple(numbers, uint64_t) + #define f_macro_uint128_ts_destroy_simple(numbers) f_macro_memory_structure_destroy_simple(numbers, uint64_t) + + #define f_macro_uint128_ts_resize(status, numbers, new_length) f_macro_memory_structure_resize(status, numbers, uint64_t, new_length) + #define f_macro_uint128_ts_adjust(status, numbers, new_length) f_macro_memory_structure_adjust(status, numbers, uint64_t, new_length) + #endif // _di_uint128_ts_ + + /** + * An array of an array of array uint64_t acting in place of __uint128_t when 128 is not supported. + * + * array: the array of an array of array uint64_t acting in place of __uint128_t when 128 is not supported. + * size: total amount of allocated space. + * used: total number of allocated spaces used. + */ + #ifndef _di_uint128_tss_ + typedef struct { + f_uint128_ts *array; + + f_array_length size; + f_array_length used; + } f_uint128_tss; + + #define f_uint128_tss_initialize { 0, 0, 0 } + + #define f_macro_uint128_tss_clear(numbers) f_macro_memory_structures_clear(numbers) + + #define f_macro_uint128_tss_new(status, numbers, length) f_macro_memory_structures_new(status, numbers, uint64_t, f_uint128_ts, length) + + #define f_macro_uint128_tss_delete(status, numbers) f_macro_memory_structures_delete(status, numbers, uint64_t, f_uint128_ts) + #define f_macro_uint128_tss_destroy(status, numbers) f_macro_memory_structures_destroy(status, numbers, uint64_t, f_uint128_ts) + + #define f_macro_uint128_tss_delete_simple(numbers) f_macro_memory_structures_delete_simple(numbers, uint64_t, f_uint128_ts) + #define f_macro_uint128_tss_destroy_simple(numbers) f_macro_memory_structures_destroy_simple(numbers, uint64_t, f_uint128_ts) + + #define f_macro_uint128_tss_resize(status, numbers, new_length) f_macro_memory_structures_resize(status, numbers, uint64_t, f_uint128_ts, new_length, f_array_length) + #define f_macro_uint128_tss_adjust(status, numbers, new_length) f_macro_memory_structures_adjust(status, numbers, uint64_t, f_uint128_ts, new_length, f_array_length) + #endif // _di_uint128_tss_ +#endif // __SIZEOF_INT128__ + #ifdef __cplusplus } // extern "C" #endif