Explorar el Código

cell: stub-out sin/cos function bodies to avoid trashing caller's stack for now

tags/mesa_20090313
Brian Paul hace 17 años
padre
commit
55b65d3b42
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10
    0
      src/gallium/drivers/cell/spu/spu_funcs.c

+ 10
- 0
src/gallium/drivers/cell/spu/spu_funcs.c Ver fichero

@@ -49,17 +49,27 @@
static vector float
spu_cos(vector float x)
{
#if 0
static const float scale = 1.0 / (2.0 * M_PI);
x = x * spu_splats(scale); /* normalize */
return _cos8_v(x);
#else
/* just pass-through to avoid trashing caller's stack */
return x;
#endif
}

static vector float
spu_sin(vector float x)
{
#if 0
static const float scale = 1.0 / (2.0 * M_PI);
x = x * spu_splats(scale); /* normalize */
return _sin8_v(x); /* 8-bit accuracy enough?? */
#else
/* just pass-through to avoid trashing caller's stack */
return x;
#endif
}



Cargando…
Cancelar
Guardar