{
int64_t svalue = (int64_t)value;
- switch(sign) {
+ switch (sign) {
case SIGNED:
if (svalue > (int64_t)FIXED_SMAX[fmt]) {
*overflow = 1;
{
int64_t svalue = (int64_t)value;
- switch(sign)
+ switch (sign)
{
case SIGNED:
if (svalue > (int64_t)FIXED_SMAX[fmt] ||
simdUnpack(a, a_values, SIMD_FMT_QB, UNSIGNED);
simdUnpack(b, b_values, SIMD_FMT_PH, UNSIGNED);
- switch(mode) {
+ switch (mode) {
case MODE_L:
for (int i = 0; i < nvals; i++)
b_values[i] = dspSaturate(a_values[i + 2] * b_values[i],
simdUnpack(a, a_values, SIMD_FMT_PH, SIGNED);
simdUnpack(b, b_values, SIMD_FMT_PH, SIGNED);
- switch(mode) {
+ switch (mode) {
case MODE_L:
for (int i = 0; i < nvals; i++)
c_values[i] = dspSaturate(a_values[i + 1] * b_values[i + 1] << 1,
simdUnpack(b, b_values, infmt, SIGNED);
for (int i = 0; i < nvals; i++) {
- switch(mode) {
+ switch (mode) {
case MODE_X:
if (a_values[nvals - 1 - i] == FIXED_SMIN[infmt] &&
b_values[i] == FIXED_SMIN[infmt]) {
simdUnpack(b, b_values, infmt, SIGNED);
for (int i = 0; i < nvals; i++) {
- switch(mode) {
+ switch (mode) {
case MODE_X:
if (a_values[nvals - 1 - i] == FIXED_SMIN[infmt] &&
b_values[i] == FIXED_SMIN[infmt]) {
simdUnpack(b, b_values, fmt, sign);
for (int i = 0; i < 2; i++) {
- switch(mode) {
+ switch (mode) {
case MODE_L:
dspac += a_values[nvals - 1 - i] * b_values[nvals - 1 - i];
break;
simdUnpack(b, b_values, fmt, sign);
for (int i = 0; i < 2; i++) {
- switch(mode) {
+ switch (mode) {
case MODE_L:
dspac -= a_values[nvals - 1 - i] * b_values[nvals - 1 - i];
break;
simdUnpack(b, b_values, fmt, SIGNED);
for (int i = 0; i < nvals; i++) {
- switch(mode) {
+ switch (mode) {
case MODE_L:
temp = a_values[i + 1] * b_values[i + 1] << 1;
if (a_values[i + 1] == FIXED_SMIN[fmt] &&
for (int i = 0; i < nvals; i++) {
int cc = 0;
- switch(op) {
+ switch (op) {
case CMP_EQ:
cc = (a_values[i] == b_values[i]);
break;
for (int i = 0; i < nvals; i++) {
int cc = 0;
- switch(op) {
+ switch (op) {
case CMP_EQ:
cc = (a_values[i] == b_values[i]);
break;
for (int i = 0; i < nvals; i++) {
int cc = 0;
- switch(op) {
+ switch (op) {
case CMP_EQ:
cc = (a_values[i] == b_values[i]);
break;
simdUnpack(a, in_values, infmt, insign);
for (int i = 0; i<noutvals; i++) {
- switch(mode) {
+ switch (mode) {
case MODE_L:
out_values[i] = in_values[i + (ninvals >> 1)] << sa;
break;
int nvals = SIMD_NVALS[fmt];
int nbits = SIMD_NBITS[fmt];
- switch(sign) {
+ switch (sign) {
case SIGNED:
for (int i = 0; i < nvals; i++) {
uint64_t tmp = (uint64_t)bits(reg, nbits * (i + 1) - 1, nbits * i);