Revision 1654b2d6 target-arm/helper.c
b/target-arm/helper.c | ||
---|---|---|
1908 | 1908 |
|
1909 | 1909 |
/* Signed saturating arithmetic. */ |
1910 | 1910 |
|
1911 |
/* Perform 16-bit signed satruating addition. */
|
|
1911 |
/* Perform 16-bit signed saturating addition. */
|
|
1912 | 1912 |
static inline uint16_t add16_sat(uint16_t a, uint16_t b) |
1913 | 1913 |
{ |
1914 | 1914 |
uint16_t res; |
... | ... | |
1923 | 1923 |
return res; |
1924 | 1924 |
} |
1925 | 1925 |
|
1926 |
/* Perform 8-bit signed satruating addition. */
|
|
1926 |
/* Perform 8-bit signed saturating addition. */
|
|
1927 | 1927 |
static inline uint8_t add8_sat(uint8_t a, uint8_t b) |
1928 | 1928 |
{ |
1929 | 1929 |
uint8_t res; |
... | ... | |
1938 | 1938 |
return res; |
1939 | 1939 |
} |
1940 | 1940 |
|
1941 |
/* Perform 16-bit signed satruating subtraction. */
|
|
1941 |
/* Perform 16-bit signed saturating subtraction. */
|
|
1942 | 1942 |
static inline uint16_t sub16_sat(uint16_t a, uint16_t b) |
1943 | 1943 |
{ |
1944 | 1944 |
uint16_t res; |
... | ... | |
1953 | 1953 |
return res; |
1954 | 1954 |
} |
1955 | 1955 |
|
1956 |
/* Perform 8-bit signed satruating subtraction. */
|
|
1956 |
/* Perform 8-bit signed saturating subtraction. */
|
|
1957 | 1957 |
static inline uint8_t sub8_sat(uint8_t a, uint8_t b) |
1958 | 1958 |
{ |
1959 | 1959 |
uint8_t res; |
Also available in: Unified diff