Changeset 1977

Show
Ignore:
Timestamp:
04/08/11 09:50:33 (13 years ago)
Author:
adi
Message:

More unlikely() in midi decoding.

We don't expect any 2X/3X data to be present, hence it's utterly
unlikely to hit this branch. Let's give a hint to the compiler so he can
properly optimize.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/libstreaming/amdtp/AmdtpReceiveStreamProcessor.cpp

    r1976 r1977  
    461461                    debugOutputExtreme(DEBUG_LEVEL_VERBOSE, "(%p) MIDI [%d]: %08X\n", this, 
    462462                            i, sample_int); 
    463                 } else if(IEC61883_AM824_HAS_LABEL(sample_int, IEC61883_AM824_LABEL_MIDI_2X) 
    464                         || IEC61883_AM824_HAS_LABEL(sample_int, IEC61883_AM824_LABEL_MIDI_3X) )
     463                } else if(unlikely((IEC61883_AM824_HAS_LABEL(sample_int, IEC61883_AM824_LABEL_MIDI_2X) 
     464                        || IEC61883_AM824_HAS_LABEL(sample_int, IEC61883_AM824_LABEL_MIDI_3X) )))
    465465                    debugOutput(DEBUG_LEVEL_VERBOSE, "Midi mode %X not supported.\n", 
    466466                            IEC61883_AM824_GET_LABEL(sample_int));