15 if ((
m < 0) || (
m > 255)) {
26 float _x =
static_cast<float>(
x.value());
27 float _y =
static_cast<float>(
y.value());
28 float _z =
static_cast<float>(z.value());
29 float _w =
static_cast<float>(
w.value());
41 TypeArguments::CheckedHandle(zone, arguments->NativeArgAt(0)).IsNull());
52 float _x =
static_cast<float>(v.x());
53 float _y =
static_cast<float>(v.y());
60 float _x =
self.x() + other.x();
61 float _y =
self.y() + other.y();
62 float _z =
self.z() + other.z();
63 float _w =
self.w() + other.w();
79 float _x =
self.x() - other.x();
80 float _y =
self.y() - other.y();
81 float _z =
self.z() - other.z();
82 float _w =
self.w() - other.w();
89 float _x =
self.x() * other.x();
90 float _y =
self.y() * other.y();
91 float _z =
self.z() * other.z();
92 float _w =
self.w() * other.w();
109 uint32_t _x =
a.
x() <
b.x() ? 0xFFFFFFFF : 0x0;
110 uint32_t _y =
a.
y() <
b.y() ? 0xFFFFFFFF : 0x0;
111 uint32_t _z =
a.z() <
b.z() ? 0xFFFFFFFF : 0x0;
112 uint32_t _w =
a.w() <
b.w() ? 0xFFFFFFFF : 0x0;
119 uint32_t _x =
a.
x() <=
b.x() ? 0xFFFFFFFF : 0x0;
120 uint32_t _y =
a.
y() <=
b.y() ? 0xFFFFFFFF : 0x0;
121 uint32_t _z =
a.z() <=
b.z() ? 0xFFFFFFFF : 0x0;
122 uint32_t _w =
a.w() <=
b.w() ? 0xFFFFFFFF : 0x0;
129 uint32_t _x =
a.
x() >
b.x() ? 0xFFFFFFFF : 0x0;
130 uint32_t _y =
a.
y() >
b.y() ? 0xFFFFFFFF : 0x0;
131 uint32_t _z =
a.z() >
b.z() ? 0xFFFFFFFF : 0x0;
132 uint32_t _w =
a.w() >
b.w() ? 0xFFFFFFFF : 0x0;
139 uint32_t _x =
a.
x() >=
b.x() ? 0xFFFFFFFF : 0x0;
140 uint32_t _y =
a.
y() >=
b.y() ? 0xFFFFFFFF : 0x0;
141 uint32_t _z =
a.z() >=
b.z() ? 0xFFFFFFFF : 0x0;
142 uint32_t _w =
a.w() >=
b.w() ? 0xFFFFFFFF : 0x0;
149 uint32_t _x =
a.
x() ==
b.x() ? 0xFFFFFFFF : 0x0;
150 uint32_t _y =
a.
y() ==
b.y() ? 0xFFFFFFFF : 0x0;
151 uint32_t _z =
a.z() ==
b.z() ? 0xFFFFFFFF : 0x0;
152 uint32_t _w =
a.w() ==
b.w() ? 0xFFFFFFFF : 0x0;
159 uint32_t _x =
a.
x() !=
b.x() ? 0xFFFFFFFF : 0x0;
160 uint32_t _y =
a.
y() !=
b.y() ? 0xFFFFFFFF : 0x0;
161 uint32_t _z =
a.z() !=
b.z() ? 0xFFFFFFFF : 0x0;
162 uint32_t _w =
a.w() !=
b.w() ? 0xFFFFFFFF : 0x0;
169 float _s =
static_cast<float>(
scale.value());
170 float _x =
self.x() * _s;
171 float _y =
self.y() * _s;
172 float _z =
self.z() * _s;
173 float _w =
self.w() * _s;
179 float _x = fabsf(
self.x());
180 float _y = fabsf(
self.y());
181 float _z = fabsf(
self.z());
182 float _w = fabsf(
self.w());
198#if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64) || \
199 defined(USING_SIMULATOR)
200 _x =
self.x() < hi.x() ?
self.x() : hi.x();
201 _y =
self.y() < hi.y() ?
self.y() : hi.y();
202 _z =
self.z() < hi.z() ?
self.z() : hi.z();
203 _w =
self.w() < hi.w() ?
self.w() : hi.w();
204 _x = lo.x() < _x ? _x : lo.x();
205 _y = lo.y() < _y ? _y : lo.y();
206 _z = lo.z() < _z ? _z : lo.z();
207 _w = lo.w() < _w ? _w : lo.w();
209 _x = fminf(
self.x(), hi.x());
210 _y = fminf(
self.y(), hi.y());
211 _z = fminf(
self.z(), hi.z());
212 _w = fminf(
self.w(), hi.w());
213 _x = fmaxf(_x, lo.x());
214 _y = fmaxf(_y, lo.y());
215 _z = fmaxf(_z, lo.z());
216 _w = fmaxf(_w, lo.w());
223 double value =
static_cast<double>(
self.x());
229 double value =
static_cast<double>(
self.y());
235 double value =
static_cast<double>(
self.z());
241 double value =
static_cast<double>(
self.w());
247 uint32_t mx = (bit_cast<uint32_t>(
self.x()) & 0x80000000) >> 31;
248 uint32_t my = (bit_cast<uint32_t>(
self.y()) & 0x80000000) >> 31;
249 uint32_t mz = (bit_cast<uint32_t>(
self.z()) & 0x80000000) >> 31;
250 uint32_t mw = (bit_cast<uint32_t>(
self.w()) & 0x80000000) >> 31;
251 uint32_t
value = mx | (my << 1) | (mz << 2) | (mw << 3);
257 uint32_t mx = (
self.x() & 0x80000000) >> 31;
258 uint32_t my = (
self.y() & 0x80000000) >> 31;
259 uint32_t mz = (
self.z() & 0x80000000) >> 31;
260 uint32_t mw = (
self.w() & 0x80000000) >> 31;
261 uint32_t
value = mx | (my << 1) | (mz << 2) | (mw << 3);
268 int64_t
m = mask.AsInt64Value();
271 float _x =
data[
m & 0x3];
272 float _y =
data[(
m >> 2) & 0x3];
273 float _z =
data[(
m >> 4) & 0x3];
274 float _w =
data[(
m >> 6) & 0x3];
282 int64_t
m = mask.AsInt64Value();
285 float other_data[4] = {other.x(), other.y(), other.z(), other.w()};
286 float _x =
data[
m & 0x3];
287 float _y =
data[(
m >> 2) & 0x3];
288 float _z = other_data[(
m >> 4) & 0x3];
289 float _w = other_data[(
m >> 6) & 0x3];
296 float _x =
static_cast<float>(
x.value());
307 float _y =
static_cast<float>(
y.value());
318 float _z =
static_cast<float>(z.value());
329 float _w =
static_cast<float>(
w.value());
336 float _x =
self.x() < other.x() ?
self.x() : other.x();
337 float _y =
self.y() < other.y() ?
self.y() : other.y();
338 float _z =
self.z() < other.z() ?
self.z() : other.z();
339 float _w =
self.w() < other.w() ?
self.w() : other.w();
346 float _x =
self.x() > other.x() ?
self.x() : other.x();
347 float _y =
self.y() > other.y() ?
self.y() : other.y();
348 float _z =
self.z() > other.z() ?
self.z() : other.z();
349 float _w =
self.w() > other.w() ?
self.w() : other.w();
355 float _x = sqrtf(
self.x());
356 float _y = sqrtf(
self.y());
357 float _z = sqrtf(
self.z());
358 float _w = sqrtf(
self.w());
385 int32_t _x =
static_cast<int32_t
>(
x.AsTruncatedUint32Value());
386 int32_t _y =
static_cast<int32_t
>(
y.AsTruncatedUint32Value());
387 int32_t _z =
static_cast<int32_t
>(z.AsTruncatedUint32Value());
388 int32_t _w =
static_cast<int32_t
>(
w.AsTruncatedUint32Value());
397 int32_t _x =
x.value() ? 0xFFFFFFFF : 0x0;
398 int32_t _y =
y.value() ? 0xFFFFFFFF : 0x0;
399 int32_t _z = z.value() ? 0xFFFFFFFF : 0x0;
400 int32_t _w =
w.value() ? 0xFFFFFFFF : 0x0;
412 int32_t _x =
self.x() | other.x();
413 int32_t _y =
self.y() | other.y();
414 int32_t _z =
self.z() | other.z();
415 int32_t _w =
self.w() | other.w();
422 int32_t _x =
self.x() & other.x();
423 int32_t _y =
self.y() & other.y();
424 int32_t _z =
self.z() & other.z();
425 int32_t _w =
self.w() & other.w();
432 int32_t _x =
self.x() ^ other.x();
433 int32_t _y =
self.y() ^ other.y();
434 int32_t _z =
self.z() ^ other.z();
435 int32_t _w =
self.w() ^ other.w();
442 int32_t _x =
self.x() + other.x();
443 int32_t _y =
self.y() + other.y();
444 int32_t _z =
self.z() + other.z();
445 int32_t _w =
self.w() + other.w();
452 int32_t _x =
self.x() - other.x();
453 int32_t _y =
self.y() - other.y();
454 int32_t _z =
self.z() - other.z();
455 int32_t _w =
self.w() - other.w();
486 int64_t
m = mask.AsInt64Value();
489 int32_t _x =
data[
m & 0x3];
490 int32_t _y =
data[(
m >> 2) & 0x3];
491 int32_t _z =
data[(
m >> 4) & 0x3];
492 int32_t _w =
data[(
m >> 6) & 0x3];
500 int64_t
m = mask.AsInt64Value();
503 int32_t zw_data[4] = {zw.x(), zw.y(), zw.z(), zw.w()};
504 int32_t _x =
data[
m & 0x3];
505 int32_t _y =
data[(
m >> 2) & 0x3];
506 int32_t _z = zw_data[(
m >> 4) & 0x3];
507 int32_t _w = zw_data[(
m >> 6) & 0x3];
514 int32_t _x =
static_cast<int32_t
>(
x.AsInt64Value() & 0xFFFFFFFF);
515 int32_t _y =
self.y();
516 int32_t _z =
self.z();
517 int32_t _w =
self.w();
524 int32_t _x =
self.x();
525 int32_t _y =
static_cast<int32_t
>(
y.AsInt64Value() & 0xFFFFFFFF);
526 int32_t _z =
self.z();
527 int32_t _w =
self.w();
534 int32_t _x =
self.x();
535 int32_t _y =
self.y();
536 int32_t _z =
static_cast<int32_t
>(z.AsInt64Value() & 0xFFFFFFFF);
537 int32_t _w =
self.w();
544 int32_t _x =
self.x();
545 int32_t _y =
self.y();
546 int32_t _z =
self.z();
547 int32_t _w =
static_cast<int32_t
>(
w.AsInt64Value() & 0xFFFFFFFF);
578 int32_t _x =
self.x();
579 int32_t _y =
self.y();
580 int32_t _z =
self.z();
581 int32_t _w =
self.w();
589 int32_t _x =
self.x();
590 int32_t _y =
self.y();
591 int32_t _z =
self.z();
592 int32_t _w =
self.w();
600 int32_t _x =
self.x();
601 int32_t _y =
self.y();
602 int32_t _z =
self.z();
603 int32_t _w =
self.w();
611 int32_t _x =
self.x();
612 int32_t _y =
self.y();
613 int32_t _z =
self.z();
614 int32_t _w =
self.w();
632 int32_t _maskX =
self.x();
633 int32_t _maskY =
self.y();
634 int32_t _maskZ =
self.z();
635 int32_t _maskW =
self.w();
666 TypeArguments::CheckedHandle(zone, arguments->NativeArgAt(0)).IsNull());
672 TypeArguments::CheckedHandle(zone, arguments->NativeArgAt(0)).IsNull());
682 double _x =
self.x() + other.x();
683 double _y =
self.y() + other.y();
689 double _x = -
self.x();
690 double _y = -
self.y();
697 double _x =
self.x() - other.x();
698 double _y =
self.y() - other.y();
705 double _x =
self.x() * other.x();
706 double _y =
self.y() * other.y();
721 double _s =
scale.value();
722 double _x =
self.x() * _s;
723 double _y =
self.y() * _s;
729 double _x = fabs(
self.x());
730 double _y = fabs(
self.y());
745#if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64) || \
746 defined(USING_SIMULATOR)
747 _x =
self.x() < hi.x() ?
self.x() : hi.x();
748 _y =
self.y() < hi.y() ?
self.y() : hi.y();
749 _x = lo.x() < _x ? _x : lo.x();
750 _y = lo.y() < _y ? _y : lo.y();
752 _x = fmin(
self.x(), hi.x());
753 _y = fmin(
self.y(), hi.y());
754 _x = fmax(_x, lo.x());
755 _y = fmax(_y, lo.y());
772 uint32_t mx = (bit_cast<uint64_t>(
self.x()) & 0x8000000000000000LL) >> 63;
773 uint32_t my = (bit_cast<uint64_t>(
self.y()) & 0x8000000000000000LL) >> 63;
774 uint32_t
value = mx | (my << 1);
781 double _x =
x.value();
782 double _y =
self.y();
789 double _x =
self.x();
790 double _y =
y.value();
797 double _x =
self.x() < other.x() ?
self.x() : other.x();
798 double _y =
self.y() < other.y() ?
self.y() : other.y();
805 double _x =
self.x() > other.x() ?
self.x() : other.x();
806 double _y =
self.y() > other.y() ?
self.y() : other.y();
static const Bool & Get(bool value)
static const Bool & True()
static DoublePtr New(double d, Heap::Space space=Heap::kNew)
static DART_NORETURN void ThrowRangeError(const char *argument_name, const Integer &argument_value, intptr_t expected_from, intptr_t expected_to)
static Float32x4Ptr New(float value0, float value1, float value2, float value3, Heap::Space space=Heap::kNew)
static Float64x2Ptr New(double value0, double value1, Heap::Space space=Heap::kNew)
static Int32x4Ptr New(int32_t value0, int32_t value1, int32_t value2, int32_t value3, Heap::Space space=Heap::kNew)
static IntegerPtr New(const String &str, Heap::Space space=Heap::kNew)
static float DivideAllowZero(float a, float b)
static void ThrowMaskRangeException(int64_t m)
DEFINE_NATIVE_ENTRY(List_allocate, 0, 2)
static int8_t data[kExtLength]
SIN Vec< N, float > sqrt(const Vec< N, float > &x)
#define GET_NON_NULL_NATIVE_ARGUMENT(type, name, value)