Skip to content

Conversation

Euler-37
Copy link
Contributor

static inline uint64_t rotl(const uint64_t x, int k) {
   return (x << k) | (x >> (64 - k));
}

fortran has the intrinsic bit function ishftc(x,k) ,it is same as rtol

Euler-37 added 2 commits May 14, 2023 11:07
change function `rtol` to fortran intrinsic `ishftc`
@Euler-37 Euler-37 changed the title Patch 1 change stdlib-random function rtol to ishftc May 14, 2023
Copy link
Member

@awvwgk awvwgk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for sharing. Looks good to me.

@awvwgk awvwgk merged commit 933916b into fortran-lang:master May 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants