-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
Since PCG is oriented towards speed, I thought I'd mention that as far as performance goes, not being able to inline the core functions like pcg32_random_r has a significant impact on speed. I'm getting around this by simply doing #include "pcg-basic.c" - yes, including the implementation file!
A usual solution is to declare the key functions static inline in the header file, then you don't have to mess around with "out of line" versions.
The more fully featured C library is able to be inlined.
Metadata
Metadata
Assignees
Labels
No labels