- c. there are a total of 12 combinations of 2 input types and 6 fixed-point types.
- d. various variables declared as macros for a total of 12 cases, and operation functions that can be used for each case are classified.
- e. functions that perform operations related to fixed-point exist in common, but since different functions must be used according to the number of bits constituting the fixed-point, the above code was implemented to improve readability.
- test.c
- a. it is a .c file that can perform various operations using functions defined for 12 cases that exist by input format and fixed-point format.
- b. if the input is a longlong type, even if the same multiplication and division operation is performed, several similar functions with different performances are defined.
- c. it is necessary to compare which functions are advantageous in terms of call speed in certain situations according to the fixed-point format(input).