Mercurial > libavcodec.hg
comparison sparc/dsputil_vis.c @ 2967:ef2149182f1c libavcodec
COSMETICS: Remove all trailing whitespace.
author | diego |
---|---|
date | Sat, 17 Dec 2005 18:14:38 +0000 |
parents | 8616fd2dd2ef |
children | bfabfdf9ce55 |
comparison
equal
deleted
inserted
replaced
2966:564788471dd4 | 2967:ef2149182f1c |
---|---|
3986 | 3986 |
3987 /* End of no rounding code */ | 3987 /* End of no rounding code */ |
3988 | 3988 |
3989 static sigjmp_buf jmpbuf; | 3989 static sigjmp_buf jmpbuf; |
3990 static volatile sig_atomic_t canjump = 0; | 3990 static volatile sig_atomic_t canjump = 0; |
3991 | 3991 |
3992 static void sigill_handler (int sig) | 3992 static void sigill_handler (int sig) |
3993 { | 3993 { |
3994 if (!canjump) { | 3994 if (!canjump) { |
3995 signal (sig, SIG_DFL); | 3995 signal (sig, SIG_DFL); |
3996 raise (sig); | 3996 raise (sig); |
4010 signal (SIGILL, sigill_handler); | 4010 signal (SIGILL, sigill_handler); |
4011 if (sigsetjmp (jmpbuf, 1)) { | 4011 if (sigsetjmp (jmpbuf, 1)) { |
4012 signal (SIGILL, SIG_DFL); | 4012 signal (SIGILL, SIG_DFL); |
4013 return accel; | 4013 return accel; |
4014 } | 4014 } |
4015 | 4015 |
4016 canjump = 1; | 4016 canjump = 1; |
4017 | 4017 |
4018 /* pdist %f0, %f0, %f0 */ | 4018 /* pdist %f0, %f0, %f0 */ |
4019 __asm__ __volatile__(".word\t0x81b007c0"); | 4019 __asm__ __volatile__(".word\t0x81b007c0"); |
4020 | 4020 |
4021 canjump = 0; | 4021 canjump = 0; |
4022 accel |= ACCEL_SPARC_VIS; | 4022 accel |= ACCEL_SPARC_VIS; |
4048 if (accel & ACCEL_SPARC_VIS) { | 4048 if (accel & ACCEL_SPARC_VIS) { |
4049 c->put_pixels_tab[0][0] = MC_put_o_16_vis; | 4049 c->put_pixels_tab[0][0] = MC_put_o_16_vis; |
4050 c->put_pixels_tab[0][1] = MC_put_x_16_vis; | 4050 c->put_pixels_tab[0][1] = MC_put_x_16_vis; |
4051 c->put_pixels_tab[0][2] = MC_put_y_16_vis; | 4051 c->put_pixels_tab[0][2] = MC_put_y_16_vis; |
4052 c->put_pixels_tab[0][3] = MC_put_xy_16_vis; | 4052 c->put_pixels_tab[0][3] = MC_put_xy_16_vis; |
4053 | 4053 |
4054 c->put_pixels_tab[1][0] = MC_put_o_8_vis; | 4054 c->put_pixels_tab[1][0] = MC_put_o_8_vis; |
4055 c->put_pixels_tab[1][1] = MC_put_x_8_vis; | 4055 c->put_pixels_tab[1][1] = MC_put_x_8_vis; |
4056 c->put_pixels_tab[1][2] = MC_put_y_8_vis; | 4056 c->put_pixels_tab[1][2] = MC_put_y_8_vis; |
4057 c->put_pixels_tab[1][3] = MC_put_xy_8_vis; | 4057 c->put_pixels_tab[1][3] = MC_put_xy_8_vis; |
4058 | 4058 |
4059 c->avg_pixels_tab[0][0] = MC_avg_o_16_vis; | 4059 c->avg_pixels_tab[0][0] = MC_avg_o_16_vis; |
4060 c->avg_pixels_tab[0][1] = MC_avg_x_16_vis; | 4060 c->avg_pixels_tab[0][1] = MC_avg_x_16_vis; |
4061 c->avg_pixels_tab[0][2] = MC_avg_y_16_vis; | 4061 c->avg_pixels_tab[0][2] = MC_avg_y_16_vis; |
4062 c->avg_pixels_tab[0][3] = MC_avg_xy_16_vis; | 4062 c->avg_pixels_tab[0][3] = MC_avg_xy_16_vis; |
4063 | 4063 |
4064 c->avg_pixels_tab[1][0] = MC_avg_o_8_vis; | 4064 c->avg_pixels_tab[1][0] = MC_avg_o_8_vis; |
4065 c->avg_pixels_tab[1][1] = MC_avg_x_8_vis; | 4065 c->avg_pixels_tab[1][1] = MC_avg_x_8_vis; |
4066 c->avg_pixels_tab[1][2] = MC_avg_y_8_vis; | 4066 c->avg_pixels_tab[1][2] = MC_avg_y_8_vis; |
4067 c->avg_pixels_tab[1][3] = MC_avg_xy_8_vis; | 4067 c->avg_pixels_tab[1][3] = MC_avg_xy_8_vis; |
4068 | 4068 |
4069 c->put_no_rnd_pixels_tab[0][0] = MC_put_no_round_o_16_vis; | 4069 c->put_no_rnd_pixels_tab[0][0] = MC_put_no_round_o_16_vis; |
4070 c->put_no_rnd_pixels_tab[0][1] = MC_put_no_round_x_16_vis; | 4070 c->put_no_rnd_pixels_tab[0][1] = MC_put_no_round_x_16_vis; |
4071 c->put_no_rnd_pixels_tab[0][2] = MC_put_no_round_y_16_vis; | 4071 c->put_no_rnd_pixels_tab[0][2] = MC_put_no_round_y_16_vis; |
4072 c->put_no_rnd_pixels_tab[0][3] = MC_put_no_round_xy_16_vis; | 4072 c->put_no_rnd_pixels_tab[0][3] = MC_put_no_round_xy_16_vis; |
4073 | 4073 |
4074 c->put_no_rnd_pixels_tab[1][0] = MC_put_no_round_o_8_vis; | 4074 c->put_no_rnd_pixels_tab[1][0] = MC_put_no_round_o_8_vis; |
4075 c->put_no_rnd_pixels_tab[1][1] = MC_put_no_round_x_8_vis; | 4075 c->put_no_rnd_pixels_tab[1][1] = MC_put_no_round_x_8_vis; |
4076 c->put_no_rnd_pixels_tab[1][2] = MC_put_no_round_y_8_vis; | 4076 c->put_no_rnd_pixels_tab[1][2] = MC_put_no_round_y_8_vis; |
4077 c->put_no_rnd_pixels_tab[1][3] = MC_put_no_round_xy_8_vis; | 4077 c->put_no_rnd_pixels_tab[1][3] = MC_put_no_round_xy_8_vis; |
4078 | 4078 |
4079 c->avg_no_rnd_pixels_tab[0][0] = MC_avg_no_round_o_16_vis; | 4079 c->avg_no_rnd_pixels_tab[0][0] = MC_avg_no_round_o_16_vis; |
4080 c->avg_no_rnd_pixels_tab[0][1] = MC_avg_no_round_x_16_vis; | 4080 c->avg_no_rnd_pixels_tab[0][1] = MC_avg_no_round_x_16_vis; |
4081 c->avg_no_rnd_pixels_tab[0][2] = MC_avg_no_round_y_16_vis; | 4081 c->avg_no_rnd_pixels_tab[0][2] = MC_avg_no_round_y_16_vis; |
4082 c->avg_no_rnd_pixels_tab[0][3] = MC_avg_no_round_xy_16_vis; | 4082 c->avg_no_rnd_pixels_tab[0][3] = MC_avg_no_round_xy_16_vis; |
4083 | 4083 |
4084 c->avg_no_rnd_pixels_tab[1][0] = MC_avg_no_round_o_8_vis; | 4084 c->avg_no_rnd_pixels_tab[1][0] = MC_avg_no_round_o_8_vis; |
4085 c->avg_no_rnd_pixels_tab[1][1] = MC_avg_no_round_x_8_vis; | 4085 c->avg_no_rnd_pixels_tab[1][1] = MC_avg_no_round_x_8_vis; |
4086 c->avg_no_rnd_pixels_tab[1][2] = MC_avg_no_round_y_8_vis; | 4086 c->avg_no_rnd_pixels_tab[1][2] = MC_avg_no_round_y_8_vis; |
4087 c->avg_no_rnd_pixels_tab[1][3] = MC_avg_no_round_xy_8_vis; | 4087 c->avg_no_rnd_pixels_tab[1][3] = MC_avg_no_round_xy_8_vis; |
4088 } | 4088 } |