- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is it possible to programmatically check compiler switches? For example, to see if /assume:minus0 is set, is invoking sign flipping with the SIGN intrinsic the only way to do it? I guess there is no way to change it on the fly.
TIA,
Gerry T.
TIA,
Gerry T.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There's nothing in the executable you can query directly.
Steve
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK.
But why, if /assume:minus0 on an Intel processor, does
sign(0.d0, -0.d0) = sign(-0.d0, -0.d0) (= 0.d0)? I would expect the two to differ by a sign or is an identically zero argument special?
Thanks,
Gerry T.
But why, if /assume:minus0 on an Intel processor, does
sign(0.d0, -0.d0) = sign(-0.d0, -0.d0) (= 0.d0)? I would expect the two to differ by a sign or is an identically zero argument special?
Thanks,
Gerry T.
![](/skins/images/1FC86CD46823E418D1E2B7B4DC10231C/responsive_peak/images/icon_anonymous_message.png)
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