ReXGlue SDK
Loading...
Searching...
No Matches
vec128.h File Reference
#include <charconv>
#include <cstddef>
#include <format>
#include <iosfwd>
#include <string>
#include <string_view>
#include <rex/assert.h>
#include <rex/platform.h>
#include <rex/string/numeric.h>
#include <rex/types.h>
#include <simde/x86/sse2.h>

Go to the source code of this file.

Classes

struct  rex::ppc::Vec128S

Namespaces

namespace  rex
namespace  rex::ppc

Typedefs

using rex::ppc::Vec128 = Vec128S

Functions

std::string rex::ppc::to_string (const Vec128 &value)
std::ostream & rex::ppc::operator<< (std::ostream &os, const Vec128 &value)
std::string rex::ppc::to_hex_string (const Vec128 &value)
template<>
ppc::Vec128 rex::string::from_string< ppc::Vec128 > (const std::string_view value, bool force_hex)
template<int N>
f32 rex::ppc::m128_f32 (const simde__m128 &v)
template<int N>
i32 rex::ppc::m128_i32 (const simde__m128 &v)
template<int N>
f64 rex::ppc::m128_f64 (const simde__m128d &v)
template<int N>
f64 rex::ppc::m128_f64 (const simde__m128 &v)
template<int N>
i64 rex::ppc::m128_i64 (const simde__m128d &v)
template<int N>
i64 rex::ppc::m128_i64 (const simde__m128 &v)

Detailed Description

License
BSD 3-Clause License See LICENSE file in the project root for full license text.
Remarks
Derived from Xenia's xenia/base/vec128.h (Ben Vanik, 2013).

Function Documentation

◆ from_string< ppc::Vec128 >()

template<>
ppc::Vec128 rex::string::from_string< ppc::Vec128 > ( const std::string_view value,
bool force_hex )
inline

Parses "[a b c d]" or bare text as four hex u32 lanes, and "(a, b, c, d)" as four f32 lanes.

Parameters
force_hexUnused, the opening bracket picks the format.
Returns
The vector, or a zero vector when the text does not parse.