You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, I really think you did a nice job by providing this library (funny part: I was doing exact same rasterizing stuff myself as a side project when you started olive on streams ;) ).
I don't know what's your minimum requirement for this library to be (maybe C89?), but if targetting standard C99 as minimal requirement, maybe you could add some restrict keyword when it's appropriate.
The compiler can't really guess that u1, u2 and det won't alias to each other. With restrict keyword provided, I guess it would make some compiler optimization possible (actually I need to do some benchmark to check that point).
There are several cases in the olive library where that could fit pretty well.
Anyway, thanks again for your streams, it's really cool to watch them some time to time when chilling on youtube/twitch.
The text was updated successfully, but these errors were encountered:
Elkantor
changed the title
[Optimization]: Optinally adding restrict keyword when possible if target c99 (and not c89)
[Optimization]: Optionally adding restrict keyword when possible if target c99 (and not c89)
Mar 3, 2023
Elkantor
changed the title
[Optimization]: Optionally adding restrict keyword when possible if target c99 (and not c89)
[Optimization]: Optionally adding restrict keyword when possible (depending on the minimal C standard requirement you want for this library)
Mar 3, 2023
Hello tscoding,
First, I really think you did a nice job by providing this library (funny part: I was doing exact same rasterizing stuff myself as a side project when you started olive on streams ;) ).
I don't know what's your minimum requirement for this library to be (maybe C89?), but if targetting standard C99 as minimal requirement, maybe you could add some restrict keyword when it's appropriate.
For example, in this kind of function:
The compiler can't really guess that u1, u2 and det won't alias to each other. With restrict keyword provided, I guess it would make some compiler optimization possible (actually I need to do some benchmark to check that point).
There are several cases in the olive library where that could fit pretty well.
Anyway, thanks again for your streams, it's really cool to watch them some time to time when chilling on youtube/twitch.
The text was updated successfully, but these errors were encountered: