Skip to content
Snippets Groups Projects
Commit 2efe70af authored by Ulrich Huber's avatar Ulrich Huber
Browse files

[fix] Remove non-functional asserts for now

parent eaa89daf
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ extern "C" {
#endif
#include <stdio.h>
#include <assert.h>
//#include <assert.h>
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
#include <inttypes.h>
......@@ -158,7 +158,7 @@ inline static uint64_t sfmt_genrand_uint64(sfmt_t * sfmt) {
uint64_t r;
#endif
uint64_t * psfmt64 = &sfmt->state[0].u64[0];
assert(sfmt->idx % 2 == 0);
//assert(sfmt->idx % 2 == 0);
if (sfmt->idx >= SFMT_N32) {
sfmt_gen_rand_all(sfmt);
......
......@@ -22,7 +22,7 @@ extern "C" {
#endif
#include <string.h>
#include <assert.h>
//#include <assert.h>
#include <sfmt/SFMT.h>
#include <sfmt/SFMT-params.h>
#include <sfmt/SFMT-common.h>
......@@ -287,9 +287,9 @@ void sfmt_gen_rand_all(sfmt_t * sfmt) {
* returns the pointer to the aligned memory block.
*/
void sfmt_fill_array32(sfmt_t * sfmt, uint32_t *array, int size) {
assert(sfmt->idx == SFMT_N32);
/*assert(sfmt->idx == SFMT_N32);
assert(size % 4 == 0);
assert(size >= SFMT_N32);
assert(size >= SFMT_N32);*/
gen_rand_array(sfmt, (w128_t *)array, size / 4);
sfmt->idx = SFMT_N32;
......@@ -323,9 +323,9 @@ void sfmt_fill_array32(sfmt_t * sfmt, uint32_t *array, int size) {
* returns the pointer to the aligned memory block.
*/
void sfmt_fill_array64(sfmt_t * sfmt, uint64_t *array, int size) {
assert(sfmt->idx == SFMT_N32);
/*assert(sfmt->idx == SFMT_N32);
assert(size % 2 == 0);
assert(size >= SFMT_N64);
assert(size >= SFMT_N64);*/
gen_rand_array(sfmt, (w128_t *)array, size / 2);
sfmt->idx = SFMT_N32;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment