Remove 2 comments about correct changes (nw)

This commit is contained in:
yz70s 2020-05-08 14:23:46 +02:00
parent 1d776d47a3
commit 46e3402b35

View File

@ -845,9 +845,6 @@ void vertex_program_simulator::compute_scalar_operation(float t_out[4], int inst
t_out[0] = t_out[1] = t_out[2] = t_out[3] = t.f;
break;
case 4: // "RSQ"
/*
* NOTE: this was abs which is "int abs(int x)" - and changed to fabsf due to clang 3.6 warning
*/
t_out[0] = t_out[1] = t_out[2] = t_out[3] = 1.0f / sqrtf(fabsf(par_in[p3_C + 0]));
break;
case 5: // "EXP"
@ -862,9 +859,6 @@ void vertex_program_simulator::compute_scalar_operation(float t_out[4], int inst
t_out[1] = frexp(par_in[p3_C + 0], &e)*2.0; // frexp gives mantissa as 0.5....1
t_out[0] = e - 1;
#ifndef __OS2__
/*
* NOTE: this was abs which is "int abs(int x)" - and changed to fabsf due to clang 3.6 warning
*/
t.f = log2(fabsf(par_in[p3_C + 0]));
#else
static double log_2 = 0.0;