摘要:
An adder and a method for calculating 2 n + x are provided, where x is a variable input expressed in a floating point format and n is an integer. The adder comprises: a first path configured to calculate 2 n + x for x n -1 ≤ |x| n +1 ; a second path configured to calculate 2 n + x for |x| n ; a third path configured to calculate 2 n + x for |x| ≥ 2 n ; and selection logic configured to cause the adder to output a result from one of the first, second, and third paths in dependence on the values of x and n.
摘要:
Adder circuits and associated methods are disclosed, for processing a set of at least three floating-point numbers to be added together. The method comprises identifying (606), from among the at least three numbers, at least two numbers that have the same sign - that is, at least two numbers that are both positive or both negative. The identified at least two numbers are added together (608) using one or more same-sign floating-point adders (120, 220a, 320, 420). A same-sign floating-point adder comprises circuitry configured to add together floating-point numbers having the same sign and does not include circuitry configured to add together numbers having different signs.
摘要:
In one embodiment of the invention, a processor including a storage location configured to store a set of source packed-data operands, each of the operands having a plurality of packed-data elements that are positive or negative according to an immediate bit value within one of the operands. The processor also including: a decoder to decode an instruction requiring an input of a plurality of source operands, and an execution unit to receive the decoded instructions and to generate a result that is a sum of the source operands. In one embodiment, the result is stored back into one of the source operands or the result is stored into an operand that is independent of the source operands.
摘要:
In several embodiments, vector extensions to an instruction set architecture include instructions to perform saturated signed and unsigned integer additions. In one embodiment, a vector signed integer add with signed saturation is provided. In one embodiment, a vector unsigned integer add with unsigned saturation is provided. In one embodiment, packed doubleword and quadword integers are supported for both signed and unsigned instructions.
摘要:
A computing apparatus and method for proof of work, and a chip are provided, to improve the computing efficiency of proof of work. The computing apparatus comprises: N selectors, respectively configured to obtain N groups of first input quantities; and N first compressors, respectively connected to the N selectors, and respectively configured to receive the N groups of first input quantities sent by the N selectors, and to receive a same second input quantity, wherein each first compressor is configured to sequentially perform compression processing on the second input quantity and each first input quantity in one group of first input quantities, and compression processing results of the N first compressors each are used to obtain a proof of work result.
摘要:
A floating point number calculation circuit (100) and a floating point number calculation method are disclosed. A splitting circuit (102) included in the floating point number calculation circuit (100) splits a mantissa part of a first floating point number and a mantissa part of a second floating point number. An exponential processing circuit (104) obtains a second number of shifted bits of each mantissa part obtained after splitting. A calculation circuit (105) calculates a product of the mantissa part of the first floating point number and the mantissa part of the second floating point number based on each mantissa part obtained after splitting and the second number of shifted bits of each mantissa part obtained after splitting. The floating point number calculation circuit (100) can split a large bit-width floating point number into small bit-width floating point numbers, so that a small bit-width multiplier is used to calculate the large bit-width floating point number. The floating point number calculation circuit (100) provided in this application has small timing overheads and low hardware design costs. Therefore, calculation performance of the multiplier is appropriately used.