2018-03-22 16:10:06 +11:00
|
|
|
/*
|
2018-08-04 15:14:06 +10:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2018-03-22 16:10:06 +11:00
|
|
|
*
|
|
|
|
* Copyright 2018 Danny Robson <danny@nerdcruft.net>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "simd.hpp"
|
|
|
|
|
|
|
|
#include <ostream>
|
|
|
|
|
2018-03-23 17:52:08 +11:00
|
|
|
|
2018-03-22 16:10:06 +11:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
2018-03-23 17:52:08 +11:00
|
|
|
template <size_t S, typename T>
|
2018-03-22 16:10:06 +11:00
|
|
|
std::ostream&
|
2018-08-05 14:42:02 +10:00
|
|
|
cruft::coord::operator<< (std::ostream &os, simd<S,T> val)
|
2018-03-22 16:10:06 +11:00
|
|
|
{
|
|
|
|
return os << "[ "
|
|
|
|
<< val[0] << ", "
|
|
|
|
<< val[1] << ", "
|
|
|
|
<< val[2] << ", "
|
|
|
|
<< val[3]
|
|
|
|
<< " ]";
|
|
|
|
}
|