(svn r8864) -Codechange: make ClrBitT(), SetBitT() and ToggleBitT more like CLRBIT() and so on (modify value of the first parameter instead or returning the result)

This commit is contained in:
KUDr
2007-02-23 20:51:10 +00:00
parent 20405f56b4
commit dac3cd622f
4 changed files with 12 additions and 18 deletions

View File

@@ -261,7 +261,7 @@ static inline Track RemoveFirstTrack(TrackBits *tracks)
{
if (*tracks != TRACK_BIT_NONE && *tracks != INVALID_TRACK_BIT) {
Track first = (Track)FIND_FIRST_BIT(*tracks);
*tracks = ClrBitT(*tracks, first);
ClrBitT(*tracks, first);
return first;
}
return INVALID_TRACK;
@@ -274,7 +274,7 @@ static inline Trackdir RemoveFirstTrackdir(TrackdirBits *trackdirs)
{
if (*trackdirs != TRACKDIR_BIT_NONE && *trackdirs != INVALID_TRACKDIR_BIT) {
Trackdir first = (Trackdir)FindFirstBit2x64(*trackdirs);
*trackdirs = ClrBitT(*trackdirs, first);
ClrBitT(*trackdirs, first);
return first;
}
return INVALID_TRACKDIR;