so many ABS so little time.

so many ABS so little time.

imagem de rahzan

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
Último post
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.
imagem de Steve Lionel (Intel)

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

Steve

Steve
imagem de rahzan

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

imagem de Steve Lionel (Intel)

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

Faça login para deixar um comentário.