- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- __restrict keyword
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2003 09:12 PM
тАО12-30-2003 09:12 PM
I was trying to use __restrict key word with pointers used as fuction parameters. I have the impression that this keyword only operates on "Single pointes". I dont see any performance improvement when I use the keyword with double pointers. Should __restrict keyword only be used with single pointers??
I would be grateful if someone can answer to my query.
Thanks in advance
sunil
Solved! Go to Solution.
- Tags:
- restrict
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2003 09:58 PM
тАО12-30-2003 09:58 PM
Re: __restrict keyword
I think you should try to write it down to a single pointer function to have it speed up right now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2004 04:53 AM
тАО01-05-2004 04:53 AM
Re: __restrict keyword
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2004 05:39 AM
тАО01-05-2004 05:39 AM
Re: __restrict keyword
example:
void accum_restrict(int **__restrict a, int **b, m,n)
{
int i,j;
for(i=0;i
}
I dont see any improvement in performance for the above code with restrict keyword. Does this mean that the restrict keyword only operates on a single pointer (int *p).
Thanks once again.
sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2004 11:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2004 07:20 PM
тАО01-05-2004 07:20 PM
Re: __restrict keyword
inline void accum2_restrict(int *__restrict a2,int *b2, n) {
int j;
for (j=0;j
}
void accum_restrict(int **__restrict a, int **b, m,n)
{
int i;
for(i=0;i
}
Haven't tried it, but that should do the trick. It might not accept the inline, replace it by static then, making it a local function which can be optimized better.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2004 08:36 PM
тАО01-05-2004 08:36 PM
Re: __restrict keyword
sunil