11/*
2- Copyright (c) 2017-2021 , Intel Corporation
2+ Copyright (c) 2017-2024 , Intel Corporation
33
44 Redistribution and use in source and binary forms, with or without
55 modification, are permitted provided that the following conditions are met:
@@ -1510,7 +1510,7 @@ void irk_discrete_uniform_long_vec(irk_state *state, npy_intp len, long *res, co
15101510 int *buf = (int *)mkl_malloc (len * sizeof (int ), 64 );
15111511 assert (buf != nullptr );
15121512
1513- err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, -1 , (const int )max);
1513+ err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, -1 , (int )max);
15141514 assert (err == VSL_STATUS_OK);
15151515
15161516 DIST_PRAGMA_VECTOR
@@ -1626,7 +1626,7 @@ void irk_rand_bool_vec(irk_state *state, npy_intp len, npy_bool *res, const npy_
16261626 buf = (int *)mkl_malloc (len * sizeof (int ), 64 );
16271627 assert (buf != nullptr );
16281628
1629- err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, (const int )lo, (const int )hi + 1 );
1629+ err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, (int )lo, (int )hi + 1 );
16301630 assert (err == VSL_STATUS_OK);
16311631
16321632 DIST_PRAGMA_VECTOR
@@ -1666,7 +1666,7 @@ void irk_rand_uint8_vec(irk_state *state, npy_intp len, npy_uint8 *res, const np
16661666 buf = (int *)mkl_malloc (len * sizeof (int ), 64 );
16671667 assert (buf != nullptr );
16681668
1669- err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, (const int )lo, (const int )hi + 1 );
1669+ err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, (int )lo, (int )hi + 1 );
16701670 assert (err == VSL_STATUS_OK);
16711671
16721672 DIST_PRAGMA_VECTOR
@@ -1706,7 +1706,7 @@ void irk_rand_int8_vec(irk_state *state, npy_intp len, npy_int8 *res, const npy_
17061706 buf = (int *)mkl_malloc (len * sizeof (int ), 64 );
17071707 assert (buf != nullptr );
17081708
1709- err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, (const int )lo, (const int )hi + 1 );
1709+ err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, (int )lo, (int )hi + 1 );
17101710 assert (err == VSL_STATUS_OK);
17111711
17121712 DIST_PRAGMA_VECTOR
@@ -1746,7 +1746,7 @@ void irk_rand_uint16_vec(irk_state *state, npy_intp len, npy_uint16 *res, const
17461746 buf = (int *)mkl_malloc (len * sizeof (int ), 64 );
17471747 assert (buf != nullptr );
17481748
1749- err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, (const int )lo, (const int )hi + 1 );
1749+ err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, (int )lo, (int )hi + 1 );
17501750 assert (err == VSL_STATUS_OK);
17511751
17521752 DIST_PRAGMA_VECTOR
@@ -1786,7 +1786,7 @@ void irk_rand_int16_vec(irk_state *state, npy_intp len, npy_int16 *res, const np
17861786 buf = (int *)mkl_malloc (len * sizeof (int ), 64 );
17871787 assert (buf != nullptr );
17881788
1789- err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, (const int )lo, (const int )hi + 1 );
1789+ err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, (int )lo, (int )hi + 1 );
17901790 assert (err == VSL_STATUS_OK);
17911791
17921792 DIST_PRAGMA_VECTOR
@@ -1831,7 +1831,7 @@ void irk_rand_uint32_vec(irk_state *state, npy_intp len, npy_uint32 *res, const
18311831 if (lo)
18321832 shft++;
18331833
1834- err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, (int *)res, (const int )(lo - shft), (const int )(hi - shft + 1U ));
1834+ err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, (int *)res, (int )(lo - shft), (int )(hi - shft + 1U ));
18351835 assert (err == VSL_STATUS_OK);
18361836
18371837 DIST_PRAGMA_VECTOR
@@ -1840,7 +1840,7 @@ void irk_rand_uint32_vec(irk_state *state, npy_intp len, npy_uint32 *res, const
18401840 }
18411841 else
18421842 {
1843- err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, (int *)res, (const int )lo, (const int )hi + 1 );
1843+ err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, (int *)res, (int )lo, (int )hi + 1 );
18441844 assert (err == VSL_STATUS_OK);
18451845 }
18461846}
@@ -1873,7 +1873,7 @@ void irk_rand_int32_vec(irk_state *state, npy_intp len, npy_int32 *res, const np
18731873 }
18741874 else
18751875 {
1876- err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, (int *)res, (const int )lo, (const int )hi + 1 );
1876+ err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, (int *)res, (int )lo, (int )hi + 1 );
18771877 assert (err == VSL_STATUS_OK);
18781878 }
18791879}
@@ -1921,7 +1921,7 @@ void irk_rand_uint64_vec(irk_state *state, npy_intp len, npy_uint64 *res, const
19211921 int *buf = (int *)mkl_malloc (len * sizeof (int ), 64 );
19221922 assert (buf != nullptr );
19231923
1924- err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, 0 , (const int )rng);
1924+ err = viRngUniform (VSL_RNG_METHOD_UNIFORM_STD, state->stream , len, buf, 0 , (int )rng);
19251925 assert (err == VSL_STATUS_OK);
19261926
19271927 DIST_PRAGMA_VECTOR
0 commit comments