2015-10-23 14:58:17 +00:00
|
|
|
.function audio_convert_orc_s32_to_double
|
2010-10-01 08:38:38 +00:00
|
|
|
.dest 8 d1 gdouble
|
|
|
|
.source 4 s1 gint32
|
|
|
|
.temp 8 t1
|
|
|
|
|
|
|
|
convld t1, s1
|
2015-11-03 10:44:54 +00:00
|
|
|
divd d1, t1, 2147483648.0L
|
2010-10-01 08:38:38 +00:00
|
|
|
|
2015-10-23 14:58:17 +00:00
|
|
|
.function audio_convert_orc_double_to_s32
|
|
|
|
.dest 4 d1 gint32
|
2010-08-26 17:16:18 +00:00
|
|
|
.source 8 s1 gdouble
|
2015-10-23 14:58:17 +00:00
|
|
|
.temp 8 t1
|
2010-08-26 17:16:18 +00:00
|
|
|
|
2015-11-03 10:44:54 +00:00
|
|
|
muld t1, s1, 2147483648.0L
|
2015-10-23 14:58:17 +00:00
|
|
|
convdl d1, t1
|
2015-10-30 16:36:48 +00:00
|
|
|
|
|
|
|
.function audio_convert_orc_int_bias
|
|
|
|
.dest 4 d1 gint32
|
|
|
|
.source 4 s1 gint32
|
|
|
|
.param 4 bias gint32
|
|
|
|
.param 4 mask gint32
|
|
|
|
.temp 4 t1
|
|
|
|
|
|
|
|
addssl t1, s1, bias
|
|
|
|
andl d1, t1, mask
|
|
|
|
|
|
|
|
.function audio_convert_orc_int_dither
|
|
|
|
.dest 4 d1 gint32
|
|
|
|
.source 4 s1 gint32
|
|
|
|
.source 4 dither gint32
|
|
|
|
.param 4 mask gint32
|
|
|
|
.temp 4 t1
|
|
|
|
|
|
|
|
addssl t1, s1, dither
|
|
|
|
andl d1, t1, mask
|
|
|
|
|