|
|
| About site: Programming/Languages/C/Articles - Restricted Pointers are Coming |
Return to Computers also Computers |
| About site: http://www.ddj.com/cpp/184403676 |
Title: Programming/Languages/C/Articles - Restricted Pointers are Coming Summarizes the motivation for the new type qualifier restrict and explains how to use it. Also shows a way to check how well compilers exploit the possibilities of restrict. (C/C++ Users Journal) |
|
|
|
|
Nadjm-Tehrani,_Simin Linköping University - Formal methods in verification of real-time and embedded systems, including discrete and hybrid models, applications of temporal logic, symbolic model checking, automata-based
| 3DNA 3D desktop user interface that works with Windows and the web. Software transforms the static 2D desktop, into a useful 3D interface. Add-on themes are available.
| Frontier_!nter@ctive 360 Object and Panorama Developers, Medford, NJ
| RFC_0393 Comments on Telnet Protocol Changes. J.M. Winett. October 1972.
| QuSoft Developers of reporting tool bundled with Delphi itself.
| Istrobot Annual contest in Slovakia includes linefollower, micromouse, minisumo, and a free style category.
|
|
| Alexa statistic for http://www.ddj.com/cpp/184403676 |
Please visit: http://www.ddj.com/cpp/184403676
|
| Related sites for http://www.ddj.com/cpp/184403676 |
| Aronson_&_Associates Resellers of Mas90/200, Business Works, QuickBooks, Peachtree, and RealWorld accounting software packages. | | jProductivity_Protection! A licensing framework that can be embedded into custom Java applications or components only allowing the permitted use according to the supplied license. [Commercial] | | Wicked_Problems How to solve problems there is no consensus on what a problem is, or how to resolve it. By Mary Poppendieck. Dr. Dobb's. (April 12, 2002) | | RFC_0658 Telnet Output Linefeed Disposition. D. Crocker. October 1974. | | Roland Large-format photorealistic printing and accurate contour cutting in one device, perfect for signmaking, posters and banners. | | Mac_Emu Allow Macintosh computers to run old games and applications. Includes message boards, chat, benchmarks, and tools. | | Hijinx_Design Manufactures creative solutions for the entertainment industry. Specializes in "visual propoganda without guilt." | | Tags_and_Styles HTML 4, special characters, and CSS reference lists, organized alphabetically and functionally. | | CommentWizard An add-in for standardizing and automating the creation of C/C++ source code comments. | | Syndicate Information on syndicating a page using RSS. | | B-Coder_Pro Inventory tracking spreadsheet for Microsoft Excel. When used in conjunction with BC-Wedge or WinWedge this permits one to add to, remove from and look up products just by scanning a bar code. Keyboar | | SubmitSide_ Free site submission. | | RFC_0387 Some Experiences in Implementing Network Graphics Protocol Level 0. K.C. Kelley, J. Meir. August 1972. | | RFC_0848 Who Provides the "Little" TCP Services? D. Smallberg. March 1983. | | DataCraft_Software_Systems Offers software systems for training administration, courses schedules and bookings, contact management, warehouse and retail operations that are directly suitable for a business, or can be modified t | | Learning_Ruby__A_Guide_to_Online_Tutorials,_Examples_and_Downloads Article presents best ones that Ideacodes LLC web consultant Max Kiesler found over the last year of many hours searching google, del.icio.us, digg, etc., looking for usable and relevant examples. | | SCO_Gets_$50_Million_Investment SCO, firm embroiled in legal actions with Linux and Unix, announces $50 million investment by BayStar Capital, a reversal of plans it stated in May; will use funds for software development, legal and | | Gentoo_Linux_on_the_PlayStation_2 Provides patches and information about running on a Sony PlayStation 2. | | colorForth_Mail_List_Archive Traffic since 20 Mar 2001. | | Bermant,_Danny Web page design, web development, copywriting and training. |
|
This is websites2007.org cache of m/ as retrieved on 2008.09.07 websites2007.org's cache is the snapshot that we took of the page as we crawled the web. The page may have changed since that time.
|
Dr. Dobb's | Restricted Pointers are Coming | July 1, 1999
var addtoMethod=1;
var AddURL = document.location.href;
var AddTitle = escape(document.title);
var ckRef=document.referrer; if(ckRef && ckRef.indexOf('/as5/redirect/')==-1 || !ckRef) { document.write(''); document.close(); }

