Patent ID: 8275821

Claim:
A method for generating a transcendental value, comprising: receiving an input containing an input value and an opcode; determining, via one or more processors, whether the opcode corresponds to a trigonometric operation or a power-of-two operation; calculating, via the one or more processors, at least a fractional value from the input value; determining, via the one or more processors, at least one of a shifted fractional value and a constant value, wherein the constant value is determined based on at least a first portion of the fractional value, wherein the shifted fractional value is produced by shifting a second portion of the fractional value, wherein the second portion of the fractional value is different from the first portion of the fractional value, and wherein the first and second portions of the fractional value each include one or more, but not all, bits of the fractional value; generating, via the one or more processors, the transcendental value based on at least the fractional value by summing at least the second portion of the fractional value with at least one of the shifted fractional value and the constant value; if the opcode is determined to correspond to the power-of-two operation: calculating an integer value from the input value, determining based on the input value whether to perform complementing of the integer value and the fractional value, and providing the transcendental value as a power-of-two value in response to the input; and if the opcode is determined to correspond to the trigonometric operation: determining, based on the fractional value, whether to perform at least one of inverting the fractional value and negating the transcendental value, and providing the transcendental value as a trigonometric value in response to the input.