| 1 |
// Code generated by 'tmplgen'; DO NOT EDIT. |
| 2 |
|
| 3 |
//go:build goexperiment.simd |
| 4 |
|
| 5 |
package archsimd |
| 6 |
|
| 7 |
// BroadcastInt8x16 returns a vector with the input |
| 8 |
// x assigned to all elements of the output. |
| 9 |
// |
| 10 |
// Emulated, CPU Feature: AVX2 |
| 11 |
func BroadcastInt8x16(x int8) Int8x16 { |
| 12 |
var z Int8x16 |
| 13 |
return z.SetElem(0, x).Broadcast1To16() |
| 14 |
} |
| 15 |
|
| 16 |
// BroadcastInt16x8 returns a vector with the input |
| 17 |
// x assigned to all elements of the output. |
| 18 |
// |
| 19 |
// Emulated, CPU Feature: AVX2 |
| 20 |
func BroadcastInt16x8(x int16) Int16x8 { |
| 21 |
var z Int16x8 |
| 22 |
return z.SetElem(0, x).Broadcast1To8() |
| 23 |
} |
| 24 |
|
| 25 |
// BroadcastInt32x4 returns a vector with the input |
| 26 |
// x assigned to all elements of the output. |
| 27 |
// |
| 28 |
// Emulated, CPU Feature: AVX2 |
| 29 |
func BroadcastInt32x4(x int32) Int32x4 { |
| 30 |
var z Int32x4 |
| 31 |
return z.SetElem(0, x).Broadcast1To4() |
| 32 |
} |
| 33 |
|
| 34 |
// BroadcastInt64x2 returns a vector with the input |
| 35 |
// x assigned to all elements of the output. |
| 36 |
// |
| 37 |
// Emulated, CPU Feature: AVX2 |
| 38 |
func BroadcastInt64x2(x int64) Int64x2 { |
| 39 |
var z Int64x2 |
| 40 |
return z.SetElem(0, x).Broadcast1To2() |
| 41 |
} |
| 42 |
|
| 43 |
// BroadcastUint8x16 returns a vector with the input |
| 44 |
// x assigned to all elements of the output. |
| 45 |
// |
| 46 |
// Emulated, CPU Feature: AVX2 |
| 47 |
func BroadcastUint8x16(x uint8) Uint8x16 { |
| 48 |
var z Uint8x16 |
| 49 |
return z.SetElem(0, x).Broadcast1To16() |
| 50 |
} |
| 51 |
|
| 52 |
// BroadcastUint16x8 returns a vector with the input |
| 53 |
// x assigned to all elements of the output. |
| 54 |
// |
| 55 |
// Emulated, CPU Feature: AVX2 |
| 56 |
func BroadcastUint16x8(x uint16) Uint16x8 { |
| 57 |
var z Uint16x8 |
| 58 |
return z.SetElem(0, x).Broadcast1To8() |
| 59 |
} |
| 60 |
|
| 61 |
// BroadcastUint32x4 returns a vector with the input |
| 62 |
// x assigned to all elements of the output. |
| 63 |
// |
| 64 |
// Emulated, CPU Feature: AVX2 |
| 65 |
func BroadcastUint32x4(x uint32) Uint32x4 { |
| 66 |
var z Uint32x4 |
| 67 |
return z.SetElem(0, x).Broadcast1To4() |
| 68 |
} |
| 69 |
|
| 70 |
// BroadcastUint64x2 returns a vector with the input |
| 71 |
// x assigned to all elements of the output. |
| 72 |
// |
| 73 |
// Emulated, CPU Feature: AVX2 |
| 74 |
func BroadcastUint64x2(x uint64) Uint64x2 { |
| 75 |
var z Uint64x2 |
| 76 |
return z.SetElem(0, x).Broadcast1To2() |
| 77 |
} |
| 78 |
|
| 79 |
// BroadcastFloat32x4 returns a vector with the input |
| 80 |
// x assigned to all elements of the output. |
| 81 |
// |
| 82 |
// Emulated, CPU Feature: AVX2 |
| 83 |
func BroadcastFloat32x4(x float32) Float32x4 { |
| 84 |
var z Float32x4 |
| 85 |
return z.SetElem(0, x).Broadcast1To4() |
| 86 |
} |
| 87 |
|
| 88 |
// BroadcastFloat64x2 returns a vector with the input |
| 89 |
// x assigned to all elements of the output. |
| 90 |
// |
| 91 |
// Emulated, CPU Feature: AVX2 |
| 92 |
func BroadcastFloat64x2(x float64) Float64x2 { |
| 93 |
var z Float64x2 |
| 94 |
return z.SetElem(0, x).Broadcast1To2() |
| 95 |
} |
| 96 |
|
| 97 |
// BroadcastInt8x32 returns a vector with the input |
| 98 |
// x assigned to all elements of the output. |
| 99 |
// |
| 100 |
// Emulated, CPU Feature: AVX2 |
| 101 |
func BroadcastInt8x32(x int8) Int8x32 { |
| 102 |
var z Int8x16 |
| 103 |
return z.SetElem(0, x).Broadcast1To32() |
| 104 |
} |
| 105 |
|
| 106 |
// BroadcastInt16x16 returns a vector with the input |
| 107 |
// x assigned to all elements of the output. |
| 108 |
// |
| 109 |
// Emulated, CPU Feature: AVX2 |
| 110 |
func BroadcastInt16x16(x int16) Int16x16 { |
| 111 |
var z Int16x8 |
| 112 |
return z.SetElem(0, x).Broadcast1To16() |
| 113 |
} |
| 114 |
|
| 115 |
// BroadcastInt32x8 returns a vector with the input |
| 116 |
// x assigned to all elements of the output. |
| 117 |
// |
| 118 |
// Emulated, CPU Feature: AVX2 |
| 119 |
func BroadcastInt32x8(x int32) Int32x8 { |
| 120 |
var z Int32x4 |
| 121 |
return z.SetElem(0, x).Broadcast1To8() |
| 122 |
} |
| 123 |
|
| 124 |
// BroadcastInt64x4 returns a vector with the input |
| 125 |
// x assigned to all elements of the output. |
| 126 |
// |
| 127 |
// Emulated, CPU Feature: AVX2 |
| 128 |
func BroadcastInt64x4(x int64) Int64x4 { |
| 129 |
var z Int64x2 |
| 130 |
return z.SetElem(0, x).Broadcast1To4() |
| 131 |
} |
| 132 |
|
| 133 |
// BroadcastUint8x32 returns a vector with the input |
| 134 |
// x assigned to all elements of the output. |
| 135 |
// |
| 136 |
// Emulated, CPU Feature: AVX2 |
| 137 |
func BroadcastUint8x32(x uint8) Uint8x32 { |
| 138 |
var z Uint8x16 |
| 139 |
return z.SetElem(0, x).Broadcast1To32() |
| 140 |
} |
| 141 |
|
| 142 |
// BroadcastUint16x16 returns a vector with the input |
| 143 |
// x assigned to all elements of the output. |
| 144 |
// |
| 145 |
// Emulated, CPU Feature: AVX2 |
| 146 |
func BroadcastUint16x16(x uint16) Uint16x16 { |
| 147 |
var z Uint16x8 |
| 148 |
return z.SetElem(0, x).Broadcast1To16() |
| 149 |
} |
| 150 |
|
| 151 |
// BroadcastUint32x8 returns a vector with the input |
| 152 |
// x assigned to all elements of the output. |
| 153 |
// |
| 154 |
// Emulated, CPU Feature: AVX2 |
| 155 |
func BroadcastUint32x8(x uint32) Uint32x8 { |
| 156 |
var z Uint32x4 |
| 157 |
return z.SetElem(0, x).Broadcast1To8() |
| 158 |
} |
| 159 |
|
| 160 |
// BroadcastUint64x4 returns a vector with the input |
| 161 |
// x assigned to all elements of the output. |
| 162 |
// |
| 163 |
// Emulated, CPU Feature: AVX2 |
| 164 |
func BroadcastUint64x4(x uint64) Uint64x4 { |
| 165 |
var z Uint64x2 |
| 166 |
return z.SetElem(0, x).Broadcast1To4() |
| 167 |
} |
| 168 |
|
| 169 |
// BroadcastFloat32x8 returns a vector with the input |
| 170 |
// x assigned to all elements of the output. |
| 171 |
// |
| 172 |
// Emulated, CPU Feature: AVX2 |
| 173 |
func BroadcastFloat32x8(x float32) Float32x8 { |
| 174 |
var z Float32x4 |
| 175 |
return z.SetElem(0, x).Broadcast1To8() |
| 176 |
} |
| 177 |
|
| 178 |
// BroadcastFloat64x4 returns a vector with the input |
| 179 |
// x assigned to all elements of the output. |
| 180 |
// |
| 181 |
// Emulated, CPU Feature: AVX2 |
| 182 |
func BroadcastFloat64x4(x float64) Float64x4 { |
| 183 |
var z Float64x2 |
| 184 |
return z.SetElem(0, x).Broadcast1To4() |
| 185 |
} |
| 186 |
|
| 187 |
// BroadcastInt8x64 returns a vector with the input |
| 188 |
// x assigned to all elements of the output. |
| 189 |
// |
| 190 |
// Emulated, CPU Feature: AVX512BW |
| 191 |
func BroadcastInt8x64(x int8) Int8x64 { |
| 192 |
var z Int8x16 |
| 193 |
return z.SetElem(0, x).Broadcast1To64() |
| 194 |
} |
| 195 |
|
| 196 |
// BroadcastInt16x32 returns a vector with the input |
| 197 |
// x assigned to all elements of the output. |
| 198 |
// |
| 199 |
// Emulated, CPU Feature: AVX512BW |
| 200 |
func BroadcastInt16x32(x int16) Int16x32 { |
| 201 |
var z Int16x8 |
| 202 |
return z.SetElem(0, x).Broadcast1To32() |
| 203 |
} |
| 204 |
|
| 205 |
// BroadcastInt32x16 returns a vector with the input |
| 206 |
// x assigned to all elements of the output. |
| 207 |
// |
| 208 |
// Emulated, CPU Feature: AVX512F |
| 209 |
func BroadcastInt32x16(x int32) Int32x16 { |
| 210 |
var z Int32x4 |
| 211 |
return z.SetElem(0, x).Broadcast1To16() |
| 212 |
} |
| 213 |
|
| 214 |
// BroadcastInt64x8 returns a vector with the input |
| 215 |
// x assigned to all elements of the output. |
| 216 |
// |
| 217 |
// Emulated, CPU Feature: AVX512F |
| 218 |
func BroadcastInt64x8(x int64) Int64x8 { |
| 219 |
var z Int64x2 |
| 220 |
return z.SetElem(0, x).Broadcast1To8() |
| 221 |
} |
| 222 |
|
| 223 |
// BroadcastUint8x64 returns a vector with the input |
| 224 |
// x assigned to all elements of the output. |
| 225 |
// |
| 226 |
// Emulated, CPU Feature: AVX512BW |
| 227 |
func BroadcastUint8x64(x uint8) Uint8x64 { |
| 228 |
var z Uint8x16 |
| 229 |
return z.SetElem(0, x).Broadcast1To64() |
| 230 |
} |
| 231 |
|
| 232 |
// BroadcastUint16x32 returns a vector with the input |
| 233 |
// x assigned to all elements of the output. |
| 234 |
// |
| 235 |
// Emulated, CPU Feature: AVX512BW |
| 236 |
func BroadcastUint16x32(x uint16) Uint16x32 { |
| 237 |
var z Uint16x8 |
| 238 |
return z.SetElem(0, x).Broadcast1To32() |
| 239 |
} |
| 240 |
|
| 241 |
// BroadcastUint32x16 returns a vector with the input |
| 242 |
// x assigned to all elements of the output. |
| 243 |
// |
| 244 |
// Emulated, CPU Feature: AVX512F |
| 245 |
func BroadcastUint32x16(x uint32) Uint32x16 { |
| 246 |
var z Uint32x4 |
| 247 |
return z.SetElem(0, x).Broadcast1To16() |
| 248 |
} |
| 249 |
|
| 250 |
// BroadcastUint64x8 returns a vector with the input |
| 251 |
// x assigned to all elements of the output. |
| 252 |
// |
| 253 |
// Emulated, CPU Feature: AVX512F |
| 254 |
func BroadcastUint64x8(x uint64) Uint64x8 { |
| 255 |
var z Uint64x2 |
| 256 |
return z.SetElem(0, x).Broadcast1To8() |
| 257 |
} |
| 258 |
|
| 259 |
// BroadcastFloat32x16 returns a vector with the input |
| 260 |
// x assigned to all elements of the output. |
| 261 |
// |
| 262 |
// Emulated, CPU Feature: AVX512F |
| 263 |
func BroadcastFloat32x16(x float32) Float32x16 { |
| 264 |
var z Float32x4 |
| 265 |
return z.SetElem(0, x).Broadcast1To16() |
| 266 |
} |
| 267 |
|
| 268 |
// BroadcastFloat64x8 returns a vector with the input |
| 269 |
// x assigned to all elements of the output. |
| 270 |
// |
| 271 |
// Emulated, CPU Feature: AVX512F |
| 272 |
func BroadcastFloat64x8(x float64) Float64x8 { |
| 273 |
var z Float64x2 |
| 274 |
return z.SetElem(0, x).Broadcast1To8() |
| 275 |
} |
| 276 |
|
| 277 |
// ToMask converts from Int8x16 to Mask8x16, mask element is set to true when the corresponding vector element is non-zero. |
| 278 |
func (from Int8x16) ToMask() (to Mask8x16) { |
| 279 |
return from.NotEqual(Int8x16{}) |
| 280 |
} |
| 281 |
|
| 282 |
// ToMask converts from Int16x8 to Mask16x8, mask element is set to true when the corresponding vector element is non-zero. |
| 283 |
func (from Int16x8) ToMask() (to Mask16x8) { |
| 284 |
return from.NotEqual(Int16x8{}) |
| 285 |
} |
| 286 |
|
| 287 |
// ToMask converts from Int32x4 to Mask32x4, mask element is set to true when the corresponding vector element is non-zero. |
| 288 |
func (from Int32x4) ToMask() (to Mask32x4) { |
| 289 |
return from.NotEqual(Int32x4{}) |
| 290 |
} |
| 291 |
|
| 292 |
// ToMask converts from Int64x2 to Mask64x2, mask element is set to true when the corresponding vector element is non-zero. |
| 293 |
func (from Int64x2) ToMask() (to Mask64x2) { |
| 294 |
return from.NotEqual(Int64x2{}) |
| 295 |
} |
| 296 |
|
| 297 |
// ToMask converts from Int8x32 to Mask8x32, mask element is set to true when the corresponding vector element is non-zero. |
| 298 |
func (from Int8x32) ToMask() (to Mask8x32) { |
| 299 |
return from.NotEqual(Int8x32{}) |
| 300 |
} |
| 301 |
|
| 302 |
// ToMask converts from Int16x16 to Mask16x16, mask element is set to true when the corresponding vector element is non-zero. |
| 303 |
func (from Int16x16) ToMask() (to Mask16x16) { |
| 304 |
return from.NotEqual(Int16x16{}) |
| 305 |
} |
| 306 |
|
| 307 |
// ToMask converts from Int32x8 to Mask32x8, mask element is set to true when the corresponding vector element is non-zero. |
| 308 |
func (from Int32x8) ToMask() (to Mask32x8) { |
| 309 |
return from.NotEqual(Int32x8{}) |
| 310 |
} |
| 311 |
|
| 312 |
// ToMask converts from Int64x4 to Mask64x4, mask element is set to true when the corresponding vector element is non-zero. |
| 313 |
func (from Int64x4) ToMask() (to Mask64x4) { |
| 314 |
return from.NotEqual(Int64x4{}) |
| 315 |
} |
| 316 |
|
| 317 |
// ToMask converts from Int8x64 to Mask8x64, mask element is set to true when the corresponding vector element is non-zero. |
| 318 |
func (from Int8x64) ToMask() (to Mask8x64) { |
| 319 |
return from.NotEqual(Int8x64{}) |
| 320 |
} |
| 321 |
|
| 322 |
// ToMask converts from Int16x32 to Mask16x32, mask element is set to true when the corresponding vector element is non-zero. |
| 323 |
func (from Int16x32) ToMask() (to Mask16x32) { |
| 324 |
return from.NotEqual(Int16x32{}) |
| 325 |
} |
| 326 |
|
| 327 |
// ToMask converts from Int32x16 to Mask32x16, mask element is set to true when the corresponding vector element is non-zero. |
| 328 |
func (from Int32x16) ToMask() (to Mask32x16) { |
| 329 |
return from.NotEqual(Int32x16{}) |
| 330 |
} |
| 331 |
|
| 332 |
// ToMask converts from Int64x8 to Mask64x8, mask element is set to true when the corresponding vector element is non-zero. |
| 333 |
func (from Int64x8) ToMask() (to Mask64x8) { |
| 334 |
return from.NotEqual(Int64x8{}) |
| 335 |
} |
| 336 |
|
| 337 |
// Not returns the bitwise complement of x. |
| 338 |
// |
| 339 |
// Emulated, CPU Feature: AVX |
| 340 |
func (x Int8x16) Not() Int8x16 { |
| 341 |
return x.Xor(x.Equal(x).ToInt8x16()) |
| 342 |
} |
| 343 |
|
| 344 |
// Not returns the bitwise complement of x. |
| 345 |
// |
| 346 |
// Emulated, CPU Feature: AVX |
| 347 |
func (x Int16x8) Not() Int16x8 { |
| 348 |
return x.Xor(x.Equal(x).ToInt16x8()) |
| 349 |
} |
| 350 |
|
| 351 |
// Not returns the bitwise complement of x. |
| 352 |
// |
| 353 |
// Emulated, CPU Feature: AVX |
| 354 |
func (x Int32x4) Not() Int32x4 { |
| 355 |
return x.Xor(x.Equal(x).ToInt32x4()) |
| 356 |
} |
| 357 |
|
| 358 |
// Not returns the bitwise complement of x. |
| 359 |
// |
| 360 |
// Emulated, CPU Feature: AVX |
| 361 |
func (x Int64x2) Not() Int64x2 { |
| 362 |
return x.Xor(x.Equal(x).ToInt64x2()) |
| 363 |
} |
| 364 |
|
| 365 |
// Not returns the bitwise complement of x. |
| 366 |
// |
| 367 |
// Emulated, CPU Feature: AVX2 |
| 368 |
func (x Int8x32) Not() Int8x32 { |
| 369 |
return x.Xor(x.Equal(x).ToInt8x32()) |
| 370 |
} |
| 371 |
|
| 372 |
// Not returns the bitwise complement of x. |
| 373 |
// |
| 374 |
// Emulated, CPU Feature: AVX2 |
| 375 |
func (x Int16x16) Not() Int16x16 { |
| 376 |
return x.Xor(x.Equal(x).ToInt16x16()) |
| 377 |
} |
| 378 |
|
| 379 |
// Not returns the bitwise complement of x. |
| 380 |
// |
| 381 |
// Emulated, CPU Feature: AVX2 |
| 382 |
func (x Int32x8) Not() Int32x8 { |
| 383 |
return x.Xor(x.Equal(x).ToInt32x8()) |
| 384 |
} |
| 385 |
|
| 386 |
// Not returns the bitwise complement of x. |
| 387 |
// |
| 388 |
// Emulated, CPU Feature: AVX2 |
| 389 |
func (x Int64x4) Not() Int64x4 { |
| 390 |
return x.Xor(x.Equal(x).ToInt64x4()) |
| 391 |
} |
| 392 |
|
| 393 |
// Not returns the bitwise complement of x. |
| 394 |
// |
| 395 |
// Emulated, CPU Feature: AVX512 |
| 396 |
func (x Int8x64) Not() Int8x64 { |
| 397 |
return x.Xor(x.Equal(x).ToInt8x64()) |
| 398 |
} |
| 399 |
|
| 400 |
// Not returns the bitwise complement of x. |
| 401 |
// |
| 402 |
// Emulated, CPU Feature: AVX512 |
| 403 |
func (x Int16x32) Not() Int16x32 { |
| 404 |
return x.Xor(x.Equal(x).ToInt16x32()) |
| 405 |
} |
| 406 |
|
| 407 |
// Not returns the bitwise complement of x. |
| 408 |
// |
| 409 |
// Emulated, CPU Feature: AVX512 |
| 410 |
func (x Int32x16) Not() Int32x16 { |
| 411 |
return x.Xor(x.Equal(x).ToInt32x16()) |
| 412 |
} |
| 413 |
|
| 414 |
// Not returns the bitwise complement of x. |
| 415 |
// |
| 416 |
// Emulated, CPU Feature: AVX512 |
| 417 |
func (x Int64x8) Not() Int64x8 { |
| 418 |
return x.Xor(x.Equal(x).ToInt64x8()) |
| 419 |
} |
| 420 |
|
| 421 |
// Not returns the bitwise complement of x. |
| 422 |
// |
| 423 |
// Emulated, CPU Feature: AVX |
| 424 |
func (x Uint8x16) Not() Uint8x16 { |
| 425 |
return x.Xor(x.Equal(x).ToInt8x16().AsUint8x16()) |
| 426 |
} |
| 427 |
|
| 428 |
// Not returns the bitwise complement of x. |
| 429 |
// |
| 430 |
// Emulated, CPU Feature: AVX |
| 431 |
func (x Uint16x8) Not() Uint16x8 { |
| 432 |
return x.Xor(x.Equal(x).ToInt16x8().AsUint16x8()) |
| 433 |
} |
| 434 |
|
| 435 |
// Not returns the bitwise complement of x. |
| 436 |
// |
| 437 |
// Emulated, CPU Feature: AVX |
| 438 |
func (x Uint32x4) Not() Uint32x4 { |
| 439 |
return x.Xor(x.Equal(x).ToInt32x4().AsUint32x4()) |
| 440 |
} |
| 441 |
|
| 442 |
// Not returns the bitwise complement of x. |
| 443 |
// |
| 444 |
// Emulated, CPU Feature: AVX |
| 445 |
func (x Uint64x2) Not() Uint64x2 { |
| 446 |
return x.Xor(x.Equal(x).ToInt64x2().AsUint64x2()) |
| 447 |
} |
| 448 |
|
| 449 |
// Not returns the bitwise complement of x. |
| 450 |
// |
| 451 |
// Emulated, CPU Feature: AVX2 |
| 452 |
func (x Uint8x32) Not() Uint8x32 { |
| 453 |
return x.Xor(x.Equal(x).ToInt8x32().AsUint8x32()) |
| 454 |
} |
| 455 |
|
| 456 |
// Not returns the bitwise complement of x. |
| 457 |
// |
| 458 |
// Emulated, CPU Feature: AVX2 |
| 459 |
func (x Uint16x16) Not() Uint16x16 { |
| 460 |
return x.Xor(x.Equal(x).ToInt16x16().AsUint16x16()) |
| 461 |
} |
| 462 |
|
| 463 |
// Not returns the bitwise complement of x. |
| 464 |
// |
| 465 |
// Emulated, CPU Feature: AVX2 |
| 466 |
func (x Uint32x8) Not() Uint32x8 { |
| 467 |
return x.Xor(x.Equal(x).ToInt32x8().AsUint32x8()) |
| 468 |
} |
| 469 |
|
| 470 |
// Not returns the bitwise complement of x. |
| 471 |
// |
| 472 |
// Emulated, CPU Feature: AVX2 |
| 473 |
func (x Uint64x4) Not() Uint64x4 { |
| 474 |
return x.Xor(x.Equal(x).ToInt64x4().AsUint64x4()) |
| 475 |
} |
| 476 |
|
| 477 |
// Not returns the bitwise complement of x. |
| 478 |
// |
| 479 |
// Emulated, CPU Feature: AVX512 |
| 480 |
func (x Uint8x64) Not() Uint8x64 { |
| 481 |
return x.Xor(x.Equal(x).ToInt8x64().AsUint8x64()) |
| 482 |
} |
| 483 |
|
| 484 |
// Not returns the bitwise complement of x. |
| 485 |
// |
| 486 |
// Emulated, CPU Feature: AVX512 |
| 487 |
func (x Uint16x32) Not() Uint16x32 { |
| 488 |
return x.Xor(x.Equal(x).ToInt16x32().AsUint16x32()) |
| 489 |
} |
| 490 |
|
| 491 |
// Not returns the bitwise complement of x. |
| 492 |
// |
| 493 |
// Emulated, CPU Feature: AVX512 |
| 494 |
func (x Uint32x16) Not() Uint32x16 { |
| 495 |
return x.Xor(x.Equal(x).ToInt32x16().AsUint32x16()) |
| 496 |
} |
| 497 |
|
| 498 |
// Not returns the bitwise complement of x. |
| 499 |
// |
| 500 |
// Emulated, CPU Feature: AVX512 |
| 501 |
func (x Uint64x8) Not() Uint64x8 { |
| 502 |
return x.Xor(x.Equal(x).ToInt64x8().AsUint64x8()) |
| 503 |
} |
| 504 |
|
| 505 |
// String returns a string representation of SIMD vector x. |
| 506 |
func (x Int8x16) String() string { |
| 507 |
var s [16]int8 |
| 508 |
x.Store(&s) |
| 509 |
return sliceToString(s[:]) |
| 510 |
} |
| 511 |
|
| 512 |
// String returns a string representation of SIMD vector x. |
| 513 |
func (x Int16x8) String() string { |
| 514 |
var s [8]int16 |
| 515 |
x.Store(&s) |
| 516 |
return sliceToString(s[:]) |
| 517 |
} |
| 518 |
|
| 519 |
// String returns a string representation of SIMD vector x. |
| 520 |
func (x Int32x4) String() string { |
| 521 |
var s [4]int32 |
| 522 |
x.Store(&s) |
| 523 |
return sliceToString(s[:]) |
| 524 |
} |
| 525 |
|
| 526 |
// String returns a string representation of SIMD vector x. |
| 527 |
func (x Int64x2) String() string { |
| 528 |
var s [2]int64 |
| 529 |
x.Store(&s) |
| 530 |
return sliceToString(s[:]) |
| 531 |
} |
| 532 |
|
| 533 |
// String returns a string representation of SIMD vector x. |
| 534 |
func (x Uint8x16) String() string { |
| 535 |
var s [16]uint8 |
| 536 |
x.Store(&s) |
| 537 |
return sliceToString(s[:]) |
| 538 |
} |
| 539 |
|
| 540 |
// String returns a string representation of SIMD vector x. |
| 541 |
func (x Uint16x8) String() string { |
| 542 |
var s [8]uint16 |
| 543 |
x.Store(&s) |
| 544 |
return sliceToString(s[:]) |
| 545 |
} |
| 546 |
|
| 547 |
// String returns a string representation of SIMD vector x. |
| 548 |
func (x Uint32x4) String() string { |
| 549 |
var s [4]uint32 |
| 550 |
x.Store(&s) |
| 551 |
return sliceToString(s[:]) |
| 552 |
} |
| 553 |
|
| 554 |
// String returns a string representation of SIMD vector x. |
| 555 |
func (x Uint64x2) String() string { |
| 556 |
var s [2]uint64 |
| 557 |
x.Store(&s) |
| 558 |
return sliceToString(s[:]) |
| 559 |
} |
| 560 |
|
| 561 |
// String returns a string representation of SIMD vector x. |
| 562 |
func (x Float32x4) String() string { |
| 563 |
var s [4]float32 |
| 564 |
x.Store(&s) |
| 565 |
return sliceToString(s[:]) |
| 566 |
} |
| 567 |
|
| 568 |
// String returns a string representation of SIMD vector x. |
| 569 |
func (x Float64x2) String() string { |
| 570 |
var s [2]float64 |
| 571 |
x.Store(&s) |
| 572 |
return sliceToString(s[:]) |
| 573 |
} |
| 574 |
|
| 575 |
// String returns a string representation of SIMD vector x. |
| 576 |
func (x Int8x32) String() string { |
| 577 |
var s [32]int8 |
| 578 |
x.Store(&s) |
| 579 |
return sliceToString(s[:]) |
| 580 |
} |
| 581 |
|
| 582 |
// String returns a string representation of SIMD vector x. |
| 583 |
func (x Int16x16) String() string { |
| 584 |
var s [16]int16 |
| 585 |
x.Store(&s) |
| 586 |
return sliceToString(s[:]) |
| 587 |
} |
| 588 |
|
| 589 |
// String returns a string representation of SIMD vector x. |
| 590 |
func (x Int32x8) String() string { |
| 591 |
var s [8]int32 |
| 592 |
x.Store(&s) |
| 593 |
return sliceToString(s[:]) |
| 594 |
} |
| 595 |
|
| 596 |
// String returns a string representation of SIMD vector x. |
| 597 |
func (x Int64x4) String() string { |
| 598 |
var s [4]int64 |
| 599 |
x.Store(&s) |
| 600 |
return sliceToString(s[:]) |
| 601 |
} |
| 602 |
|
| 603 |
// String returns a string representation of SIMD vector x. |
| 604 |
func (x Uint8x32) String() string { |
| 605 |
var s [32]uint8 |
| 606 |
x.Store(&s) |
| 607 |
return sliceToString(s[:]) |
| 608 |
} |
| 609 |
|
| 610 |
// String returns a string representation of SIMD vector x. |
| 611 |
func (x Uint16x16) String() string { |
| 612 |
var s [16]uint16 |
| 613 |
x.Store(&s) |
| 614 |
return sliceToString(s[:]) |
| 615 |
} |
| 616 |
|
| 617 |
// String returns a string representation of SIMD vector x. |
| 618 |
func (x Uint32x8) String() string { |
| 619 |
var s [8]uint32 |
| 620 |
x.Store(&s) |
| 621 |
return sliceToString(s[:]) |
| 622 |
} |
| 623 |
|
| 624 |
// String returns a string representation of SIMD vector x. |
| 625 |
func (x Uint64x4) String() string { |
| 626 |
var s [4]uint64 |
| 627 |
x.Store(&s) |
| 628 |
return sliceToString(s[:]) |
| 629 |
} |
| 630 |
|
| 631 |
// String returns a string representation of SIMD vector x. |
| 632 |
func (x Float32x8) String() string { |
| 633 |
var s [8]float32 |
| 634 |
x.Store(&s) |
| 635 |
return sliceToString(s[:]) |
| 636 |
} |
| 637 |
|
| 638 |
// String returns a string representation of SIMD vector x. |
| 639 |
func (x Float64x4) String() string { |
| 640 |
var s [4]float64 |
| 641 |
x.Store(&s) |
| 642 |
return sliceToString(s[:]) |
| 643 |
} |
| 644 |
|
| 645 |
// String returns a string representation of SIMD vector x. |
| 646 |
func (x Int8x64) String() string { |
| 647 |
var s [64]int8 |
| 648 |
x.Store(&s) |
| 649 |
return sliceToString(s[:]) |
| 650 |
} |
| 651 |
|
| 652 |
// String returns a string representation of SIMD vector x. |
| 653 |
func (x Int16x32) String() string { |
| 654 |
var s [32]int16 |
| 655 |
x.Store(&s) |
| 656 |
return sliceToString(s[:]) |
| 657 |
} |
| 658 |
|
| 659 |
// String returns a string representation of SIMD vector x. |
| 660 |
func (x Int32x16) String() string { |
| 661 |
var s [16]int32 |
| 662 |
x.Store(&s) |
| 663 |
return sliceToString(s[:]) |
| 664 |
} |
| 665 |
|
| 666 |
// String returns a string representation of SIMD vector x. |
| 667 |
func (x Int64x8) String() string { |
| 668 |
var s [8]int64 |
| 669 |
x.Store(&s) |
| 670 |
return sliceToString(s[:]) |
| 671 |
} |
| 672 |
|
| 673 |
// String returns a string representation of SIMD vector x. |
| 674 |
func (x Uint8x64) String() string { |
| 675 |
var s [64]uint8 |
| 676 |
x.Store(&s) |
| 677 |
return sliceToString(s[:]) |
| 678 |
} |
| 679 |
|
| 680 |
// String returns a string representation of SIMD vector x. |
| 681 |
func (x Uint16x32) String() string { |
| 682 |
var s [32]uint16 |
| 683 |
x.Store(&s) |
| 684 |
return sliceToString(s[:]) |
| 685 |
} |
| 686 |
|
| 687 |
// String returns a string representation of SIMD vector x. |
| 688 |
func (x Uint32x16) String() string { |
| 689 |
var s [16]uint32 |
| 690 |
x.Store(&s) |
| 691 |
return sliceToString(s[:]) |
| 692 |
} |
| 693 |
|
| 694 |
// String returns a string representation of SIMD vector x. |
| 695 |
func (x Uint64x8) String() string { |
| 696 |
var s [8]uint64 |
| 697 |
x.Store(&s) |
| 698 |
return sliceToString(s[:]) |
| 699 |
} |
| 700 |
|
| 701 |
// String returns a string representation of SIMD vector x. |
| 702 |
func (x Float32x16) String() string { |
| 703 |
var s [16]float32 |
| 704 |
x.Store(&s) |
| 705 |
return sliceToString(s[:]) |
| 706 |
} |
| 707 |
|
| 708 |
// String returns a string representation of SIMD vector x. |
| 709 |
func (x Float64x8) String() string { |
| 710 |
var s [8]float64 |
| 711 |
x.Store(&s) |
| 712 |
return sliceToString(s[:]) |
| 713 |
} |