- Timestamp:
- Oct 8, 2023, 9:37:35 AM (16 months ago)
- Branches:
- master
- Children:
- be8ee65
- Parents:
- 92211d9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/stdlib.hfa
r92211d9 r3770b87 10 10 // Created On : Thu Jan 28 17:12:35 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S at Sep 2 18:29:35202313 // Update Count : 78 012 // Last Modified On : Sun Oct 8 09:18:28 2023 13 // Update Count : 789 14 14 // 15 15 … … 431 431 uint32_t seed; // current seed 432 432 PRNG_STATE_32_T state; // random state 433 }; // PRNG 433 }; // PRNG32 434 434 435 435 static inline { … … 442 442 uint32_t prng( PRNG32 & prng, uint32_t l, uint32_t u ) __attribute__(( warn_unused_result )) { return prng( prng, u - l + 1 ) + l; } // [l,u] 443 443 uint32_t calls( PRNG32 & prng ) __attribute__(( warn_unused_result )) with( prng ) { return callcnt; } 444 } // distribution 444 void copy( PRNG32 & dst, PRNG32 & src ) { dst = src; } // checkpoint PRNG state, use autogen assignment 445 } // distribution 446 void ?{}( PRNG32 &, PRNG32 & ) = void; // no copy, remove autogen copy constructor 447 PRNG32 & ?=?( PRNG32 &, const PRNG32 ) = void; // no assignment, remove autogen assignment 445 448 446 449 struct PRNG64 { … … 448 451 uint64_t seed; // current seed 449 452 PRNG_STATE_64_T state; // random state 450 }; // PRNG 453 }; // PRNG64 451 454 452 455 static inline { … … 459 462 uint64_t prng( PRNG64 & prng, uint64_t l, uint64_t u ) __attribute__(( warn_unused_result )) { return prng( prng, u - l + 1 ) + l; } // [l,u] 460 463 uint64_t calls( PRNG64 & prng ) __attribute__(( warn_unused_result )) with( prng ) { return callcnt; } 461 } // distribution 464 void copy( PRNG64 & dst, PRNG64 & src ) { dst = src; } // checkpoint PRNG state, use autogen assignment 465 } // distribution 466 void ?{}( PRNG64 &, PRNG64 & ) = void; // no copy, remove autogen copy constructor 467 PRNG64 & ?=?( PRNG64 &, const PRNG64 ) = void; // no assignment, remove autogen assignment 462 468 463 469 // Set default random-generator size.
Note: See TracChangeset
for help on using the changeset viewer.