mirror of
https://github.com/holub/mame
synced 2025-07-03 17:08:39 +03:00
Remove 2 comments about correct changes (nw)
This commit is contained in:
parent
1d776d47a3
commit
46e3402b35
@ -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;
|
t_out[0] = t_out[1] = t_out[2] = t_out[3] = t.f;
|
||||||
break;
|
break;
|
||||||
case 4: // "RSQ"
|
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]));
|
t_out[0] = t_out[1] = t_out[2] = t_out[3] = 1.0f / sqrtf(fabsf(par_in[p3_C + 0]));
|
||||||
break;
|
break;
|
||||||
case 5: // "EXP"
|
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[1] = frexp(par_in[p3_C + 0], &e)*2.0; // frexp gives mantissa as 0.5....1
|
||||||
t_out[0] = e - 1;
|
t_out[0] = e - 1;
|
||||||
#ifndef __OS2__
|
#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]));
|
t.f = log2(fabsf(par_in[p3_C + 0]));
|
||||||
#else
|
#else
|
||||||
static double log_2 = 0.0;
|
static double log_2 = 0.0;
|
||||||
|
Loading…
Reference in New Issue
Block a user