Bug 25608 - [PATCH] nouveau_exa.c: Move upper-limit calculations outside while-loop
Summary: [PATCH] nouveau_exa.c: Move upper-limit calculations outside while-loop
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/nouveau (show other bugs)
Version: git
Hardware: Other All
: low enhancement
Assignee: Nouveau Project
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-12 04:33 UTC by Roy
Modified: 2011-02-09 02:48 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Slight improvement in handling upper-boundary for DMA routines. (2.58 KB, patch)
2009-12-12 04:33 UTC, Roy
no flags Details | Splinter Review

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.