Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
made compatible with gcc44, started to work on array, SSE specialization
- Loading branch information
Showing
9 changed files
with
102 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
|
||
#include <iostream> | ||
///////////////////////////////////////////////////////////////////////////////////// TEST MACROS | ||
static __attribute__((unused)) bool all_pass=true; | ||
static __attribute__((unused)) bool result=false; | ||
//static __attribute__((unused)) bool result=false; | ||
static bool result=false; | ||
#define PASS " pass " | ||
#define FAIL ">>> FAIL <<<" | ||
#define RESULT cout << (result ? PASS : FAIL) << " " << __LINE__ << " "; | ||
#define RESULT std::cout << (result ? PASS : FAIL) << " " << __LINE__ << " "; | ||
|
||
|
||
#define CHECK(e) result=(e); all_pass = (all_pass && result); RESULT; cout << "check: " #e << endl; | ||
#define CHECK(e) result=(e); all_pass = (all_pass && result); RESULT; std::cout << "check: " #e << std::endl; | ||
|
||
#define CHECK_ARE_EQUAL(e1,e2) result=((e1)==(e2)); all_pass = (all_pass && result); RESULT; cout << "are equal: " << result << \ | ||
#define CHECK_ARE_EQUAL(e1,e2) result=((e1)==(e2)); all_pass = (all_pass && result); RESULT; std::cout << "are equal: " << result << \ | ||
" " #e1 " = " << (e1) << \ | ||
" " #e2 " = " << (e2) << endl; | ||
" " #e2 " = " << (e2) << std::endl; | ||
|
||
#define CHECK_NOT_EQUAL(e1,e2) result=((e1)!=(e2)); all_pass = (all_pass && result); RESULT; cout << "not equal: " << result << \ | ||
#define CHECK_NOT_EQUAL(e1,e2) result=((e1)!=(e2)); all_pass = (all_pass && result); RESULT; std::cout << "not equal: " << result << \ | ||
" " #e1 " = " << (e1) << \ | ||
" " #e2 " = " << (e2) << endl; | ||
" " #e2 " = " << (e2) << std::endl; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
#include <limits> | ||
//#include <limits> | ||
#include <lvv/lvv.h> | ||
#include <lvv/math.h> | ||
#include <lvv/check.h> | ||
|