Skip to content

Commit df1f540

Browse files
committed
Added another xoroshiro.hlsl fix
1 parent 2b5ed70 commit df1f540

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/nbl/builtin/hlsl/bit.hlsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ T rotl(T x, S s)
3636
}
3737
else
3838
{
39-
return rotr(x, -r);
39+
return (x >> (-r)) | (x << (N - (-r)));
4040
}
4141
}
4242

@@ -52,7 +52,7 @@ T rotr(T x, S s)
5252
}
5353
else
5454
{
55-
return rotl(x, -r);
55+
return (x << (-r)) | (x >> (N - (-r)));
5656
}
5757
}
5858

0 commit comments

Comments
 (0)