- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There does not seem to be a specific call for ABS on Int(1) types.
1. Which is the best ABS name to use for int*1?
2. ABS doc says ABS arg is real so what happens when I feed it int(4) or int(1)
Thanks, Tim
1. Which is the best ABS name to use for int*1?
2. ABS doc says ABS arg is real so what happens when I feed it int(4) or int(1)
Thanks, Tim
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just use the generic ABS - it will do what you want.
Steve
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes I;ve found that out many years ago, but only just noticed the doc for int*1.
I wondered if it makes any speedwise difference to call the specific name.
Thanks, Tim
I wondered if it makes any speedwise difference to call the specific name.
Thanks, Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No speed difference at all - you get the same code (inline instructions in this case). Specific names are a holdover from Fortran 66 - their only legitimate use in modern Fortran is when passing them as arguments to other routihnes.
Steve
Steve

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page