123456789101112131415161718192021222324252627282930313233343536 |
- //
- // File: eml_rand_mt19937ar_stateful.cpp
- //
- // MATLAB Coder version : 5.2
- // C/C++ source code generated on : 09-Mar-2023 16:57:20
- //
- // Include Files
- #include "fun8_eml_rand_mt19937ar_stateful.h"
- #include "fun8_AMJamming_H_data.h"
- #include "rt_nonfinite.h"
- #include <cstring>
- // Function Definitions
- //
- // Arguments : void
- // Return Type : void
- //
- void eml_rand_mt19937ar_stateful_init_8()
- {
- unsigned int r;
- std::memset(&stateL_8[0], 0, 625U * sizeof(unsigned int));
- r = 5489U;
- stateL_8[0] = 5489U;
- for (int mti{0}; mti < 623; mti++) {
- r = ((r ^ r >> 30U) * 1812433253U + mti) + 1U;
- stateL_8[mti + 1] = r;
- }
- stateL_8[624] = 624U;
- }
- //
- // File trailer for eml_rand_mt19937ar_stateful.cpp
- //
- // [EOF]
- //
|