Remove comments in confirmed files.

This commit is contained in:
luxsie 2015-04-11 13:31:28 +08:00
parent 94441d7df3
commit 02c263fc19
5 changed files with 1 additions and 9 deletions

View File

@ -38,7 +38,6 @@ u64 vfsStreamMemory::Write(const void* src, u64 size)
u64 vfsStreamMemory::Read(void* dst, u64 size)
{
// TODO:: Syphurith: Should us do anything? Since Asserts aren't included in Release builds.
assert(Tell() < GetSize());
if (Tell() + size > GetSize())
{

View File

@ -200,7 +200,6 @@ u32 RSXThread::OutOfArgsCount(const uint x, const u32 cmd, const u32 count, cons
#define case_32(offset, step) \
case_16(offset, step) \
case_16(offset + 16*step, step)
// TODO:: Syphurith: I'm not sure about whether this is correct or missing a break;.
#define case_range(n, offset, step) \
case_##n(offset, step) \
index = (cmd - offset) / step
@ -369,7 +368,6 @@ void RSXThread::DoCmd(const u32 fcmd, const u32 cmd, const u32 args_addr, const
}
// Texture
// TODO:: Syphurith: Ensure it don't need to break;? case 0: A=0; case 1: A=1; would always give you A=1.
case_range(16, NV4097_SET_TEXTURE_FORMAT, 0x20);
case_range(16, NV4097_SET_TEXTURE_OFFSET, 0x20);
case_range(16, NV4097_SET_TEXTURE_FILTER, 0x20);
@ -400,7 +398,6 @@ void RSXThread::DoCmd(const u32 fcmd, const u32 cmd, const u32 args_addr, const
}
// Vertex Texture
// TODO:: Syphurith: Ensure it don't need to break;? Similiar reason..
case_range(4, NV4097_SET_VERTEX_TEXTURE_FORMAT, 0x20);
case_range(4, NV4097_SET_VERTEX_TEXTURE_OFFSET, 0x20);
case_range(4, NV4097_SET_VERTEX_TEXTURE_FILTER, 0x20);

View File

@ -314,7 +314,6 @@ struct CellCameraAttributes
u32 LED;
u32 AUDIOGAIN;
u32 QS;
// Syphurith: Found using cppcheck. This is originally stated as an single-element array, however references its [0] and [1]. So i changed this to 2 u32 units.
u32 NONZEROCOEFFS[2];
u32 YUVFLAG;
u32 JPEGFLAG;

View File

@ -2206,7 +2206,6 @@ s32 cellSpursCreateTasksetWithAttribute(vm::ptr<CellSpurs> spurs, vm::ptr<CellSp
if (!attr)
{
// Syphurith: If that is intentionally done, please remove the 'return'. Or else just remove this comment.
return CELL_SPURS_TASK_ERROR_NULL_POINTER;
}
@ -2375,7 +2374,6 @@ s32 spursCreateTask(vm::ptr<CellSpursTaskset> taskset, vm::ptr<u32> task_id, vm:
if (tmp_task_id >= CELL_SPURS_MAX_TASK)
{
// Syphurith: If that is intentionally done, please remove the 'return'. Or else just remove this comment.
return CELL_SPURS_TASK_ERROR_AGAIN;
}

View File

@ -508,8 +508,7 @@ s32 sys_spu_thread_group_terminate(u32 id, s32 value)
}
}
// TODO:: Syphurith: Thank @danilaml (first) and let us talk about this mistake/typo. Have you used the wrong constant for the third condition?
if ((group->state <= SPU_THREAD_GROUP_STATUS_INITIALIZED) || (group->state == SPU_THREAD_GROUP_STATUS_WAITING) || (group->state == SPU_THREAD_GROUP_STATUS_WAITING))
if ((group->state <= SPU_THREAD_GROUP_STATUS_INITIALIZED) || (group->state == SPU_THREAD_GROUP_STATUS_WAITING))
{
return CELL_EINVAL;
}