Clearer name

This commit is contained in:
Abramo Bagnara 2001-03-10 10:09:34 +00:00
parent 5e2c5cab92
commit aecf625c00
2 changed files with 38 additions and 38 deletions

View file

@ -151,10 +151,10 @@ void snd_pcm_route_convert1_many(const snd_pcm_channel_area_t *dst_area,
const snd_pcm_route_ttable_dst_t* ttable,
const snd_pcm_route_params_t *params)
{
#define GET_LABELS
#define GETU_LABELS
#define PUT32_LABELS
#include "plugin_ops.h"
#undef GET_LABELS
#undef GETU_LABELS
#undef PUT32_LABELS
static void *zero_labels[3] = { &&zero_int32, &&zero_int64,
#if ROUTE_PLUGIN_FLOAT
@ -226,7 +226,7 @@ void snd_pcm_route_convert1_many(const snd_pcm_channel_area_t *dst_area,
}
zero = zero_labels[params->sum_idx];
get = get_labels[params->get_idx];
get = getu_labels[params->get_idx];
add = add_labels[params->sum_idx * 2 + ttable->att];
norm = norm_labels[params->sum_idx * 8 + ttable->att * 4 + 4 - params->src_size];
put32 = put32_labels[params->put_idx];
@ -256,9 +256,9 @@ void snd_pcm_route_convert1_many(const snd_pcm_channel_area_t *dst_area,
/* Get sample */
goto *get;
#define GET_END after_get
#define GETU_END after_get
#include "plugin_ops.h"
#undef GET_END
#undef GETU_END
after_get:
/* Sum */

View file

@ -444,44 +444,44 @@ put32_1234_4329: as_u32(dst) = bswap_32(sample) ^ 0x80; goto PUT32_END;
}
#endif
#ifdef GET_LABELS
#ifdef GETU_LABELS
/* width endswap sign_toggle */
static void *get_labels[4 * 2 * 2] = {
&&get_1_1, /* 8h -> 8h */
&&get_1_9, /* 8h ^> 8h */
&&get_1_1, /* 8s -> 8h */
&&get_1_9, /* 8s ^> 8h */
&&get_12_12, /* 16h -> 16h */
&&get_12_92, /* 16h ^> 16h */
&&get_12_21, /* 16s -> 16h */
&&get_12_A1, /* 16s ^> 16h */
&&get_0123_0123, /* 24h -> 24h */
&&get_0123_0923, /* 24h ^> 24h */
&&get_1230_0321, /* 24s -> 24h */
&&get_1230_0B21, /* 24s ^> 24h */
&&get_1234_1234, /* 32h -> 32h */
&&get_1234_9234, /* 32h ^> 32h */
&&get_1234_4321, /* 32s -> 32h */
&&get_1234_C321, /* 32s ^> 32h */
static void *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 GET_END
#ifdef GETU_END
while (0) {
get_1_1: sample = as_u8(src); goto GET_END;
get_1_9: sample = as_u8(src) ^ 0x80; goto GET_END;
get_12_12: sample = as_u16(src); goto GET_END;
get_12_92: sample = as_u16(src) ^ 0x8000; goto GET_END;
get_12_21: sample = bswap_16(as_u16(src)); goto GET_END;
get_12_A1: sample = bswap_16(as_u16(src) ^ 0x80); goto GET_END;
get_0123_0123: sample = as_u32(src); goto GET_END;
get_0123_0923: sample = (as_u32(src) ^ 0x800000); goto GET_END;
get_1230_0321: sample = bswap_32(as_u32(src)); goto GET_END;
get_1230_0B21: sample = bswap_32(as_u32(src) ^ 0x8000); goto GET_END;
get_1234_1234: sample = as_u32(src); goto GET_END;
get_1234_9234: sample = as_u32(src) ^ 0x80000000; goto GET_END;
get_1234_4321: sample = bswap_32(as_u32(src)); goto GET_END;
get_1234_C321: sample = bswap_32(as_u32(src) ^ 0x80); goto GET_END;
getu_1_1: sample = as_u8(src); goto GETU_END;
getu_1_9: sample = as_u8(src) ^ 0x80; goto GETU_END;
getu_12_12: sample = as_u16(src); goto GETU_END;
getu_12_92: sample = as_u16(src) ^ 0x8000; goto GETU_END;
getu_12_21: sample = bswap_16(as_u16(src)); goto GETU_END;
getu_12_A1: sample = bswap_16(as_u16(src) ^ 0x80); goto GETU_END;
getu_0123_0123: sample = as_u32(src); goto GETU_END;
getu_0123_0923: sample = (as_u32(src) ^ 0x800000); goto GETU_END;
getu_1230_0321: sample = bswap_32(as_u32(src)); goto GETU_END;
getu_1230_0B21: sample = bswap_32(as_u32(src) ^ 0x8000); goto GETU_END;
getu_1234_1234: sample = as_u32(src); goto GETU_END;
getu_1234_9234: sample = as_u32(src) ^ 0x80000000; goto GETU_END;
getu_1234_4321: sample = bswap_32(as_u32(src)); goto GETU_END;
getu_1234_C321: sample = bswap_32(as_u32(src) ^ 0x80); goto GETU_END;
}
#endif