mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
pcm: remove unused macros of GETU_LABELS/GETU_END
A commit 07c07da44f ("Fixed signess for route conversion") obsoletes
usage of a pair of GETU_LABEL/GETU_END, but it did not remove some
actual codes in 'src/pcm_plugin_ops.h'.
This commit removes them in a point to reduce the amount of code to
maintain.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
ad3fe5824c
commit
237f7756f8
1 changed files with 0 additions and 41 deletions
|
|
@ -649,47 +649,6 @@ put32_1234_329_18: _put_triple_s(dst, (sample ^ 0x80000000) >> 14); goto PUT32_E
|
||||||
#undef PUT32_END
|
#undef PUT32_END
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef GETU_LABELS
|
|
||||||
/* width endswap sign_toggle */
|
|
||||||
static void *const getu_labels[4 * 2 * 2] = {
|
|
||||||
&&getu_1_1, /* 8h -> 8h */
|
|
||||||
&&getu_1_9, /* 8h ^> 8h */
|
|
||||||
&&getu_1_1, /* 8s -> 8h */
|
|
||||||
&&getu_1_9, /* 8s ^> 8h */
|
|
||||||
&&getu_12_12, /* 16h -> 16h */
|
|
||||||
&&getu_12_92, /* 16h ^> 16h */
|
|
||||||
&&getu_12_21, /* 16s -> 16h */
|
|
||||||
&&getu_12_A1, /* 16s ^> 16h */
|
|
||||||
&&getu_0123_0123, /* 24h -> 24h */
|
|
||||||
&&getu_0123_0923, /* 24h ^> 24h */
|
|
||||||
&&getu_1230_0321, /* 24s -> 24h */
|
|
||||||
&&getu_1230_0B21, /* 24s ^> 24h */
|
|
||||||
&&getu_1234_1234, /* 32h -> 32h */
|
|
||||||
&&getu_1234_9234, /* 32h ^> 32h */
|
|
||||||
&&getu_1234_4321, /* 32s -> 32h */
|
|
||||||
&&getu_1234_C321, /* 32s ^> 32h */
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef GETU_END
|
|
||||||
while (0) {
|
|
||||||
getu_1_1: sample = as_u8c(src); goto GETU_END;
|
|
||||||
getu_1_9: sample = as_u8c(src) ^ 0x80; goto GETU_END;
|
|
||||||
getu_12_12: sample = as_u16c(src); goto GETU_END;
|
|
||||||
getu_12_92: sample = as_u16c(src) ^ 0x8000; goto GETU_END;
|
|
||||||
getu_12_21: sample = bswap_16(as_u16c(src)); goto GETU_END;
|
|
||||||
getu_12_A1: sample = bswap_16(as_u16c(src) ^ 0x80); goto GETU_END;
|
|
||||||
getu_0123_0123: sample = sx24(as_u32c(src)); goto GETU_END;
|
|
||||||
getu_0123_0923: sample = sx24(as_u32c(src) ^ 0x800000); goto GETU_END;
|
|
||||||
getu_1230_0321: sample = sx24(bswap_32(as_u32c(src))); goto GETU_END;
|
|
||||||
getu_1230_0B21: sample = sx24(bswap_32(as_u32c(src) ^ 0x8000)); goto GETU_END;
|
|
||||||
getu_1234_1234: sample = as_u32c(src); goto GETU_END;
|
|
||||||
getu_1234_9234: sample = as_u32c(src) ^ 0x80000000; goto GETU_END;
|
|
||||||
getu_1234_4321: sample = bswap_32(as_u32c(src)); goto GETU_END;
|
|
||||||
getu_1234_C321: sample = bswap_32(as_u32c(src) ^ 0x80); goto GETU_END;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef PUT32F_LABELS
|
#ifdef PUT32F_LABELS
|
||||||
/* type (0 = float, 1 = float64), endswap */
|
/* type (0 = float, 1 = float64), endswap */
|
||||||
static void *const put32float_labels[2 * 2] = {
|
static void *const put32float_labels[2 * 2] = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue