so many ABS so little time.

so many ABS so little time.

rahzan's picture

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

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Steve Lionel (Intel)'s picture

Just use the generic ABS - it will do what you want.

Steve

Steve
rahzan's picture

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

Steve Lionel (Intel)'s picture

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

Login to leave a comment.