Patent ID: 7685221
Filing Date: 2010-03-23
Classification: G06F

Abstract:
1. A circuit for calculating xmody, wherein x and y are binary numbers, and wherein y is an even number, comprising: a power of two calculator adapted to receive signals representing binary number y and to provide signals representing binary numbers r and m, wherein y=r2 a vector splitter adapted to receive signals representing binary number x and signals representing the binary number m, and to provide signals representing binary numbers x[w:m] and x[m−1:0], wherein the binary number x[m−1:0] comprises m least-significant bits of the binary number x and the binary number x[w:m] comprises w−m+1 most-significant bits of the binary number x; and a remainder calculator adapted to receive the signals representing the binary numbers x[w:m] and r, and to provide a binary number x[w:m]modr, wherein the binary number x[w:m]modr is a remainder of a quotient of the binary number x[w:m] divided by the binary number r; wherein the binary number x[w:m]modr comprises most-significant bits of a binary number representing xmody, the binary number x[m−1:0] comprises least-significant bits of the binary number representing xmody, and the circuit outputs the binary number x[w:m]modr to a network communications device to perform at least one of hashing Internet Protocol addresses, masking destination port vectors, and calculating a pointer to a memory location based at least in part on the binary number x[w:m]modr.