A method of entropy coding of coding symbols, the method comprising: applying context-adaptive arithmetic encoding or decoding to a current bin of a binary data of a current coding symbol according to a current probability for a binary value of the current bin and a current range associated with a current state of the context-adaptive arithmetic encoding or decoding, wherein the current probability is generated according to one or more previously coded symbols before the current coding symbol, and is represented by k-bit values; deriving a least-probably-symbol, LPS, probability index corresponding to an inverted current probability or to the current probability depending on whether the current probability for the binary value of the current bin is greater than or equal to 2 k-1, wherein the inverted current probability is equal to 2 k minus 1 minus the current probability, wherein if the current probability for the binary value of the current bin is greater than or equal to 2 k-1, an LPS probability is set equal to the inverted current probability and otherwise, the LPS probability is set equal to the current probability, and wherein the LPS probability index indicates one probability interval containing the current probability; and deriving a range index for identifying one range interval containing the current range; wherein in case the current probability for the binary value of the current bin is greater than or equal to 2 k-1 the LPS probability index is derived using operations comprising right-shifting the current probability by k-n-1 bits, and the range index is derived by right-shifting the current range by q-m bits, wherein n, q and m are positive integers, and q is greater than m; deriving an LPS range for encoding or decoding a binary value of the current bin; characterized in that the LPS range is derived by multiplying the LPS probability index and the range index or by multiplying the LPS probability index plus 1 and the range index to obtain a multiplication result, and by right-shifting the multiplication result by x bits or by right-shifting the multiplication result plus an offset by x bits or by right-shifting the multiplication result by x bits and then plus the offset, wherein x is a positive integer, and the offset is a positive integer or a value corresponding to the range index or the current range. applying context-adaptive arithmetic encoding or decoding to a current bin of a binary data of a current coding symbol according to a current probability for a binary value of the current bin and a current range associated with a current state of the context-adaptive arithmetic encoding or decoding, wherein the current probability is generated according to one or more previously coded symbols before the current coding symbol, and is represented by k-bit values; deriving a least-probably-symbol, LPS, probability index corresponding to an inverted current probability or to the current probability depending on whether the current probability for the binary value of the current bin is greater than or equal to 2 k-1, wherein the inverted current probability is equal to 2 k minus 1 minus the current probability, wherein if the current probability for the binary value of the current bin is greater than or equal to 2 k-1, an LPS probability is set equal to the inverted current probability and otherwise, the LPS probability is set equal to the current probability, and wherein the LPS probability index indicates one probability interval containing the current probability; and deriving a range index for identifying one range interval containing the current range; wherein in case the current probability for the binary value of the current bin is greater than or equal to 2 k-1 the LPS probability index is derived using operations comprising right-shifting the current probability by k-n-1 bits, and the range index is derived by right-shifting the current range by q-m bits, wherein n, q and m are positive integers, and q is greater than m; deriving an LPS range for encoding or decoding a binary value of the current bin; characterized in that the LPS range is derived by multiplying the LPS probability index and the range index or by multiplying the LPS probability index plus 1 and the range index to obtain a multiplication result, and by right-shifting the multiplication result by x bits or by right-shifting the multiplication result plus an offset by x bits or by right-shifting the multiplication result by x bits and then plus the offset, wherein x is a positive integer, and the offset is a positive integer or a value corresponding to the range index or the current range.