mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-06-27 17:01:10 -04:00
Fixing float generator in regression tests
This commit is contained in:
parent
8dedc74bb2
commit
126c815f83
4 changed files with 4 additions and 4 deletions
|
@ -50,7 +50,7 @@ public:
|
||||||
static const char* type_str() {
|
static const char* type_str() {
|
||||||
return "float";
|
return "float";
|
||||||
}
|
}
|
||||||
static int generate() {
|
static float generate() {
|
||||||
return static_cast<float>(rand()) / RAND_MAX;
|
return static_cast<float>(rand()) / RAND_MAX;
|
||||||
}
|
}
|
||||||
static bool compare(float a, float b, int index, int errors) {
|
static bool compare(float a, float b, int index, int errors) {
|
||||||
|
|
|
@ -50,7 +50,7 @@ public:
|
||||||
static const char* type_str() {
|
static const char* type_str() {
|
||||||
return "float";
|
return "float";
|
||||||
}
|
}
|
||||||
static int generate() {
|
static float generate() {
|
||||||
return static_cast<float>(rand()) / RAND_MAX;
|
return static_cast<float>(rand()) / RAND_MAX;
|
||||||
}
|
}
|
||||||
static bool compare(float a, float b, int index, int errors) {
|
static bool compare(float a, float b, int index, int errors) {
|
||||||
|
|
|
@ -50,7 +50,7 @@ public:
|
||||||
static const char* type_str() {
|
static const char* type_str() {
|
||||||
return "float";
|
return "float";
|
||||||
}
|
}
|
||||||
static int generate() {
|
static float generate() {
|
||||||
return static_cast<float>(rand()) / RAND_MAX;
|
return static_cast<float>(rand()) / RAND_MAX;
|
||||||
}
|
}
|
||||||
static bool compare(float a, float b, int index, int errors) {
|
static bool compare(float a, float b, int index, int errors) {
|
||||||
|
|
|
@ -50,7 +50,7 @@ public:
|
||||||
static const char* type_str() {
|
static const char* type_str() {
|
||||||
return "float";
|
return "float";
|
||||||
}
|
}
|
||||||
static int generate() {
|
static float generate() {
|
||||||
return static_cast<float>(rand()) / RAND_MAX;
|
return static_cast<float>(rand()) / RAND_MAX;
|
||||||
}
|
}
|
||||||
static bool compare(float a, float b, int index, int errors) {
|
static bool compare(float a, float b, int index, int errors) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue