Patent ID: 11928465
Assignee: nan
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 17:
18. A method for adaptively calculating an elementary function with respective to an input value; the method comprising:
identifying, by an accelerator circuit from an instruction register and a data register, the elementary function and the input value;
determining whether the input value is a fixed-point input value or a floating-point input value;
responsive to determining that the input value is the fixed-point input value,
determining a type of the elementary function;
configuring a reconfigurable inner stage of a successive cumulative rotation circuit to a configuration for evaluating the type of the elementary function; and
calculating an evaluation of the elementary function using the reconfigurable inner stage performing a successive cumulative rotation recurrence; and
responsive to determining that the input value is the floating-point input value,
determining whether the input value belongs to a small value range;
responsive to determining that the input value is outside the small value range, convert the floating-point input value into a fixed-point number;
configuring the reconfigurable inner stage to the configuration for evaluating the type of the elementary function; and
calculating the evaluation of the elementary function using the reconfigurable inner stage performing the successive cumulative rotation recurrence; and
responsive to determining that the floating-point input value is in the small value range, calculating an approximation of the elementary function with respect to the input value.