Bug 25608

Summary: [PATCH] nouveau_exa.c: Move upper-limit calculations outside while-loop
Product: xorg Reporter: Roy <nouveau>
Component: Driver/nouveauAssignee: Nouveau Project <nouveau>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: enhancement    
Priority: low    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Slight improvement in handling upper-boundary for DMA routines. none

Description Roy 2009-12-12 04:33:57 UTC
Created attachment 32020 [details] [review]
Slight improvement in handling upper-boundary for DMA routines.

Attached is a small patch that moves the "line_count" upper limit calculation outside the while loop in NVAccelUploadM2MF and NVAccelDownloadM2MF. Benefits are (marginally) faster loops (less instructions, less branch-misses) and slightly cleaner code (imho).
Comment 1 Lucas Stach 2011-02-09 02:48:38 UTC
Closing this since the mentioned improvement is in repository. Didn't check since when.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.