1function codegen_1type 2%CODEGEN_1TYPE create functions for all 13 built-in types 3% 4% This function creates all files of the form GB_type__*.[ch], including 11 5% functions (GB_type__*.c) and one include file, GB_type__include.h. 6 7% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. 8% SPDX-License-Identifier: Apache-2.0 9 10fprintf ('\ntypes:\n') ; 11 12f = fopen ('Generated/GB_type__include.h', 'w') ; 13fprintf (f, '//------------------------------------------------------------------------------\n') ; 14fprintf (f, '// GB_type__include.h: definitions for GB_type__*.c\n') ; 15fprintf (f, '//------------------------------------------------------------------------------\n') ; 16fprintf (f, '\n') ; 17fprintf (f, '// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.\n') ; 18fprintf (f, '// SPDX-License-Identifier: Apache-2.0\n\n') ; 19fprintf (f, '// This file has been automatically generated from Generator/GB_type.h') ; 20fprintf (f, '\n\n') ; 21fclose (f) ; 22 23codegen_1type_template ('bool') ; 24codegen_1type_template ('int8_t') ; 25codegen_1type_template ('int16_t') ; 26codegen_1type_template ('int32_t') ; 27codegen_1type_template ('int64_t') ; 28codegen_1type_template ('uint8_t') ; 29codegen_1type_template ('uint16_t') ; 30codegen_1type_template ('uint32_t') ; 31codegen_1type_template ('uint64_t') ; 32codegen_1type_template ('float') ; 33codegen_1type_template ('double') ; 34codegen_1type_template ('GxB_FC32_t') ; 35codegen_1type_template ('GxB_FC64_t') ; 36 37fprintf ('\n') ; 38 39