Print
Reprint
add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
July 01, 1999
Restricted Pointers are Coming
(Page 1 of
3)
Arch D. Robison
C9X introduces the new type qualifier restrict. Why it's there and where it pays off takes a bit of explaining.
July 1999/Restricted Pointers are Coming/Figure 1Figure 1: What possible compiler optimizations might look like if done by hand#define N 1000 /* Kernel with hoisting of invariant done by hand. */void with_hoisting( float * restrict a, float * restrict b, int n, int j ) { float t0 = (b[j+N/4] + b[j-N/4]) * 0.5f; int i; for( i=0; i<n; ++i ) a[i] = t0;} /* * Kernel with software pipelining done by hand. * The optimal pipelining depends upon the target machine. * The example here is only one such way. * It's mighty peculiar to do it in this example * since b[..] can be hoisted, * but nonetheless at least one compiler did something * similar to this. */void with_software_pipelining( float * restrict a, float * restrict b, int n, int j ) { int i; float t0, t1, t2, t3; if( 3 <= n ) { /* prologue for pipelined loop */ t0 = b[j+(N/4)]; /* Part of iteration i=0 */ t1 = b[j-(N/4)]; /* " " " i=0 */ t2 = t0 + t1; /* " " " i=0 */ t0 = b[j+(N/4)]; /* " " " i=1 */ t1 = b[j-(N/4)]; /* " " " i=1 */ t3 = 0.5f * t2; /* Part of iteration i=0 */ t2 = t0 + t1; /* " " " i=1 */ t0 = b[j+(N/4)]; /* " " " i=2 */ t1 = b[j-(N/4)]; /* " " " i=2 */ /* The pipelined loop */ for( i=3; i<n; ++i ) { /* Next five statements could be evaluated in single step. */ a[i-3] = t3; t3 = 0.5f * t2; t2 = t0 + t1; t0 = b[j+(N/4)]; t1 = b[j-(N/4)]; } /* epilogue for pipelined loop */ a[n-3] = t3; /* Part of iteration i=n-3 */ t3 = 0.5f * t2; /* " " " i=n-2 */ t2 = t0 + t1; /* " " " i=n-1 */ a[n-2] = t3; /* " " " i=n-2 */ t3 = 0.5f * t2; /* " " " i=n-1 */ a[n-1] = t3; /* " " " i=n-1 */ } else { // Not enough iterations to pipeline the loop for( i=0; i<n; ++i ) a[i] = (b[j+N/4] + b[j-N/4]) * 0.5f; } }
1
|
2
|
3
Next Page
RELATED ARTICLES
No Related Articles
TOP 5 ARTICLES
No Top Articles.
SD Best Practices 2008, October 27-30 in Boston, features world-class training on the entire software development lifecycle. Features world-class training on the entire software development lifecycle.Register today and save up to $400!
DR. DOBB'S CAREER CENTER

Ready to take that job and shove it? open | close
Search jobs on Dr. Dobb's TechCareers
Function:
Information Technology
Engineering
Keyword(s):
State:
Post Your Resume
Employers Area
News & Features
Blogs & Forums
Career Resources
Browse By:
Location | Employer | City

Most Recent Posts:

MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS


INFO-LINK
Dr. Dobb's DVD: Release 4...ORDER YOUR COPY TODAY!
Save up to $400 on Software Development Best Practices 2008!
Extending Enterprise Value with Web 2.0


DEPARTMENTS
Home
Architecture & Design
C/C++
Database
Development Tools
Embedded Systems
High Performance Computing
Java
Mobility
Open Source
Security
Web Development
Windows/.NET




| All Feeds
© 2008 Think Services,
Privacy Policy,
Terms of Service,
United Business Media LLC
Comments about the web site: webmaster@ddj.com
Related Sites:
DotNetJunkies,
SD Expo,
SqlJunkies

|
|
| |
Summarizes | the | motivation | for | the | new | type | qualifier | restrict | and | explains | how | to | use | it. | Also | shows | a | way | to | check | how | well | compilers | exploit | the | possibilities | of | restrict. | (C/C++ | Users | Journal) |
|
http://www.ddj.com/cpp/184403676
Restricted Pointers are Coming 2008 September
dvd rental
dvd
Summarizes the motivation for the new type qualifier restrict and explains how to use it. Also shows a way to check how well compilers exploit the possibilities of restrict. (C/C++ Users Journal)
Rules
|
© 2008 Internet Explorer 5+ or Netscape 6+
|
|
Recommended Sites: 1.
Arts -
Business -
Computers -
Games -
Health -
Home -
Kids and Teens -
News -
Recreation -
Reference -
Regional -
Science -
Shopping -
Society -
Sports -
World
Miss Gallery
- Top Anime Hentai
- DVD rental by mail
- MPAA - Loans - Advertising - Facebook proxy list - MySpace Images
|