Source file src/simd/archsimd/ops_exp_gen_amd64.go
1 // Code generated by 'simdgen -o godefs -goroot $GOROOT -arch amd64 -xedPath $XED_PATH go_amd64.yaml types.yaml categories.yaml'; DO NOT EDIT. 2 3 //go:build goexperiment.simd 4 5 package archsimd 6 7 /* AESDecryptLastRound */ 8 9 // AESDecryptLastRound performs a series of operations in AES cipher algorithm defined in FIPS 197. 10 // x is the state array, starting from low index to high are s00, s10, s20, s30, s01, ..., s33. 11 // y is the chunk of dw array in use. 12 // result = AddRoundKey(InvShiftRows(InvSubBytes(x)), y) 13 // 14 // Asm: VAESDECLAST, CPU Feature: AVXAES 15 func (x Uint8x16) AESDecryptLastRound(y Uint32x4) Uint8x16 16 17 // AESDecryptLastRound performs a series of operations in AES cipher algorithm defined in FIPS 197. 18 // x is the state array, starting from low index to high are s00, s10, s20, s30, s01, ..., s33. 19 // y is the chunk of dw array in use. 20 // result = AddRoundKey(InvShiftRows(InvSubBytes(x)), y) 21 // 22 // Asm: VAESDECLAST, CPU Feature: AVX2AES 23 func (x Uint8x32) AESDecryptLastRound(y Uint32x8) Uint8x32 24 25 // AESDecryptLastRound performs a series of operations in AES cipher algorithm defined in FIPS 197. 26 // x is the state array, starting from low index to high are s00, s10, s20, s30, s01, ..., s33. 27 // y is the chunk of dw array in use. 28 // result = AddRoundKey(InvShiftRows(InvSubBytes(x)), y) 29 // 30 // Asm: VAESDECLAST, CPU Feature: AVX512AES 31 func (x Uint8x64) AESDecryptLastRound(y Uint32x16) Uint8x64 32 33 /* AESDecryptOneRound */ 34 35 // AESDecryptOneRound performs a series of operations in AES cipher algorithm defined in FIPS 197. 36 // x is the state array, starting from low index to high are s00, s10, s20, s30, s01, ..., s33. 37 // y is the chunk of dw array in use. 38 // result = AddRoundKey(InvMixColumns(InvShiftRows(InvSubBytes(x))), y) 39 // 40 // Asm: VAESDEC, CPU Feature: AVXAES 41 func (x Uint8x16) AESDecryptOneRound(y Uint32x4) Uint8x16 42 43 // AESDecryptOneRound performs a series of operations in AES cipher algorithm defined in FIPS 197. 44 // x is the state array, starting from low index to high are s00, s10, s20, s30, s01, ..., s33. 45 // y is the chunk of dw array in use. 46 // result = AddRoundKey(InvMixColumns(InvShiftRows(InvSubBytes(x))), y) 47 // 48 // Asm: VAESDEC, CPU Feature: AVX2AES 49 func (x Uint8x32) AESDecryptOneRound(y Uint32x8) Uint8x32 50 51 // AESDecryptOneRound performs a series of operations in AES cipher algorithm defined in FIPS 197. 52 // x is the state array, starting from low index to high are s00, s10, s20, s30, s01, ..., s33. 53 // y is the chunk of dw array in use. 54 // result = AddRoundKey(InvMixColumns(InvShiftRows(InvSubBytes(x))), y) 55 // 56 // Asm: VAESDEC, CPU Feature: AVX512AES 57 func (x Uint8x64) AESDecryptOneRound(y Uint32x16) Uint8x64 58 59 /* AESEncryptLastRound */ 60 61 // AESEncryptLastRound performs a series of operations in AES cipher algorithm defined in FIPS 197. 62 // x is the state array, starting from low index to high are s00, s10, s20, s30, s01, ..., s33. 63 // y is the chunk of w array in use. 64 // result = AddRoundKey((ShiftRows(SubBytes(x))), y) 65 // 66 // Asm: VAESENCLAST, CPU Feature: AVXAES 67 func (x Uint8x16) AESEncryptLastRound(y Uint32x4) Uint8x16 68 69 // AESEncryptLastRound performs a series of operations in AES cipher algorithm defined in FIPS 197. 70 // x is the state array, starting from low index to high are s00, s10, s20, s30, s01, ..., s33. 71 // y is the chunk of w array in use. 72 // result = AddRoundKey((ShiftRows(SubBytes(x))), y) 73 // 74 // Asm: VAESENCLAST, CPU Feature: AVX2AES 75 func (x Uint8x32) AESEncryptLastRound(y Uint32x8) Uint8x32 76 77 // AESEncryptLastRound performs a series of operations in AES cipher algorithm defined in FIPS 197. 78 // x is the state array, starting from low index to high are s00, s10, s20, s30, s01, ..., s33. 79 // y is the chunk of w array in use. 80 // result = AddRoundKey((ShiftRows(SubBytes(x))), y) 81 // 82 // Asm: VAESENCLAST, CPU Feature: AVX512AES 83 func (x Uint8x64) AESEncryptLastRound(y Uint32x16) Uint8x64 84 85 /* AESEncryptOneRound */ 86 87 // AESEncryptOneRound performs a series of operations in AES cipher algorithm defined in FIPS 197. 88 // x is the state array, starting from low index to high are s00, s10, s20, s30, s01, ..., s33. 89 // y is the chunk of w array in use. 90 // result = AddRoundKey(MixColumns(ShiftRows(SubBytes(x))), y) 91 // 92 // Asm: VAESENC, CPU Feature: AVXAES 93 func (x Uint8x16) AESEncryptOneRound(y Uint32x4) Uint8x16 94 95 // AESEncryptOneRound performs a series of operations in AES cipher algorithm defined in FIPS 197. 96 // x is the state array, starting from low index to high are s00, s10, s20, s30, s01, ..., s33. 97 // y is the chunk of w array in use. 98 // result = AddRoundKey(MixColumns(ShiftRows(SubBytes(x))), y) 99 // 100 // Asm: VAESENC, CPU Feature: AVX2AES 101 func (x Uint8x32) AESEncryptOneRound(y Uint32x8) Uint8x32 102 103 // AESEncryptOneRound performs a series of operations in AES cipher algorithm defined in FIPS 197. 104 // x is the state array, starting from low index to high are s00, s10, s20, s30, s01, ..., s33. 105 // y is the chunk of w array in use. 106 // result = AddRoundKey(MixColumns(ShiftRows(SubBytes(x))), y) 107 // 108 // Asm: VAESENC, CPU Feature: AVX512AES 109 func (x Uint8x64) AESEncryptOneRound(y Uint32x16) Uint8x64 110 111 /* AESInvMixColumns */ 112 113 // AESInvMixColumns performs the InvMixColumns operation in AES cipher algorithm defined in FIPS 197. 114 // x is the chunk of w array in use. 115 // result = InvMixColumns(x) 116 // 117 // Asm: VAESIMC, CPU Feature: AVXAES 118 func (x Uint32x4) AESInvMixColumns() Uint32x4 119 120 /* AESRoundKeyGenAssist */ 121 122 // AESRoundKeyGenAssist performs some components of KeyExpansion in AES cipher algorithm defined in FIPS 197. 123 // x is an array of AES words, but only x[0] and x[2] are used. 124 // r is a value from the Rcon constant array. 125 // result[0] = XOR(SubWord(RotWord(x[0])), r) 126 // result[1] = SubWord(x[1]) 127 // result[2] = XOR(SubWord(RotWord(x[2])), r) 128 // result[3] = SubWord(x[3]) 129 // 130 // Performance: A non-constant value of rconVal may result in significantly worse performance for this operation. 131 // 132 // Asm: VAESKEYGENASSIST, CPU Feature: AVXAES 133 func (x Uint32x4) AESRoundKeyGenAssist(rconVal uint8) Uint32x4 134 135 /* AddOddSubEven */ 136 137 // AddOddSubEven adds the odd-indexed elements of x and y and subtracts the 138 // even-indexed elements of y from those of x. 139 // 140 // z[2*i+1] = x[2*i+1] + y[2*i+1] // Add odd 141 // z[2*i] = x[2*i] - y[2*i] // Subtract even 142 // 143 // Asm: VADDSUBPS, CPU Feature: AVX 144 func (x Float32x4) AddOddSubEven(y Float32x4) (z Float32x4) 145 146 // AddOddSubEven adds the odd-indexed elements of x and y and subtracts the 147 // even-indexed elements of y from those of x. 148 // 149 // z[2*i+1] = x[2*i+1] + y[2*i+1] // Add odd 150 // z[2*i] = x[2*i] - y[2*i] // Subtract even 151 // 152 // Asm: VADDSUBPS, CPU Feature: AVX 153 func (x Float32x8) AddOddSubEven(y Float32x8) (z Float32x8) 154 155 // AddOddSubEven adds the odd-indexed elements of x and y and subtracts the 156 // even-indexed elements of y from those of x. 157 // 158 // z[2*i+1] = x[2*i+1] + y[2*i+1] // Add odd 159 // z[2*i] = x[2*i] - y[2*i] // Subtract even 160 // 161 // Asm: VADDSUBPD, CPU Feature: AVX 162 func (x Float64x2) AddOddSubEven(y Float64x2) (z Float64x2) 163 164 // AddOddSubEven adds the odd-indexed elements of x and y and subtracts the 165 // even-indexed elements of y from those of x. 166 // 167 // z[2*i+1] = x[2*i+1] + y[2*i+1] // Add odd 168 // z[2*i] = x[2*i] - y[2*i] // Subtract even 169 // 170 // Asm: VADDSUBPD, CPU Feature: AVX 171 func (x Float64x4) AddOddSubEven(y Float64x4) (z Float64x4) 172 173 /* CeilScaled */ 174 175 // CeilScaled rounds elements up with specified precision. 176 // 177 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 178 // 179 // Asm: VRNDSCALEPS, CPU Feature: AVX512 180 func (x Float32x4) CeilScaled(prec uint8) Float32x4 181 182 // CeilScaled rounds elements up with specified precision. 183 // 184 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 185 // 186 // Asm: VRNDSCALEPS, CPU Feature: AVX512 187 func (x Float32x8) CeilScaled(prec uint8) Float32x8 188 189 // CeilScaled rounds elements up with specified precision. 190 // 191 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 192 // 193 // Asm: VRNDSCALEPS, CPU Feature: AVX512 194 func (x Float32x16) CeilScaled(prec uint8) Float32x16 195 196 // CeilScaled rounds elements up with specified precision. 197 // 198 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 199 // 200 // Asm: VRNDSCALEPD, CPU Feature: AVX512 201 func (x Float64x2) CeilScaled(prec uint8) Float64x2 202 203 // CeilScaled rounds elements up with specified precision. 204 // 205 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 206 // 207 // Asm: VRNDSCALEPD, CPU Feature: AVX512 208 func (x Float64x4) CeilScaled(prec uint8) Float64x4 209 210 // CeilScaled rounds elements up with specified precision. 211 // 212 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 213 // 214 // Asm: VRNDSCALEPD, CPU Feature: AVX512 215 func (x Float64x8) CeilScaled(prec uint8) Float64x8 216 217 /* CeilScaledResidue */ 218 219 // CeilScaledResidue computes the difference after ceiling with specified precision. 220 // 221 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 222 // 223 // Asm: VREDUCEPS, CPU Feature: AVX512 224 func (x Float32x4) CeilScaledResidue(prec uint8) Float32x4 225 226 // CeilScaledResidue computes the difference after ceiling with specified precision. 227 // 228 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 229 // 230 // Asm: VREDUCEPS, CPU Feature: AVX512 231 func (x Float32x8) CeilScaledResidue(prec uint8) Float32x8 232 233 // CeilScaledResidue computes the difference after ceiling with specified precision. 234 // 235 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 236 // 237 // Asm: VREDUCEPS, CPU Feature: AVX512 238 func (x Float32x16) CeilScaledResidue(prec uint8) Float32x16 239 240 // CeilScaledResidue computes the difference after ceiling with specified precision. 241 // 242 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 243 // 244 // Asm: VREDUCEPD, CPU Feature: AVX512 245 func (x Float64x2) CeilScaledResidue(prec uint8) Float64x2 246 247 // CeilScaledResidue computes the difference after ceiling with specified precision. 248 // 249 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 250 // 251 // Asm: VREDUCEPD, CPU Feature: AVX512 252 func (x Float64x4) CeilScaledResidue(prec uint8) Float64x4 253 254 // CeilScaledResidue computes the difference after ceiling with specified precision. 255 // 256 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 257 // 258 // Asm: VREDUCEPD, CPU Feature: AVX512 259 func (x Float64x8) CeilScaledResidue(prec uint8) Float64x8 260 261 /* ConcatPermute128Scalars */ 262 263 // ConcatPermute128Scalars treats the 256-bit vectors x and y as a single vector of four 264 // 128-bit elements, and returns a 256-bit result formed by 265 // concatenating the two elements specified by lo and hi. 266 // For example, 267 // 268 // {40, 41, 42, 43, 50, 51, 52, 53}.ConcatPermute128Scalars(3, 0, {60, 61, 62, 63, 70, 71, 72, 73}) 269 // 270 // returns {70, 71, 72, 73, 40, 41, 42, 43}. 271 // 272 // lo, hi should be between 0 and 3, inclusive; other values may result in a runtime panic. 273 // 274 // Performance: A non-constant value of lo, hi may result in significantly worse performance for this operation. 275 // 276 // Asm: VPERM2F128, CPU Feature: AVX 277 func (x Float32x8) ConcatPermute128Scalars(lo, hi uint8, y Float32x8) Float32x8 278 279 // ConcatPermute128Scalars treats the 256-bit vectors x and y as a single vector of four 280 // 128-bit elements, and returns a 256-bit result formed by 281 // concatenating the two elements specified by lo and hi. 282 // For example, 283 // 284 // {40, 41, 50, 51}.ConcatPermute128Scalars(3, 0, {60, 61, 70, 71}) 285 // 286 // returns {70, 71, 40, 41}. 287 // 288 // lo, hi should be between 0 and 3, inclusive; other values may result in a runtime panic. 289 // 290 // Performance: A non-constant value of lo, hi may result in significantly worse performance for this operation. 291 // 292 // Asm: VPERM2F128, CPU Feature: AVX 293 func (x Float64x4) ConcatPermute128Scalars(lo, hi uint8, y Float64x4) Float64x4 294 295 // ConcatPermute128Scalars treats the 256-bit vectors x and y as a single vector of four 296 // 128-bit elements, and returns a 256-bit result formed by 297 // concatenating the two elements specified by lo and hi. 298 // For example, 299 // 300 // {0x40, 0x41, ..., 0x4f, 0x50, 0x51, ..., 0x5f}.ConcatPermute128Scalars(3, 0, 301 // {0x60, 0x61, ..., 0x6f, 0x70, 0x71, ..., 0x7f}) 302 // 303 // returns {0x70, 0x71, ..., 0x7f, 0x40, 0x41, ..., 0x4f}. 304 // 305 // lo, hi should be between 0 and 3, inclusive; other values may result in a runtime panic. 306 // 307 // Performance: A non-constant value of lo, hi may result in significantly worse performance for this operation. 308 // 309 // Asm: VPERM2I128, CPU Feature: AVX2 310 func (x Int8x32) ConcatPermute128Scalars(lo, hi uint8, y Int8x32) Int8x32 311 312 // ConcatPermute128Scalars treats the 256-bit vectors x and y as a single vector of four 313 // 128-bit elements, and returns a 256-bit result formed by 314 // concatenating the two elements specified by lo and hi. 315 // For example, 316 // 317 // {40, 41, 42, 43, 44, 45, 46, 47, 50, 51, 52, 53, 54, 55, 56, 57}.ConcatPermute128Scalars(3, 0, 318 // {60, 61, 62, 63, 64, 65, 66, 67, 70, 71, 72, 73, 74, 75, 76, 77}) 319 // 320 // returns {70, 71, 72, 73, 74, 75, 76, 77, 40, 41, 42, 43, 44, 45, 46, 47}. 321 // 322 // lo, hi should be between 0 and 3, inclusive; other values may result in a runtime panic. 323 // 324 // Performance: A non-constant value of lo, hi may result in significantly worse performance for this operation. 325 // 326 // Asm: VPERM2I128, CPU Feature: AVX2 327 func (x Int16x16) ConcatPermute128Scalars(lo, hi uint8, y Int16x16) Int16x16 328 329 // ConcatPermute128Scalars treats the 256-bit vectors x and y as a single vector of four 330 // 128-bit elements, and returns a 256-bit result formed by 331 // concatenating the two elements specified by lo and hi. 332 // For example, 333 // 334 // {40, 41, 42, 43, 50, 51, 52, 53}.ConcatPermute128Scalars(3, 0, {60, 61, 62, 63, 70, 71, 72, 73}) 335 // 336 // returns {70, 71, 72, 73, 40, 41, 42, 43}. 337 // 338 // lo, hi should be between 0 and 3, inclusive; other values may result in a runtime panic. 339 // 340 // Performance: A non-constant value of lo, hi may result in significantly worse performance for this operation. 341 // 342 // Asm: VPERM2I128, CPU Feature: AVX2 343 func (x Int32x8) ConcatPermute128Scalars(lo, hi uint8, y Int32x8) Int32x8 344 345 // ConcatPermute128Scalars treats the 256-bit vectors x and y as a single vector of four 346 // 128-bit elements, and returns a 256-bit result formed by 347 // concatenating the two elements specified by lo and hi. 348 // For example, 349 // 350 // {40, 41, 50, 51}.ConcatPermute128Scalars(3, 0, {60, 61, 70, 71}) 351 // 352 // returns {70, 71, 40, 41}. 353 // 354 // lo, hi should be between 0 and 3, inclusive; other values may result in a runtime panic. 355 // 356 // Performance: A non-constant value of lo, hi may result in significantly worse performance for this operation. 357 // 358 // Asm: VPERM2I128, CPU Feature: AVX2 359 func (x Int64x4) ConcatPermute128Scalars(lo, hi uint8, y Int64x4) Int64x4 360 361 // ConcatPermute128Scalars treats the 256-bit vectors x and y as a single vector of four 362 // 128-bit elements, and returns a 256-bit result formed by 363 // concatenating the two elements specified by lo and hi. 364 // For example, 365 // 366 // {0x40, 0x41, ..., 0x4f, 0x50, 0x51, ..., 0x5f}.ConcatPermute128Scalars(3, 0, 367 // {0x60, 0x61, ..., 0x6f, 0x70, 0x71, ..., 0x7f}) 368 // 369 // returns {0x70, 0x71, ..., 0x7f, 0x40, 0x41, ..., 0x4f}. 370 // 371 // lo, hi should be between 0 and 3, inclusive; other values may result in a runtime panic. 372 // 373 // Performance: A non-constant value of lo, hi may result in significantly worse performance for this operation. 374 // 375 // Asm: VPERM2I128, CPU Feature: AVX2 376 func (x Uint8x32) ConcatPermute128Scalars(lo, hi uint8, y Uint8x32) Uint8x32 377 378 // ConcatPermute128Scalars treats the 256-bit vectors x and y as a single vector of four 379 // 128-bit elements, and returns a 256-bit result formed by 380 // concatenating the two elements specified by lo and hi. 381 // For example, 382 // 383 // {40, 41, 42, 43, 44, 45, 46, 47, 50, 51, 52, 53, 54, 55, 56, 57}.ConcatPermute128Scalars(3, 0, 384 // {60, 61, 62, 63, 64, 65, 66, 67, 70, 71, 72, 73, 74, 75, 76, 77}) 385 // 386 // returns {70, 71, 72, 73, 74, 75, 76, 77, 40, 41, 42, 43, 44, 45, 46, 47}. 387 // 388 // lo, hi should be between 0 and 3, inclusive; other values may result in a runtime panic. 389 // 390 // Performance: A non-constant value of lo, hi may result in significantly worse performance for this operation. 391 // 392 // Asm: VPERM2I128, CPU Feature: AVX2 393 func (x Uint16x16) ConcatPermute128Scalars(lo, hi uint8, y Uint16x16) Uint16x16 394 395 // ConcatPermute128Scalars treats the 256-bit vectors x and y as a single vector of four 396 // 128-bit elements, and returns a 256-bit result formed by 397 // concatenating the two elements specified by lo and hi. 398 // For example, 399 // 400 // {40, 41, 42, 43, 50, 51, 52, 53}.ConcatPermute128Scalars(3, 0, {60, 61, 62, 63, 70, 71, 72, 73}) 401 // 402 // returns {70, 71, 72, 73, 40, 41, 42, 43}. 403 // 404 // lo, hi should be between 0 and 3, inclusive; other values may result in a runtime panic. 405 // 406 // Performance: A non-constant value of lo, hi may result in significantly worse performance for this operation. 407 // 408 // Asm: VPERM2I128, CPU Feature: AVX2 409 func (x Uint32x8) ConcatPermute128Scalars(lo, hi uint8, y Uint32x8) Uint32x8 410 411 // ConcatPermute128Scalars treats the 256-bit vectors x and y as a single vector of four 412 // 128-bit elements, and returns a 256-bit result formed by 413 // concatenating the two elements specified by lo and hi. 414 // For example, 415 // 416 // {40, 41, 50, 51}.ConcatPermute128Scalars(3, 0, {60, 61, 70, 71}) 417 // 418 // returns {70, 71, 40, 41}. 419 // 420 // lo, hi should be between 0 and 3, inclusive; other values may result in a runtime panic. 421 // 422 // Performance: A non-constant value of lo, hi may result in significantly worse performance for this operation. 423 // 424 // Asm: VPERM2I128, CPU Feature: AVX2 425 func (x Uint64x4) ConcatPermute128Scalars(lo, hi uint8, y Uint64x4) Uint64x4 426 427 /* FloorScaled */ 428 429 // FloorScaled rounds elements down with specified precision. 430 // 431 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 432 // 433 // Asm: VRNDSCALEPS, CPU Feature: AVX512 434 func (x Float32x4) FloorScaled(prec uint8) Float32x4 435 436 // FloorScaled rounds elements down with specified precision. 437 // 438 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 439 // 440 // Asm: VRNDSCALEPS, CPU Feature: AVX512 441 func (x Float32x8) FloorScaled(prec uint8) Float32x8 442 443 // FloorScaled rounds elements down with specified precision. 444 // 445 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 446 // 447 // Asm: VRNDSCALEPS, CPU Feature: AVX512 448 func (x Float32x16) FloorScaled(prec uint8) Float32x16 449 450 // FloorScaled rounds elements down with specified precision. 451 // 452 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 453 // 454 // Asm: VRNDSCALEPD, CPU Feature: AVX512 455 func (x Float64x2) FloorScaled(prec uint8) Float64x2 456 457 // FloorScaled rounds elements down with specified precision. 458 // 459 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 460 // 461 // Asm: VRNDSCALEPD, CPU Feature: AVX512 462 func (x Float64x4) FloorScaled(prec uint8) Float64x4 463 464 // FloorScaled rounds elements down with specified precision. 465 // 466 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 467 // 468 // Asm: VRNDSCALEPD, CPU Feature: AVX512 469 func (x Float64x8) FloorScaled(prec uint8) Float64x8 470 471 /* FloorScaledResidue */ 472 473 // FloorScaledResidue computes the difference after flooring with specified precision. 474 // 475 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 476 // 477 // Asm: VREDUCEPS, CPU Feature: AVX512 478 func (x Float32x4) FloorScaledResidue(prec uint8) Float32x4 479 480 // FloorScaledResidue computes the difference after flooring with specified precision. 481 // 482 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 483 // 484 // Asm: VREDUCEPS, CPU Feature: AVX512 485 func (x Float32x8) FloorScaledResidue(prec uint8) Float32x8 486 487 // FloorScaledResidue computes the difference after flooring with specified precision. 488 // 489 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 490 // 491 // Asm: VREDUCEPS, CPU Feature: AVX512 492 func (x Float32x16) FloorScaledResidue(prec uint8) Float32x16 493 494 // FloorScaledResidue computes the difference after flooring with specified precision. 495 // 496 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 497 // 498 // Asm: VREDUCEPD, CPU Feature: AVX512 499 func (x Float64x2) FloorScaledResidue(prec uint8) Float64x2 500 501 // FloorScaledResidue computes the difference after flooring with specified precision. 502 // 503 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 504 // 505 // Asm: VREDUCEPD, CPU Feature: AVX512 506 func (x Float64x4) FloorScaledResidue(prec uint8) Float64x4 507 508 // FloorScaledResidue computes the difference after flooring with specified precision. 509 // 510 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 511 // 512 // Asm: VREDUCEPD, CPU Feature: AVX512 513 func (x Float64x8) FloorScaledResidue(prec uint8) Float64x8 514 515 /* GaloisFieldAffineTransform */ 516 517 // GaloisFieldAffineTransform returns the affine transformation A * x + b in GF(2)^8. 518 // Each element of A is interpreted as a matrix of 8 rows of vectors of 8 bits. 519 // Each element of x is interpreted as a vector of 8 bits. 520 // The b argument is likewise a vector of 8 bits. 521 // Each 8-bit vector here can be seen as 8 GF(2) elements packed together. 522 // The * and + operators in GF(2) are defined as AND and XOR. 523 // The result is z[i] = A[i/8] * x[i] + b, where * and + are performed in GF(2). 524 // 525 // Performance: A non-constant value of b may result in significantly worse performance for this operation. 526 // 527 // Asm: VGF2P8AFFINEQB, CPU Feature: AVX512GFNI 528 func (x Uint8x16) GaloisFieldAffineTransform(A Uint64x2, b uint8) Uint8x16 529 530 // GaloisFieldAffineTransform returns the affine transformation A * x + b in GF(2)^8. 531 // Each element of A is interpreted as a matrix of 8 rows of vectors of 8 bits. 532 // Each element of x is interpreted as a vector of 8 bits. 533 // The b argument is likewise a vector of 8 bits. 534 // Each 8-bit vector here can be seen as 8 GF(2) elements packed together. 535 // The * and + operators in GF(2) are defined as AND and XOR. 536 // The result is z[i] = A[i/8] * x[i] + b, where * and + are performed in GF(2). 537 // 538 // Performance: A non-constant value of b may result in significantly worse performance for this operation. 539 // 540 // Asm: VGF2P8AFFINEQB, CPU Feature: AVX512GFNI 541 func (x Uint8x32) GaloisFieldAffineTransform(A Uint64x4, b uint8) Uint8x32 542 543 // GaloisFieldAffineTransform returns the affine transformation A * x + b in GF(2)^8. 544 // Each element of A is interpreted as a matrix of 8 rows of vectors of 8 bits. 545 // Each element of x is interpreted as a vector of 8 bits. 546 // The b argument is likewise a vector of 8 bits. 547 // Each 8-bit vector here can be seen as 8 GF(2) elements packed together. 548 // The * and + operators in GF(2) are defined as AND and XOR. 549 // The result is z[i] = A[i/8] * x[i] + b, where * and + are performed in GF(2). 550 // 551 // Performance: A non-constant value of b may result in significantly worse performance for this operation. 552 // 553 // Asm: VGF2P8AFFINEQB, CPU Feature: AVX512GFNI 554 func (x Uint8x64) GaloisFieldAffineTransform(A Uint64x8, b uint8) Uint8x64 555 556 /* GaloisFieldAffineTransformInverse */ 557 558 // GaloisFieldAffineTransformInverse returns the affine transformation A * inv(x) + b, 559 // where inv(x) is the multiplicative inverse of x in GF(2^8) modulo 560 // P = x^8 + x^4 + x^3 + x + 1, and the affine 561 // transformation is performed in GF(2)^8. 562 // Each element of A is interpreted as a matrix of 8 rows of vectors of 8 bits. 563 // Each element of inv(x) is interpreted as a vector of 8 bits. 564 // The b argument is likewise a vector of 8 bits. 565 // Each 8-bit vector here can be seen as 8 GF(2) elements packed together. 566 // The * and + operators in GF(2) are defined as AND and XOR. 567 // The result is z[i] = A[i/8] * inv(x[i]) + b, where * and + are performed in GF(2). 568 // 569 // Performance: A non-constant value of b may result in significantly worse performance for this operation. 570 // 571 // Asm: VGF2P8AFFINEINVQB, CPU Feature: AVX512GFNI 572 func (x Uint8x16) GaloisFieldAffineTransformInverse(A Uint64x2, b uint8) Uint8x16 573 574 // GaloisFieldAffineTransformInverse returns the affine transformation A * inv(x) + b, 575 // where inv(x) is the multiplicative inverse of x in GF(2^8) modulo 576 // P = x^8 + x^4 + x^3 + x + 1, and the affine 577 // transformation is performed in GF(2)^8. 578 // Each element of A is interpreted as a matrix of 8 rows of vectors of 8 bits. 579 // Each element of inv(x) is interpreted as a vector of 8 bits. 580 // The b argument is likewise a vector of 8 bits. 581 // Each 8-bit vector here can be seen as 8 GF(2) elements packed together. 582 // The * and + operators in GF(2) are defined as AND and XOR. 583 // The result is z[i] = A[i/8] * inv(x[i]) + b, where * and + are performed in GF(2). 584 // 585 // Performance: A non-constant value of b may result in significantly worse performance for this operation. 586 // 587 // Asm: VGF2P8AFFINEINVQB, CPU Feature: AVX512GFNI 588 func (x Uint8x32) GaloisFieldAffineTransformInverse(A Uint64x4, b uint8) Uint8x32 589 590 // GaloisFieldAffineTransformInverse returns the affine transformation A * inv(x) + b, 591 // where inv(x) is the multiplicative inverse of x in GF(2^8) modulo 592 // P = x^8 + x^4 + x^3 + x + 1, and the affine 593 // transformation is performed in GF(2)^8. 594 // Each element of A is interpreted as a matrix of 8 rows of vectors of 8 bits. 595 // Each element of inv(x) is interpreted as a vector of 8 bits. 596 // The b argument is likewise a vector of 8 bits. 597 // Each 8-bit vector here can be seen as 8 GF(2) elements packed together. 598 // The * and + operators in GF(2) are defined as AND and XOR. 599 // The result is z[i] = A[i/8] * inv(x[i]) + b, where * and + are performed in GF(2). 600 // 601 // Performance: A non-constant value of b may result in significantly worse performance for this operation. 602 // 603 // Asm: VGF2P8AFFINEINVQB, CPU Feature: AVX512GFNI 604 func (x Uint8x64) GaloisFieldAffineTransformInverse(A Uint64x8, b uint8) Uint8x64 605 606 /* GaloisFieldMul */ 607 608 // GaloisFieldMul returns (x * y) mod P, performed in GF(2^8), 609 // where the characteristic polynomial P is x^8 + x^4 + x^3 + x + 1. 610 // 611 // Asm: VGF2P8MULB, CPU Feature: AVX512GFNI 612 func (x Uint8x16) GaloisFieldMul(y Uint8x16) Uint8x16 613 614 // GaloisFieldMul returns (x * y) mod P, performed in GF(2^8), 615 // where the characteristic polynomial P is x^8 + x^4 + x^3 + x + 1. 616 // 617 // Asm: VGF2P8MULB, CPU Feature: AVX512GFNI 618 func (x Uint8x32) GaloisFieldMul(y Uint8x32) Uint8x32 619 620 // GaloisFieldMul returns (x * y) mod P, performed in GF(2^8), 621 // where the characteristic polynomial P is x^8 + x^4 + x^3 + x + 1. 622 // 623 // Asm: VGF2P8MULB, CPU Feature: AVX512GFNI 624 func (x Uint8x64) GaloisFieldMul(y Uint8x64) Uint8x64 625 626 /* InterleaveHiGrouped */ 627 628 // InterleaveHiGrouped interleaves the elements of the high half of each 128-bit subvector of x and y. 629 // 630 // Asm: VPUNPCKHBW, CPU Feature: AVX2 631 func (x Int8x32) InterleaveHiGrouped(y Int8x32) Int8x32 632 633 // InterleaveHiGrouped interleaves the elements of the high half of each 128-bit subvector of x and y. 634 // 635 // Asm: VPUNPCKHBW, CPU Feature: AVX512 636 func (x Int8x64) InterleaveHiGrouped(y Int8x64) Int8x64 637 638 // InterleaveHiGrouped interleaves the elements of the high half of each 128-bit subvector of x and y. 639 // 640 // Asm: VPUNPCKHWD, CPU Feature: AVX2 641 func (x Int16x16) InterleaveHiGrouped(y Int16x16) Int16x16 642 643 // InterleaveHiGrouped interleaves the elements of the high half of each 128-bit subvector of x and y. 644 // 645 // Asm: VPUNPCKHWD, CPU Feature: AVX512 646 func (x Int16x32) InterleaveHiGrouped(y Int16x32) Int16x32 647 648 // InterleaveHiGrouped interleaves the elements of the high half of each 128-bit subvector of x and y. 649 // 650 // Asm: VPUNPCKHDQ, CPU Feature: AVX2 651 func (x Int32x8) InterleaveHiGrouped(y Int32x8) Int32x8 652 653 // InterleaveHiGrouped interleaves the elements of the high half of each 128-bit subvector of x and y. 654 // 655 // Asm: VPUNPCKHDQ, CPU Feature: AVX512 656 func (x Int32x16) InterleaveHiGrouped(y Int32x16) Int32x16 657 658 // InterleaveHiGrouped interleaves the elements of the high half of each 128-bit subvector of x and y. 659 // 660 // Asm: VPUNPCKHQDQ, CPU Feature: AVX2 661 func (x Int64x4) InterleaveHiGrouped(y Int64x4) Int64x4 662 663 // InterleaveHiGrouped interleaves the elements of the high half of each 128-bit subvector of x and y. 664 // 665 // Asm: VPUNPCKHQDQ, CPU Feature: AVX512 666 func (x Int64x8) InterleaveHiGrouped(y Int64x8) Int64x8 667 668 // InterleaveHiGrouped interleaves the elements of the high half of each 128-bit subvector of x and y. 669 // 670 // Asm: VPUNPCKHBW, CPU Feature: AVX2 671 func (x Uint8x32) InterleaveHiGrouped(y Uint8x32) Uint8x32 672 673 // InterleaveHiGrouped interleaves the elements of the high half of each 128-bit subvector of x and y. 674 // 675 // Asm: VPUNPCKHBW, CPU Feature: AVX512 676 func (x Uint8x64) InterleaveHiGrouped(y Uint8x64) Uint8x64 677 678 // InterleaveHiGrouped interleaves the elements of the high half of each 128-bit subvector of x and y. 679 // 680 // Asm: VPUNPCKHWD, CPU Feature: AVX2 681 func (x Uint16x16) InterleaveHiGrouped(y Uint16x16) Uint16x16 682 683 // InterleaveHiGrouped interleaves the elements of the high half of each 128-bit subvector of x and y. 684 // 685 // Asm: VPUNPCKHWD, CPU Feature: AVX512 686 func (x Uint16x32) InterleaveHiGrouped(y Uint16x32) Uint16x32 687 688 // InterleaveHiGrouped interleaves the elements of the high half of each 128-bit subvector of x and y. 689 // 690 // Asm: VPUNPCKHDQ, CPU Feature: AVX2 691 func (x Uint32x8) InterleaveHiGrouped(y Uint32x8) Uint32x8 692 693 // InterleaveHiGrouped interleaves the elements of the high half of each 128-bit subvector of x and y. 694 // 695 // Asm: VPUNPCKHDQ, CPU Feature: AVX512 696 func (x Uint32x16) InterleaveHiGrouped(y Uint32x16) Uint32x16 697 698 // InterleaveHiGrouped interleaves the elements of the high half of each 128-bit subvector of x and y. 699 // 700 // Asm: VPUNPCKHQDQ, CPU Feature: AVX2 701 func (x Uint64x4) InterleaveHiGrouped(y Uint64x4) Uint64x4 702 703 // InterleaveHiGrouped interleaves the elements of the high half of each 128-bit subvector of x and y. 704 // 705 // Asm: VPUNPCKHQDQ, CPU Feature: AVX512 706 func (x Uint64x8) InterleaveHiGrouped(y Uint64x8) Uint64x8 707 708 /* InterleaveLoGrouped */ 709 710 // InterleaveLoGrouped interleaves the elements of the low half of each 128-bit subvector of x and y. 711 // 712 // Asm: VPUNPCKLBW, CPU Feature: AVX2 713 func (x Int8x32) InterleaveLoGrouped(y Int8x32) Int8x32 714 715 // InterleaveLoGrouped interleaves the elements of the low half of each 128-bit subvector of x and y. 716 // 717 // Asm: VPUNPCKLBW, CPU Feature: AVX512 718 func (x Int8x64) InterleaveLoGrouped(y Int8x64) Int8x64 719 720 // InterleaveLoGrouped interleaves the elements of the low half of each 128-bit subvector of x and y. 721 // 722 // Asm: VPUNPCKLWD, CPU Feature: AVX2 723 func (x Int16x16) InterleaveLoGrouped(y Int16x16) Int16x16 724 725 // InterleaveLoGrouped interleaves the elements of the low half of each 128-bit subvector of x and y. 726 // 727 // Asm: VPUNPCKLWD, CPU Feature: AVX512 728 func (x Int16x32) InterleaveLoGrouped(y Int16x32) Int16x32 729 730 // InterleaveLoGrouped interleaves the elements of the low half of each 128-bit subvector of x and y. 731 // 732 // Asm: VPUNPCKLDQ, CPU Feature: AVX2 733 func (x Int32x8) InterleaveLoGrouped(y Int32x8) Int32x8 734 735 // InterleaveLoGrouped interleaves the elements of the low half of each 128-bit subvector of x and y. 736 // 737 // Asm: VPUNPCKLDQ, CPU Feature: AVX512 738 func (x Int32x16) InterleaveLoGrouped(y Int32x16) Int32x16 739 740 // InterleaveLoGrouped interleaves the elements of the low half of each 128-bit subvector of x and y. 741 // 742 // Asm: VPUNPCKLQDQ, CPU Feature: AVX2 743 func (x Int64x4) InterleaveLoGrouped(y Int64x4) Int64x4 744 745 // InterleaveLoGrouped interleaves the elements of the low half of each 128-bit subvector of x and y. 746 // 747 // Asm: VPUNPCKLQDQ, CPU Feature: AVX512 748 func (x Int64x8) InterleaveLoGrouped(y Int64x8) Int64x8 749 750 // InterleaveLoGrouped interleaves the elements of the low half of each 128-bit subvector of x and y. 751 // 752 // Asm: VPUNPCKLBW, CPU Feature: AVX2 753 func (x Uint8x32) InterleaveLoGrouped(y Uint8x32) Uint8x32 754 755 // InterleaveLoGrouped interleaves the elements of the low half of each 128-bit subvector of x and y. 756 // 757 // Asm: VPUNPCKLBW, CPU Feature: AVX512 758 func (x Uint8x64) InterleaveLoGrouped(y Uint8x64) Uint8x64 759 760 // InterleaveLoGrouped interleaves the elements of the low half of each 128-bit subvector of x and y. 761 // 762 // Asm: VPUNPCKLWD, CPU Feature: AVX2 763 func (x Uint16x16) InterleaveLoGrouped(y Uint16x16) Uint16x16 764 765 // InterleaveLoGrouped interleaves the elements of the low half of each 128-bit subvector of x and y. 766 // 767 // Asm: VPUNPCKLWD, CPU Feature: AVX512 768 func (x Uint16x32) InterleaveLoGrouped(y Uint16x32) Uint16x32 769 770 // InterleaveLoGrouped interleaves the elements of the low half of each 128-bit subvector of x and y. 771 // 772 // Asm: VPUNPCKLDQ, CPU Feature: AVX2 773 func (x Uint32x8) InterleaveLoGrouped(y Uint32x8) Uint32x8 774 775 // InterleaveLoGrouped interleaves the elements of the low half of each 128-bit subvector of x and y. 776 // 777 // Asm: VPUNPCKLDQ, CPU Feature: AVX512 778 func (x Uint32x16) InterleaveLoGrouped(y Uint32x16) Uint32x16 779 780 // InterleaveLoGrouped interleaves the elements of the low half of each 128-bit subvector of x and y. 781 // 782 // Asm: VPUNPCKLQDQ, CPU Feature: AVX2 783 func (x Uint64x4) InterleaveLoGrouped(y Uint64x4) Uint64x4 784 785 // InterleaveLoGrouped interleaves the elements of the low half of each 128-bit subvector of x and y. 786 // 787 // Asm: VPUNPCKLQDQ, CPU Feature: AVX512 788 func (x Uint64x8) InterleaveLoGrouped(y Uint64x8) Uint64x8 789 790 /* MulAddEvenSubOdd */ 791 792 // MulAddEvenSubOdd returns x * y + z for the even-indexed elements and 793 // x * y - z for the odd-indexed elements. 794 // 795 // w[2*i] = x[2*i] * y[2*i] + z[2*i] // Add even 796 // w[2*i+1] = x[2*i+1] * y[2*i+1] - z[2*i+1] // Subtract odd 797 // 798 // This performs a fused multiply-add, computing each result with a single 799 // rounding rather than two and no intermediate overflow. 800 // 801 // Asm: VFMSUBADD213PS, CPU Feature: FMA 802 func (x Float32x4) MulAddEvenSubOdd(y Float32x4, z Float32x4) (w Float32x4) 803 804 // MulAddEvenSubOdd returns x * y + z for the even-indexed elements and 805 // x * y - z for the odd-indexed elements. 806 // 807 // w[2*i] = x[2*i] * y[2*i] + z[2*i] // Add even 808 // w[2*i+1] = x[2*i+1] * y[2*i+1] - z[2*i+1] // Subtract odd 809 // 810 // This performs a fused multiply-add, computing each result with a single 811 // rounding rather than two and no intermediate overflow. 812 // 813 // Asm: VFMSUBADD213PS, CPU Feature: FMA 814 func (x Float32x8) MulAddEvenSubOdd(y Float32x8, z Float32x8) (w Float32x8) 815 816 // MulAddEvenSubOdd returns x * y + z for the even-indexed elements and 817 // x * y - z for the odd-indexed elements. 818 // 819 // w[2*i] = x[2*i] * y[2*i] + z[2*i] // Add even 820 // w[2*i+1] = x[2*i+1] * y[2*i+1] - z[2*i+1] // Subtract odd 821 // 822 // This performs a fused multiply-add, computing each result with a single 823 // rounding rather than two and no intermediate overflow. 824 // 825 // Asm: VFMSUBADD213PS, CPU Feature: AVX512 826 func (x Float32x16) MulAddEvenSubOdd(y Float32x16, z Float32x16) (w Float32x16) 827 828 // MulAddEvenSubOdd returns x * y + z for the even-indexed elements and 829 // x * y - z for the odd-indexed elements. 830 // 831 // w[2*i] = x[2*i] * y[2*i] + z[2*i] // Add even 832 // w[2*i+1] = x[2*i+1] * y[2*i+1] - z[2*i+1] // Subtract odd 833 // 834 // This performs a fused multiply-add, computing each result with a single 835 // rounding rather than two and no intermediate overflow. 836 // 837 // Asm: VFMSUBADD213PD, CPU Feature: FMA 838 func (x Float64x2) MulAddEvenSubOdd(y Float64x2, z Float64x2) (w Float64x2) 839 840 // MulAddEvenSubOdd returns x * y + z for the even-indexed elements and 841 // x * y - z for the odd-indexed elements. 842 // 843 // w[2*i] = x[2*i] * y[2*i] + z[2*i] // Add even 844 // w[2*i+1] = x[2*i+1] * y[2*i+1] - z[2*i+1] // Subtract odd 845 // 846 // This performs a fused multiply-add, computing each result with a single 847 // rounding rather than two and no intermediate overflow. 848 // 849 // Asm: VFMSUBADD213PD, CPU Feature: FMA 850 func (x Float64x4) MulAddEvenSubOdd(y Float64x4, z Float64x4) (w Float64x4) 851 852 // MulAddEvenSubOdd returns x * y + z for the even-indexed elements and 853 // x * y - z for the odd-indexed elements. 854 // 855 // w[2*i] = x[2*i] * y[2*i] + z[2*i] // Add even 856 // w[2*i+1] = x[2*i+1] * y[2*i+1] - z[2*i+1] // Subtract odd 857 // 858 // This performs a fused multiply-add, computing each result with a single 859 // rounding rather than two and no intermediate overflow. 860 // 861 // Asm: VFMSUBADD213PD, CPU Feature: AVX512 862 func (x Float64x8) MulAddEvenSubOdd(y Float64x8, z Float64x8) (w Float64x8) 863 864 /* MulAddOddSubEven */ 865 866 // MulAddOddSubEven returns x * y + z for the odd-indexed elements and 867 // x * y - z for the even-indexed elements. 868 // 869 // w[2*i+1] = x[2*i+1] * y[2*i+1] + z[2*i+1] // Add odd 870 // w[2*i] = x[2*i] * y[2*i] - z[2*i] // Subtract even 871 // 872 // This performs a fused multiply-add, computing each result with a single 873 // rounding rather than two and no intermediate overflow. 874 // 875 // Asm: VFMADDSUB213PS, CPU Feature: FMA 876 func (x Float32x4) MulAddOddSubEven(y Float32x4, z Float32x4) (w Float32x4) 877 878 // MulAddOddSubEven returns x * y + z for the odd-indexed elements and 879 // x * y - z for the even-indexed elements. 880 // 881 // w[2*i+1] = x[2*i+1] * y[2*i+1] + z[2*i+1] // Add odd 882 // w[2*i] = x[2*i] * y[2*i] - z[2*i] // Subtract even 883 // 884 // This performs a fused multiply-add, computing each result with a single 885 // rounding rather than two and no intermediate overflow. 886 // 887 // Asm: VFMADDSUB213PS, CPU Feature: FMA 888 func (x Float32x8) MulAddOddSubEven(y Float32x8, z Float32x8) (w Float32x8) 889 890 // MulAddOddSubEven returns x * y + z for the odd-indexed elements and 891 // x * y - z for the even-indexed elements. 892 // 893 // w[2*i+1] = x[2*i+1] * y[2*i+1] + z[2*i+1] // Add odd 894 // w[2*i] = x[2*i] * y[2*i] - z[2*i] // Subtract even 895 // 896 // This performs a fused multiply-add, computing each result with a single 897 // rounding rather than two and no intermediate overflow. 898 // 899 // Asm: VFMADDSUB213PS, CPU Feature: AVX512 900 func (x Float32x16) MulAddOddSubEven(y Float32x16, z Float32x16) (w Float32x16) 901 902 // MulAddOddSubEven returns x * y + z for the odd-indexed elements and 903 // x * y - z for the even-indexed elements. 904 // 905 // w[2*i+1] = x[2*i+1] * y[2*i+1] + z[2*i+1] // Add odd 906 // w[2*i] = x[2*i] * y[2*i] - z[2*i] // Subtract even 907 // 908 // This performs a fused multiply-add, computing each result with a single 909 // rounding rather than two and no intermediate overflow. 910 // 911 // Asm: VFMADDSUB213PD, CPU Feature: FMA 912 func (x Float64x2) MulAddOddSubEven(y Float64x2, z Float64x2) (w Float64x2) 913 914 // MulAddOddSubEven returns x * y + z for the odd-indexed elements and 915 // x * y - z for the even-indexed elements. 916 // 917 // w[2*i+1] = x[2*i+1] * y[2*i+1] + z[2*i+1] // Add odd 918 // w[2*i] = x[2*i] * y[2*i] - z[2*i] // Subtract even 919 // 920 // This performs a fused multiply-add, computing each result with a single 921 // rounding rather than two and no intermediate overflow. 922 // 923 // Asm: VFMADDSUB213PD, CPU Feature: FMA 924 func (x Float64x4) MulAddOddSubEven(y Float64x4, z Float64x4) (w Float64x4) 925 926 // MulAddOddSubEven returns x * y + z for the odd-indexed elements and 927 // x * y - z for the even-indexed elements. 928 // 929 // w[2*i+1] = x[2*i+1] * y[2*i+1] + z[2*i+1] // Add odd 930 // w[2*i] = x[2*i] * y[2*i] - z[2*i] // Subtract even 931 // 932 // This performs a fused multiply-add, computing each result with a single 933 // rounding rather than two and no intermediate overflow. 934 // 935 // Asm: VFMADDSUB213PD, CPU Feature: AVX512 936 func (x Float64x8) MulAddOddSubEven(y Float64x8, z Float64x8) (w Float64x8) 937 938 /* MulHigh */ 939 940 // MulHigh multiplies corresponding elements of x and y and returns the high 941 // half of each double-width product. 942 // 943 // z[i] = (x[i] * y[i]) >> 16 944 // 945 // The product is computed exactly, so no bits are lost before the shift. 946 // 947 // Asm: VPMULHW, CPU Feature: AVX 948 func (x Int16x8) MulHigh(y Int16x8) (z Int16x8) 949 950 // MulHigh multiplies corresponding elements of x and y and returns the high 951 // half of each double-width product. 952 // 953 // z[i] = (x[i] * y[i]) >> 16 954 // 955 // The product is computed exactly, so no bits are lost before the shift. 956 // 957 // Asm: VPMULHW, CPU Feature: AVX2 958 func (x Int16x16) MulHigh(y Int16x16) (z Int16x16) 959 960 // MulHigh multiplies corresponding elements of x and y and returns the high 961 // half of each double-width product. 962 // 963 // z[i] = (x[i] * y[i]) >> 16 964 // 965 // The product is computed exactly, so no bits are lost before the shift. 966 // 967 // Asm: VPMULHW, CPU Feature: AVX512 968 func (x Int16x32) MulHigh(y Int16x32) (z Int16x32) 969 970 // MulHigh multiplies corresponding elements of x and y and returns the high 971 // half of each double-width product. 972 // 973 // z[i] = (x[i] * y[i]) >> 16 974 // 975 // The product is computed exactly, so no bits are lost before the shift. 976 // 977 // Asm: VPMULHUW, CPU Feature: AVX 978 func (x Uint16x8) MulHigh(y Uint16x8) (z Uint16x8) 979 980 // MulHigh multiplies corresponding elements of x and y and returns the high 981 // half of each double-width product. 982 // 983 // z[i] = (x[i] * y[i]) >> 16 984 // 985 // The product is computed exactly, so no bits are lost before the shift. 986 // 987 // Asm: VPMULHUW, CPU Feature: AVX2 988 func (x Uint16x16) MulHigh(y Uint16x16) (z Uint16x16) 989 990 // MulHigh multiplies corresponding elements of x and y and returns the high 991 // half of each double-width product. 992 // 993 // z[i] = (x[i] * y[i]) >> 16 994 // 995 // The product is computed exactly, so no bits are lost before the shift. 996 // 997 // Asm: VPMULHUW, CPU Feature: AVX512 998 func (x Uint16x32) MulHigh(y Uint16x32) (z Uint16x32) 999 1000 /* MulSign */ 1001 1002 // MulSign returns x multiplied by the sign of y (-1, 0 or 1), elementwise. 1003 // 1004 // z[i] = x[i] * sign(y[i]) 1005 // 1006 // That is, z[i] is -x[i] where y[i] is negative, 0 where y[i] is 0, and x[i] 1007 // where y[i] is positive. The negation wraps, so the most negative value stays 1008 // as it is. 1009 // 1010 // Asm: VPSIGNB, CPU Feature: AVX 1011 func (x Int8x16) MulSign(y Int8x16) (z Int8x16) 1012 1013 // MulSign returns x multiplied by the sign of y (-1, 0 or 1), elementwise. 1014 // 1015 // z[i] = x[i] * sign(y[i]) 1016 // 1017 // That is, z[i] is -x[i] where y[i] is negative, 0 where y[i] is 0, and x[i] 1018 // where y[i] is positive. The negation wraps, so the most negative value stays 1019 // as it is. 1020 // 1021 // Asm: VPSIGNB, CPU Feature: AVX2 1022 func (x Int8x32) MulSign(y Int8x32) (z Int8x32) 1023 1024 // MulSign returns x multiplied by the sign of y (-1, 0 or 1), elementwise. 1025 // 1026 // z[i] = x[i] * sign(y[i]) 1027 // 1028 // That is, z[i] is -x[i] where y[i] is negative, 0 where y[i] is 0, and x[i] 1029 // where y[i] is positive. The negation wraps, so the most negative value stays 1030 // as it is. 1031 // 1032 // Asm: VPSIGNW, CPU Feature: AVX 1033 func (x Int16x8) MulSign(y Int16x8) (z Int16x8) 1034 1035 // MulSign returns x multiplied by the sign of y (-1, 0 or 1), elementwise. 1036 // 1037 // z[i] = x[i] * sign(y[i]) 1038 // 1039 // That is, z[i] is -x[i] where y[i] is negative, 0 where y[i] is 0, and x[i] 1040 // where y[i] is positive. The negation wraps, so the most negative value stays 1041 // as it is. 1042 // 1043 // Asm: VPSIGNW, CPU Feature: AVX2 1044 func (x Int16x16) MulSign(y Int16x16) (z Int16x16) 1045 1046 // MulSign returns x multiplied by the sign of y (-1, 0 or 1), elementwise. 1047 // 1048 // z[i] = x[i] * sign(y[i]) 1049 // 1050 // That is, z[i] is -x[i] where y[i] is negative, 0 where y[i] is 0, and x[i] 1051 // where y[i] is positive. The negation wraps, so the most negative value stays 1052 // as it is. 1053 // 1054 // Asm: VPSIGND, CPU Feature: AVX 1055 func (x Int32x4) MulSign(y Int32x4) (z Int32x4) 1056 1057 // MulSign returns x multiplied by the sign of y (-1, 0 or 1), elementwise. 1058 // 1059 // z[i] = x[i] * sign(y[i]) 1060 // 1061 // That is, z[i] is -x[i] where y[i] is negative, 0 where y[i] is 0, and x[i] 1062 // where y[i] is positive. The negation wraps, so the most negative value stays 1063 // as it is. 1064 // 1065 // Asm: VPSIGND, CPU Feature: AVX2 1066 func (x Int32x8) MulSign(y Int32x8) (z Int32x8) 1067 1068 /* MulWidenEven */ 1069 1070 // MulWidenEven multiplies corresponding even-indexed elements of x and y, 1071 // returning a vector of half as many elements, each with twice the input 1072 // element size. 1073 // 1074 // z[i] = int64(x[2*i]) * int64(y[2*i]) 1075 // 1076 // The doubled element width is sufficient to hold every product without 1077 // overflow. 1078 // 1079 // Asm: VPMULDQ, CPU Feature: AVX 1080 func (x Int32x4) MulWidenEven(y Int32x4) (z Int64x2) 1081 1082 // MulWidenEven multiplies corresponding even-indexed elements of x and y, 1083 // returning a vector of half as many elements, each with twice the input 1084 // element size. 1085 // 1086 // z[i] = int64(x[2*i]) * int64(y[2*i]) 1087 // 1088 // The doubled element width is sufficient to hold every product without 1089 // overflow. 1090 // 1091 // Asm: VPMULDQ, CPU Feature: AVX2 1092 func (x Int32x8) MulWidenEven(y Int32x8) (z Int64x4) 1093 1094 // MulWidenEven multiplies corresponding even-indexed elements of x and y, 1095 // returning a vector of half as many elements, each with twice the input 1096 // element size. 1097 // 1098 // z[i] = uint64(x[2*i]) * uint64(y[2*i]) 1099 // 1100 // The doubled element width is sufficient to hold every product without 1101 // overflow. 1102 // 1103 // Asm: VPMULUDQ, CPU Feature: AVX 1104 func (x Uint32x4) MulWidenEven(y Uint32x4) (z Uint64x2) 1105 1106 // MulWidenEven multiplies corresponding even-indexed elements of x and y, 1107 // returning a vector of half as many elements, each with twice the input 1108 // element size. 1109 // 1110 // z[i] = uint64(x[2*i]) * uint64(y[2*i]) 1111 // 1112 // The doubled element width is sufficient to hold every product without 1113 // overflow. 1114 // 1115 // Asm: VPMULUDQ, CPU Feature: AVX2 1116 func (x Uint32x8) MulWidenEven(y Uint32x8) (z Uint64x4) 1117 1118 /* Reciprocal */ 1119 1120 // Reciprocal computes an approximate reciprocal of each element. 1121 // 1122 // Asm: VRCPPS, CPU Feature: AVX 1123 func (x Float32x4) Reciprocal() Float32x4 1124 1125 // Reciprocal computes an approximate reciprocal of each element. 1126 // 1127 // Asm: VRCPPS, CPU Feature: AVX 1128 func (x Float32x8) Reciprocal() Float32x8 1129 1130 // Reciprocal computes an approximate reciprocal of each element. 1131 // 1132 // Asm: VRCP14PS, CPU Feature: AVX512 1133 func (x Float32x16) Reciprocal() Float32x16 1134 1135 // Reciprocal computes an approximate reciprocal of each element. 1136 // 1137 // Asm: VRCP14PD, CPU Feature: AVX512 1138 func (x Float64x2) Reciprocal() Float64x2 1139 1140 // Reciprocal computes an approximate reciprocal of each element. 1141 // 1142 // Asm: VRCP14PD, CPU Feature: AVX512 1143 func (x Float64x4) Reciprocal() Float64x4 1144 1145 // Reciprocal computes an approximate reciprocal of each element. 1146 // 1147 // Asm: VRCP14PD, CPU Feature: AVX512 1148 func (x Float64x8) Reciprocal() Float64x8 1149 1150 /* ReciprocalSqrt */ 1151 1152 // ReciprocalSqrt computes an approximate reciprocal of the square root of each element. 1153 // 1154 // Asm: VRSQRTPS, CPU Feature: AVX 1155 func (x Float32x4) ReciprocalSqrt() Float32x4 1156 1157 // ReciprocalSqrt computes an approximate reciprocal of the square root of each element. 1158 // 1159 // Asm: VRSQRTPS, CPU Feature: AVX 1160 func (x Float32x8) ReciprocalSqrt() Float32x8 1161 1162 // ReciprocalSqrt computes an approximate reciprocal of the square root of each element. 1163 // 1164 // Asm: VRSQRT14PS, CPU Feature: AVX512 1165 func (x Float32x16) ReciprocalSqrt() Float32x16 1166 1167 // ReciprocalSqrt computes an approximate reciprocal of the square root of each element. 1168 // 1169 // Asm: VRSQRT14PD, CPU Feature: AVX512 1170 func (x Float64x2) ReciprocalSqrt() Float64x2 1171 1172 // ReciprocalSqrt computes an approximate reciprocal of the square root of each element. 1173 // 1174 // Asm: VRSQRT14PD, CPU Feature: AVX512 1175 func (x Float64x4) ReciprocalSqrt() Float64x4 1176 1177 // ReciprocalSqrt computes an approximate reciprocal of the square root of each element. 1178 // 1179 // Asm: VRSQRT14PD, CPU Feature: AVX512 1180 func (x Float64x8) ReciprocalSqrt() Float64x8 1181 1182 /* RoundScaled */ 1183 1184 // RoundScaled rounds elements with specified precision. 1185 // 1186 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 1187 // 1188 // Asm: VRNDSCALEPS, CPU Feature: AVX512 1189 func (x Float32x4) RoundScaled(prec uint8) Float32x4 1190 1191 // RoundScaled rounds elements with specified precision. 1192 // 1193 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 1194 // 1195 // Asm: VRNDSCALEPS, CPU Feature: AVX512 1196 func (x Float32x8) RoundScaled(prec uint8) Float32x8 1197 1198 // RoundScaled rounds elements with specified precision. 1199 // 1200 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 1201 // 1202 // Asm: VRNDSCALEPS, CPU Feature: AVX512 1203 func (x Float32x16) RoundScaled(prec uint8) Float32x16 1204 1205 // RoundScaled rounds elements with specified precision. 1206 // 1207 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 1208 // 1209 // Asm: VRNDSCALEPD, CPU Feature: AVX512 1210 func (x Float64x2) RoundScaled(prec uint8) Float64x2 1211 1212 // RoundScaled rounds elements with specified precision. 1213 // 1214 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 1215 // 1216 // Asm: VRNDSCALEPD, CPU Feature: AVX512 1217 func (x Float64x4) RoundScaled(prec uint8) Float64x4 1218 1219 // RoundScaled rounds elements with specified precision. 1220 // 1221 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 1222 // 1223 // Asm: VRNDSCALEPD, CPU Feature: AVX512 1224 func (x Float64x8) RoundScaled(prec uint8) Float64x8 1225 1226 /* RoundScaledResidue */ 1227 1228 // RoundScaledResidue computes the difference after rounding with specified precision. 1229 // 1230 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 1231 // 1232 // Asm: VREDUCEPS, CPU Feature: AVX512 1233 func (x Float32x4) RoundScaledResidue(prec uint8) Float32x4 1234 1235 // RoundScaledResidue computes the difference after rounding with specified precision. 1236 // 1237 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 1238 // 1239 // Asm: VREDUCEPS, CPU Feature: AVX512 1240 func (x Float32x8) RoundScaledResidue(prec uint8) Float32x8 1241 1242 // RoundScaledResidue computes the difference after rounding with specified precision. 1243 // 1244 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 1245 // 1246 // Asm: VREDUCEPS, CPU Feature: AVX512 1247 func (x Float32x16) RoundScaledResidue(prec uint8) Float32x16 1248 1249 // RoundScaledResidue computes the difference after rounding with specified precision. 1250 // 1251 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 1252 // 1253 // Asm: VREDUCEPD, CPU Feature: AVX512 1254 func (x Float64x2) RoundScaledResidue(prec uint8) Float64x2 1255 1256 // RoundScaledResidue computes the difference after rounding with specified precision. 1257 // 1258 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 1259 // 1260 // Asm: VREDUCEPD, CPU Feature: AVX512 1261 func (x Float64x4) RoundScaledResidue(prec uint8) Float64x4 1262 1263 // RoundScaledResidue computes the difference after rounding with specified precision. 1264 // 1265 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 1266 // 1267 // Asm: VREDUCEPD, CPU Feature: AVX512 1268 func (x Float64x8) RoundScaledResidue(prec uint8) Float64x8 1269 1270 /* SHA1FourRounds */ 1271 1272 // SHA1FourRounds performs 4 rounds of B loop in SHA1 algorithm defined in FIPS 180-4. 1273 // x contains the state variables a, b, c and d from upper to lower order. 1274 // y contains the W array elements (with the state variable e added to the upper element) from upper to lower order. 1275 // result = the state variables a', b', c', d' updated after 4 rounds. 1276 // constant = 0 for the first 20 rounds of the loop, 1 for the next 20 rounds of the loop..., 3 for the last 20 rounds of the loop. 1277 // 1278 // Performance: A non-constant value of constant may result in significantly worse performance for this operation. 1279 // 1280 // Asm: SHA1RNDS4, CPU Feature: SHA 1281 func (x Uint32x4) SHA1FourRounds(constant uint8, y Uint32x4) Uint32x4 1282 1283 /* SHA1Message1 */ 1284 1285 // SHA1Message1 does the XORing of 1 in SHA1 algorithm defined in FIPS 180-4. 1286 // x = {W3, W2, W1, W0} 1287 // y = {0, 0, W5, W4} 1288 // result = {W3^W5, W2^W4, W1^W3, W0^W2}. 1289 // 1290 // Asm: SHA1MSG1, CPU Feature: SHA 1291 func (x Uint32x4) SHA1Message1(y Uint32x4) Uint32x4 1292 1293 /* SHA1Message2 */ 1294 1295 // SHA1Message2 does the calculation of 3 and 4 in SHA1 algorithm defined in FIPS 180-4. 1296 // x = result of 2. 1297 // y = {W15, W14, W13} 1298 // result = {W19, W18, W17, W16} 1299 // 1300 // Asm: SHA1MSG2, CPU Feature: SHA 1301 func (x Uint32x4) SHA1Message2(y Uint32x4) Uint32x4 1302 1303 /* SHA1NextE */ 1304 1305 // SHA1NextE calculates the state variable e' updated after 4 rounds in SHA1 algorithm defined in FIPS 180-4. 1306 // x contains the state variable a (before the 4 rounds), placed in the upper element. 1307 // y is the elements of W array for next 4 rounds from upper to lower order. 1308 // result = the elements of the W array for the next 4 rounds, with the updated state variable e' added to the upper element, 1309 // from upper to lower order. 1310 // For the last round of the loop, you can specify zero for y to obtain the e' value itself, or better off specifying H4:0:0:0 1311 // for y to get e' added to H4. (Note that the value of e' is computed only from x, and values of y don't affect the 1312 // computation of the value of e'.) 1313 // 1314 // Asm: SHA1NEXTE, CPU Feature: SHA 1315 func (x Uint32x4) SHA1NextE(y Uint32x4) Uint32x4 1316 1317 /* SHA256Message1 */ 1318 1319 // SHA256Message1 does the sigma and addition of 1 in SHA256 algorithm defined in FIPS 180-4. 1320 // x = {W0, W1, W2, W3} 1321 // y = {W4, 0, 0, 0} 1322 // result = {W0+σ(W1), W1+σ(W2), W2+σ(W3), W3+σ(W4)} 1323 // 1324 // Asm: SHA256MSG1, CPU Feature: SHA 1325 func (x Uint32x4) SHA256Message1(y Uint32x4) Uint32x4 1326 1327 /* SHA256Message2 */ 1328 1329 // SHA256Message2 does the sigma and addition of 3 in SHA256 algorithm defined in FIPS 180-4. 1330 // x = result of 2 1331 // y = {0, 0, W14, W15} 1332 // result = {W16, W17, W18, W19} 1333 // 1334 // Asm: SHA256MSG2, CPU Feature: SHA 1335 func (x Uint32x4) SHA256Message2(y Uint32x4) Uint32x4 1336 1337 /* SHA256TwoRounds */ 1338 1339 // SHA256TwoRounds does 2 rounds of B loop to calculate updated state variables in SHA256 algorithm defined in FIPS 180-4. 1340 // x = {h, g, d, c} 1341 // y = {f, e, b, a} 1342 // z = {W0+K0, W1+K1} 1343 // result = {f', e', b', a'} 1344 // The K array is a 64-DWORD constant array defined in page 11 of FIPS 180-4. Each element of the K array is to be added to 1345 // the corresponding element of the W array to make the input data z. 1346 // The updated state variables c', d', g', h' are not returned by this instruction, because they are equal to the input data 1347 // y (the state variables a, b, e, f before the 2 rounds). 1348 // 1349 // Asm: SHA256RNDS2, CPU Feature: SHA 1350 func (x Uint32x4) SHA256TwoRounds(y Uint32x4, z Uint32x4) Uint32x4 1351 1352 /* Scale */ 1353 1354 // Scale multiplies each element of x by 2 raised to the power of the 1355 // floor of the corresponding element in y. 1356 // 1357 // Asm: VSCALEFPS, CPU Feature: AVX512 1358 func (x Float32x4) Scale(y Float32x4) Float32x4 1359 1360 // Scale multiplies each element of x by 2 raised to the power of the 1361 // floor of the corresponding element in y. 1362 // 1363 // Asm: VSCALEFPS, CPU Feature: AVX512 1364 func (x Float32x8) Scale(y Float32x8) Float32x8 1365 1366 // Scale multiplies each element of x by 2 raised to the power of the 1367 // floor of the corresponding element in y. 1368 // 1369 // Asm: VSCALEFPS, CPU Feature: AVX512 1370 func (x Float32x16) Scale(y Float32x16) Float32x16 1371 1372 // Scale multiplies each element of x by 2 raised to the power of the 1373 // floor of the corresponding element in y. 1374 // 1375 // Asm: VSCALEFPD, CPU Feature: AVX512 1376 func (x Float64x2) Scale(y Float64x2) Float64x2 1377 1378 // Scale multiplies each element of x by 2 raised to the power of the 1379 // floor of the corresponding element in y. 1380 // 1381 // Asm: VSCALEFPD, CPU Feature: AVX512 1382 func (x Float64x4) Scale(y Float64x4) Float64x4 1383 1384 // Scale multiplies each element of x by 2 raised to the power of the 1385 // floor of the corresponding element in y. 1386 // 1387 // Asm: VSCALEFPD, CPU Feature: AVX512 1388 func (x Float64x8) Scale(y Float64x8) Float64x8 1389 1390 /* ShiftAllLeftConcatMod16 */ 1391 1392 // ShiftAllLeftConcatMod16 shifts x[i] left by shift%16, filling the emptied 1393 // low bits with the high bits of y[i]. That is, it shifts the double-width 1394 // concatenation of x[i] (high) and y[i] (low) left and keeps the high 16 1395 // bits. 1396 // 1397 // s = shift % 16 1398 // z[i] = x[i]<<s | y[i]>>(16-s) 1399 // 1400 // Performance: A non-constant value of shift may result in significantly worse performance for this operation. 1401 // 1402 // Asm: VPSHLDW, CPU Feature: AVX512VBMI2 1403 func (x Uint16x8) ShiftAllLeftConcatMod16(y Uint16x8, shift uint64) (z Uint16x8) 1404 1405 // ShiftAllLeftConcatMod16 shifts x[i] left by shift%16, filling the emptied 1406 // low bits with the high bits of y[i]. That is, it shifts the double-width 1407 // concatenation of x[i] (high) and y[i] (low) left and keeps the high 16 1408 // bits. 1409 // 1410 // s = shift % 16 1411 // z[i] = x[i]<<s | y[i]>>(16-s) 1412 // 1413 // Performance: A non-constant value of shift may result in significantly worse performance for this operation. 1414 // 1415 // Asm: VPSHLDW, CPU Feature: AVX512VBMI2 1416 func (x Uint16x16) ShiftAllLeftConcatMod16(y Uint16x16, shift uint64) (z Uint16x16) 1417 1418 // ShiftAllLeftConcatMod16 shifts x[i] left by shift%16, filling the emptied 1419 // low bits with the high bits of y[i]. That is, it shifts the double-width 1420 // concatenation of x[i] (high) and y[i] (low) left and keeps the high 16 1421 // bits. 1422 // 1423 // s = shift % 16 1424 // z[i] = x[i]<<s | y[i]>>(16-s) 1425 // 1426 // Performance: A non-constant value of shift may result in significantly worse performance for this operation. 1427 // 1428 // Asm: VPSHLDW, CPU Feature: AVX512VBMI2 1429 func (x Uint16x32) ShiftAllLeftConcatMod16(y Uint16x32, shift uint64) (z Uint16x32) 1430 1431 /* ShiftAllLeftConcatMod32 */ 1432 1433 // ShiftAllLeftConcatMod32 shifts x[i] left by shift%32, filling the emptied 1434 // low bits with the high bits of y[i]. That is, it shifts the double-width 1435 // concatenation of x[i] (high) and y[i] (low) left and keeps the high 32 1436 // bits. 1437 // 1438 // s = shift % 32 1439 // z[i] = x[i]<<s | y[i]>>(32-s) 1440 // 1441 // Performance: A non-constant value of shift may result in significantly worse performance for this operation. 1442 // 1443 // Asm: VPSHLDD, CPU Feature: AVX512VBMI2 1444 func (x Uint32x4) ShiftAllLeftConcatMod32(y Uint32x4, shift uint64) (z Uint32x4) 1445 1446 // ShiftAllLeftConcatMod32 shifts x[i] left by shift%32, filling the emptied 1447 // low bits with the high bits of y[i]. That is, it shifts the double-width 1448 // concatenation of x[i] (high) and y[i] (low) left and keeps the high 32 1449 // bits. 1450 // 1451 // s = shift % 32 1452 // z[i] = x[i]<<s | y[i]>>(32-s) 1453 // 1454 // Performance: A non-constant value of shift may result in significantly worse performance for this operation. 1455 // 1456 // Asm: VPSHLDD, CPU Feature: AVX512VBMI2 1457 func (x Uint32x8) ShiftAllLeftConcatMod32(y Uint32x8, shift uint64) (z Uint32x8) 1458 1459 // ShiftAllLeftConcatMod32 shifts x[i] left by shift%32, filling the emptied 1460 // low bits with the high bits of y[i]. That is, it shifts the double-width 1461 // concatenation of x[i] (high) and y[i] (low) left and keeps the high 32 1462 // bits. 1463 // 1464 // s = shift % 32 1465 // z[i] = x[i]<<s | y[i]>>(32-s) 1466 // 1467 // Performance: A non-constant value of shift may result in significantly worse performance for this operation. 1468 // 1469 // Asm: VPSHLDD, CPU Feature: AVX512VBMI2 1470 func (x Uint32x16) ShiftAllLeftConcatMod32(y Uint32x16, shift uint64) (z Uint32x16) 1471 1472 /* ShiftAllLeftConcatMod64 */ 1473 1474 // ShiftAllLeftConcatMod64 shifts x[i] left by shift%64, filling the emptied 1475 // low bits with the high bits of y[i]. That is, it shifts the double-width 1476 // concatenation of x[i] (high) and y[i] (low) left and keeps the high 64 1477 // bits. 1478 // 1479 // s = shift % 64 1480 // z[i] = x[i]<<s | y[i]>>(64-s) 1481 // 1482 // Performance: A non-constant value of shift may result in significantly worse performance for this operation. 1483 // 1484 // Asm: VPSHLDQ, CPU Feature: AVX512VBMI2 1485 func (x Uint64x2) ShiftAllLeftConcatMod64(y Uint64x2, shift uint64) (z Uint64x2) 1486 1487 // ShiftAllLeftConcatMod64 shifts x[i] left by shift%64, filling the emptied 1488 // low bits with the high bits of y[i]. That is, it shifts the double-width 1489 // concatenation of x[i] (high) and y[i] (low) left and keeps the high 64 1490 // bits. 1491 // 1492 // s = shift % 64 1493 // z[i] = x[i]<<s | y[i]>>(64-s) 1494 // 1495 // Performance: A non-constant value of shift may result in significantly worse performance for this operation. 1496 // 1497 // Asm: VPSHLDQ, CPU Feature: AVX512VBMI2 1498 func (x Uint64x4) ShiftAllLeftConcatMod64(y Uint64x4, shift uint64) (z Uint64x4) 1499 1500 // ShiftAllLeftConcatMod64 shifts x[i] left by shift%64, filling the emptied 1501 // low bits with the high bits of y[i]. That is, it shifts the double-width 1502 // concatenation of x[i] (high) and y[i] (low) left and keeps the high 64 1503 // bits. 1504 // 1505 // s = shift % 64 1506 // z[i] = x[i]<<s | y[i]>>(64-s) 1507 // 1508 // Performance: A non-constant value of shift may result in significantly worse performance for this operation. 1509 // 1510 // Asm: VPSHLDQ, CPU Feature: AVX512VBMI2 1511 func (x Uint64x8) ShiftAllLeftConcatMod64(y Uint64x8, shift uint64) (z Uint64x8) 1512 1513 /* ShiftAllRightConcatMod16 */ 1514 1515 // ShiftAllRightConcatMod16 shifts x[i] right by shift%16, filling the 1516 // emptied high bits with the low bits of y[i]. That is, it shifts the 1517 // double-width concatenation of y[i] (high) and x[i] (low) right and keeps the 1518 // low 16 bits. 1519 // 1520 // s = shift % 16 1521 // z[i] = x[i]>>s | y[i]<<(16-s) 1522 // 1523 // Performance: A non-constant value of shift may result in significantly worse performance for this operation. 1524 // 1525 // Asm: VPSHRDW, CPU Feature: AVX512VBMI2 1526 func (x Uint16x8) ShiftAllRightConcatMod16(y Uint16x8, shift uint64) (z Uint16x8) 1527 1528 // ShiftAllRightConcatMod16 shifts x[i] right by shift%16, filling the 1529 // emptied high bits with the low bits of y[i]. That is, it shifts the 1530 // double-width concatenation of y[i] (high) and x[i] (low) right and keeps the 1531 // low 16 bits. 1532 // 1533 // s = shift % 16 1534 // z[i] = x[i]>>s | y[i]<<(16-s) 1535 // 1536 // Performance: A non-constant value of shift may result in significantly worse performance for this operation. 1537 // 1538 // Asm: VPSHRDW, CPU Feature: AVX512VBMI2 1539 func (x Uint16x16) ShiftAllRightConcatMod16(y Uint16x16, shift uint64) (z Uint16x16) 1540 1541 // ShiftAllRightConcatMod16 shifts x[i] right by shift%16, filling the 1542 // emptied high bits with the low bits of y[i]. That is, it shifts the 1543 // double-width concatenation of y[i] (high) and x[i] (low) right and keeps the 1544 // low 16 bits. 1545 // 1546 // s = shift % 16 1547 // z[i] = x[i]>>s | y[i]<<(16-s) 1548 // 1549 // Performance: A non-constant value of shift may result in significantly worse performance for this operation. 1550 // 1551 // Asm: VPSHRDW, CPU Feature: AVX512VBMI2 1552 func (x Uint16x32) ShiftAllRightConcatMod16(y Uint16x32, shift uint64) (z Uint16x32) 1553 1554 /* ShiftAllRightConcatMod32 */ 1555 1556 // ShiftAllRightConcatMod32 shifts x[i] right by shift%32, filling the 1557 // emptied high bits with the low bits of y[i]. That is, it shifts the 1558 // double-width concatenation of y[i] (high) and x[i] (low) right and keeps the 1559 // low 32 bits. 1560 // 1561 // s = shift % 32 1562 // z[i] = x[i]>>s | y[i]<<(32-s) 1563 // 1564 // Performance: A non-constant value of shift may result in significantly worse performance for this operation. 1565 // 1566 // Asm: VPSHRDD, CPU Feature: AVX512VBMI2 1567 func (x Uint32x4) ShiftAllRightConcatMod32(y Uint32x4, shift uint64) (z Uint32x4) 1568 1569 // ShiftAllRightConcatMod32 shifts x[i] right by shift%32, filling the 1570 // emptied high bits with the low bits of y[i]. That is, it shifts the 1571 // double-width concatenation of y[i] (high) and x[i] (low) right and keeps the 1572 // low 32 bits. 1573 // 1574 // s = shift % 32 1575 // z[i] = x[i]>>s | y[i]<<(32-s) 1576 // 1577 // Performance: A non-constant value of shift may result in significantly worse performance for this operation. 1578 // 1579 // Asm: VPSHRDD, CPU Feature: AVX512VBMI2 1580 func (x Uint32x8) ShiftAllRightConcatMod32(y Uint32x8, shift uint64) (z Uint32x8) 1581 1582 // ShiftAllRightConcatMod32 shifts x[i] right by shift%32, filling the 1583 // emptied high bits with the low bits of y[i]. That is, it shifts the 1584 // double-width concatenation of y[i] (high) and x[i] (low) right and keeps the 1585 // low 32 bits. 1586 // 1587 // s = shift % 32 1588 // z[i] = x[i]>>s | y[i]<<(32-s) 1589 // 1590 // Performance: A non-constant value of shift may result in significantly worse performance for this operation. 1591 // 1592 // Asm: VPSHRDD, CPU Feature: AVX512VBMI2 1593 func (x Uint32x16) ShiftAllRightConcatMod32(y Uint32x16, shift uint64) (z Uint32x16) 1594 1595 /* ShiftAllRightConcatMod64 */ 1596 1597 // ShiftAllRightConcatMod64 shifts x[i] right by shift%64, filling the 1598 // emptied high bits with the low bits of y[i]. That is, it shifts the 1599 // double-width concatenation of y[i] (high) and x[i] (low) right and keeps the 1600 // low 64 bits. 1601 // 1602 // s = shift % 64 1603 // z[i] = x[i]>>s | y[i]<<(64-s) 1604 // 1605 // Performance: A non-constant value of shift may result in significantly worse performance for this operation. 1606 // 1607 // Asm: VPSHRDQ, CPU Feature: AVX512VBMI2 1608 func (x Uint64x2) ShiftAllRightConcatMod64(y Uint64x2, shift uint64) (z Uint64x2) 1609 1610 // ShiftAllRightConcatMod64 shifts x[i] right by shift%64, filling the 1611 // emptied high bits with the low bits of y[i]. That is, it shifts the 1612 // double-width concatenation of y[i] (high) and x[i] (low) right and keeps the 1613 // low 64 bits. 1614 // 1615 // s = shift % 64 1616 // z[i] = x[i]>>s | y[i]<<(64-s) 1617 // 1618 // Performance: A non-constant value of shift may result in significantly worse performance for this operation. 1619 // 1620 // Asm: VPSHRDQ, CPU Feature: AVX512VBMI2 1621 func (x Uint64x4) ShiftAllRightConcatMod64(y Uint64x4, shift uint64) (z Uint64x4) 1622 1623 // ShiftAllRightConcatMod64 shifts x[i] right by shift%64, filling the 1624 // emptied high bits with the low bits of y[i]. That is, it shifts the 1625 // double-width concatenation of y[i] (high) and x[i] (low) right and keeps the 1626 // low 64 bits. 1627 // 1628 // s = shift % 64 1629 // z[i] = x[i]>>s | y[i]<<(64-s) 1630 // 1631 // Performance: A non-constant value of shift may result in significantly worse performance for this operation. 1632 // 1633 // Asm: VPSHRDQ, CPU Feature: AVX512VBMI2 1634 func (x Uint64x8) ShiftAllRightConcatMod64(y Uint64x8, shift uint64) (z Uint64x8) 1635 1636 /* ShiftLeftConcatMod16 */ 1637 1638 // ShiftLeftConcatMod16 shifts x[i] left by shift[i]%16, filling the 1639 // emptied low bits with the high bits of y[i]. That is, it shifts the 1640 // double-width concatenation of x[i] (high) and y[i] (low) left and keeps the 1641 // high 16 bits. 1642 // 1643 // s[i] = shift[i] % 16 1644 // z[i] = x[i]<<s[i] | y[i]>>(16-s[i]) 1645 // 1646 // Asm: VPSHLDVW, CPU Feature: AVX512VBMI2 1647 func (x Uint16x8) ShiftLeftConcatMod16(y Uint16x8, shift Uint16x8) (z Uint16x8) 1648 1649 // ShiftLeftConcatMod16 shifts x[i] left by shift[i]%16, filling the 1650 // emptied low bits with the high bits of y[i]. That is, it shifts the 1651 // double-width concatenation of x[i] (high) and y[i] (low) left and keeps the 1652 // high 16 bits. 1653 // 1654 // s[i] = shift[i] % 16 1655 // z[i] = x[i]<<s[i] | y[i]>>(16-s[i]) 1656 // 1657 // Asm: VPSHLDVW, CPU Feature: AVX512VBMI2 1658 func (x Uint16x16) ShiftLeftConcatMod16(y Uint16x16, shift Uint16x16) (z Uint16x16) 1659 1660 // ShiftLeftConcatMod16 shifts x[i] left by shift[i]%16, filling the 1661 // emptied low bits with the high bits of y[i]. That is, it shifts the 1662 // double-width concatenation of x[i] (high) and y[i] (low) left and keeps the 1663 // high 16 bits. 1664 // 1665 // s[i] = shift[i] % 16 1666 // z[i] = x[i]<<s[i] | y[i]>>(16-s[i]) 1667 // 1668 // Asm: VPSHLDVW, CPU Feature: AVX512VBMI2 1669 func (x Uint16x32) ShiftLeftConcatMod16(y Uint16x32, shift Uint16x32) (z Uint16x32) 1670 1671 /* ShiftLeftConcatMod32 */ 1672 1673 // ShiftLeftConcatMod32 shifts x[i] left by shift[i]%32, filling the 1674 // emptied low bits with the high bits of y[i]. That is, it shifts the 1675 // double-width concatenation of x[i] (high) and y[i] (low) left and keeps the 1676 // high 32 bits. 1677 // 1678 // s[i] = shift[i] % 32 1679 // z[i] = x[i]<<s[i] | y[i]>>(32-s[i]) 1680 // 1681 // Asm: VPSHLDVD, CPU Feature: AVX512VBMI2 1682 func (x Uint32x4) ShiftLeftConcatMod32(y Uint32x4, shift Uint32x4) (z Uint32x4) 1683 1684 // ShiftLeftConcatMod32 shifts x[i] left by shift[i]%32, filling the 1685 // emptied low bits with the high bits of y[i]. That is, it shifts the 1686 // double-width concatenation of x[i] (high) and y[i] (low) left and keeps the 1687 // high 32 bits. 1688 // 1689 // s[i] = shift[i] % 32 1690 // z[i] = x[i]<<s[i] | y[i]>>(32-s[i]) 1691 // 1692 // Asm: VPSHLDVD, CPU Feature: AVX512VBMI2 1693 func (x Uint32x8) ShiftLeftConcatMod32(y Uint32x8, shift Uint32x8) (z Uint32x8) 1694 1695 // ShiftLeftConcatMod32 shifts x[i] left by shift[i]%32, filling the 1696 // emptied low bits with the high bits of y[i]. That is, it shifts the 1697 // double-width concatenation of x[i] (high) and y[i] (low) left and keeps the 1698 // high 32 bits. 1699 // 1700 // s[i] = shift[i] % 32 1701 // z[i] = x[i]<<s[i] | y[i]>>(32-s[i]) 1702 // 1703 // Asm: VPSHLDVD, CPU Feature: AVX512VBMI2 1704 func (x Uint32x16) ShiftLeftConcatMod32(y Uint32x16, shift Uint32x16) (z Uint32x16) 1705 1706 /* ShiftLeftConcatMod64 */ 1707 1708 // ShiftLeftConcatMod64 shifts x[i] left by shift[i]%64, filling the 1709 // emptied low bits with the high bits of y[i]. That is, it shifts the 1710 // double-width concatenation of x[i] (high) and y[i] (low) left and keeps the 1711 // high 64 bits. 1712 // 1713 // s[i] = shift[i] % 64 1714 // z[i] = x[i]<<s[i] | y[i]>>(64-s[i]) 1715 // 1716 // Asm: VPSHLDVQ, CPU Feature: AVX512VBMI2 1717 func (x Uint64x2) ShiftLeftConcatMod64(y Uint64x2, shift Uint64x2) (z Uint64x2) 1718 1719 // ShiftLeftConcatMod64 shifts x[i] left by shift[i]%64, filling the 1720 // emptied low bits with the high bits of y[i]. That is, it shifts the 1721 // double-width concatenation of x[i] (high) and y[i] (low) left and keeps the 1722 // high 64 bits. 1723 // 1724 // s[i] = shift[i] % 64 1725 // z[i] = x[i]<<s[i] | y[i]>>(64-s[i]) 1726 // 1727 // Asm: VPSHLDVQ, CPU Feature: AVX512VBMI2 1728 func (x Uint64x4) ShiftLeftConcatMod64(y Uint64x4, shift Uint64x4) (z Uint64x4) 1729 1730 // ShiftLeftConcatMod64 shifts x[i] left by shift[i]%64, filling the 1731 // emptied low bits with the high bits of y[i]. That is, it shifts the 1732 // double-width concatenation of x[i] (high) and y[i] (low) left and keeps the 1733 // high 64 bits. 1734 // 1735 // s[i] = shift[i] % 64 1736 // z[i] = x[i]<<s[i] | y[i]>>(64-s[i]) 1737 // 1738 // Asm: VPSHLDVQ, CPU Feature: AVX512VBMI2 1739 func (x Uint64x8) ShiftLeftConcatMod64(y Uint64x8, shift Uint64x8) (z Uint64x8) 1740 1741 /* ShiftRightConcatMod16 */ 1742 1743 // ShiftRightConcatMod16 shifts x[i] right by shift[i]%16, filling the 1744 // emptied high bits with the low bits of y[i]. That is, it shifts the 1745 // double-width concatenation of y[i] (high) and x[i] (low) right and keeps the 1746 // low 16 bits. 1747 // 1748 // s[i] = shift[i] % 16 1749 // z[i] = x[i]>>s[i] | y[i]<<(16-s[i]) 1750 // 1751 // Asm: VPSHRDVW, CPU Feature: AVX512VBMI2 1752 func (x Uint16x8) ShiftRightConcatMod16(y Uint16x8, shift Uint16x8) (z Uint16x8) 1753 1754 // ShiftRightConcatMod16 shifts x[i] right by shift[i]%16, filling the 1755 // emptied high bits with the low bits of y[i]. That is, it shifts the 1756 // double-width concatenation of y[i] (high) and x[i] (low) right and keeps the 1757 // low 16 bits. 1758 // 1759 // s[i] = shift[i] % 16 1760 // z[i] = x[i]>>s[i] | y[i]<<(16-s[i]) 1761 // 1762 // Asm: VPSHRDVW, CPU Feature: AVX512VBMI2 1763 func (x Uint16x16) ShiftRightConcatMod16(y Uint16x16, shift Uint16x16) (z Uint16x16) 1764 1765 // ShiftRightConcatMod16 shifts x[i] right by shift[i]%16, filling the 1766 // emptied high bits with the low bits of y[i]. That is, it shifts the 1767 // double-width concatenation of y[i] (high) and x[i] (low) right and keeps the 1768 // low 16 bits. 1769 // 1770 // s[i] = shift[i] % 16 1771 // z[i] = x[i]>>s[i] | y[i]<<(16-s[i]) 1772 // 1773 // Asm: VPSHRDVW, CPU Feature: AVX512VBMI2 1774 func (x Uint16x32) ShiftRightConcatMod16(y Uint16x32, shift Uint16x32) (z Uint16x32) 1775 1776 /* ShiftRightConcatMod32 */ 1777 1778 // ShiftRightConcatMod32 shifts x[i] right by shift[i]%32, filling the 1779 // emptied high bits with the low bits of y[i]. That is, it shifts the 1780 // double-width concatenation of y[i] (high) and x[i] (low) right and keeps the 1781 // low 32 bits. 1782 // 1783 // s[i] = shift[i] % 32 1784 // z[i] = x[i]>>s[i] | y[i]<<(32-s[i]) 1785 // 1786 // Asm: VPSHRDVD, CPU Feature: AVX512VBMI2 1787 func (x Uint32x4) ShiftRightConcatMod32(y Uint32x4, shift Uint32x4) (z Uint32x4) 1788 1789 // ShiftRightConcatMod32 shifts x[i] right by shift[i]%32, filling the 1790 // emptied high bits with the low bits of y[i]. That is, it shifts the 1791 // double-width concatenation of y[i] (high) and x[i] (low) right and keeps the 1792 // low 32 bits. 1793 // 1794 // s[i] = shift[i] % 32 1795 // z[i] = x[i]>>s[i] | y[i]<<(32-s[i]) 1796 // 1797 // Asm: VPSHRDVD, CPU Feature: AVX512VBMI2 1798 func (x Uint32x8) ShiftRightConcatMod32(y Uint32x8, shift Uint32x8) (z Uint32x8) 1799 1800 // ShiftRightConcatMod32 shifts x[i] right by shift[i]%32, filling the 1801 // emptied high bits with the low bits of y[i]. That is, it shifts the 1802 // double-width concatenation of y[i] (high) and x[i] (low) right and keeps the 1803 // low 32 bits. 1804 // 1805 // s[i] = shift[i] % 32 1806 // z[i] = x[i]>>s[i] | y[i]<<(32-s[i]) 1807 // 1808 // Asm: VPSHRDVD, CPU Feature: AVX512VBMI2 1809 func (x Uint32x16) ShiftRightConcatMod32(y Uint32x16, shift Uint32x16) (z Uint32x16) 1810 1811 /* ShiftRightConcatMod64 */ 1812 1813 // ShiftRightConcatMod64 shifts x[i] right by shift[i]%64, filling the 1814 // emptied high bits with the low bits of y[i]. That is, it shifts the 1815 // double-width concatenation of y[i] (high) and x[i] (low) right and keeps the 1816 // low 64 bits. 1817 // 1818 // s[i] = shift[i] % 64 1819 // z[i] = x[i]>>s[i] | y[i]<<(64-s[i]) 1820 // 1821 // Asm: VPSHRDVQ, CPU Feature: AVX512VBMI2 1822 func (x Uint64x2) ShiftRightConcatMod64(y Uint64x2, shift Uint64x2) (z Uint64x2) 1823 1824 // ShiftRightConcatMod64 shifts x[i] right by shift[i]%64, filling the 1825 // emptied high bits with the low bits of y[i]. That is, it shifts the 1826 // double-width concatenation of y[i] (high) and x[i] (low) right and keeps the 1827 // low 64 bits. 1828 // 1829 // s[i] = shift[i] % 64 1830 // z[i] = x[i]>>s[i] | y[i]<<(64-s[i]) 1831 // 1832 // Asm: VPSHRDVQ, CPU Feature: AVX512VBMI2 1833 func (x Uint64x4) ShiftRightConcatMod64(y Uint64x4, shift Uint64x4) (z Uint64x4) 1834 1835 // ShiftRightConcatMod64 shifts x[i] right by shift[i]%64, filling the 1836 // emptied high bits with the low bits of y[i]. That is, it shifts the 1837 // double-width concatenation of y[i] (high) and x[i] (low) right and keeps the 1838 // low 64 bits. 1839 // 1840 // s[i] = shift[i] % 64 1841 // z[i] = x[i]>>s[i] | y[i]<<(64-s[i]) 1842 // 1843 // Asm: VPSHRDVQ, CPU Feature: AVX512VBMI2 1844 func (x Uint64x8) ShiftRightConcatMod64(y Uint64x8, shift Uint64x8) (z Uint64x8) 1845 1846 /* TruncScaled */ 1847 1848 // TruncScaled truncates elements with specified precision. 1849 // 1850 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 1851 // 1852 // Asm: VRNDSCALEPS, CPU Feature: AVX512 1853 func (x Float32x4) TruncScaled(prec uint8) Float32x4 1854 1855 // TruncScaled truncates elements with specified precision. 1856 // 1857 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 1858 // 1859 // Asm: VRNDSCALEPS, CPU Feature: AVX512 1860 func (x Float32x8) TruncScaled(prec uint8) Float32x8 1861 1862 // TruncScaled truncates elements with specified precision. 1863 // 1864 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 1865 // 1866 // Asm: VRNDSCALEPS, CPU Feature: AVX512 1867 func (x Float32x16) TruncScaled(prec uint8) Float32x16 1868 1869 // TruncScaled truncates elements with specified precision. 1870 // 1871 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 1872 // 1873 // Asm: VRNDSCALEPD, CPU Feature: AVX512 1874 func (x Float64x2) TruncScaled(prec uint8) Float64x2 1875 1876 // TruncScaled truncates elements with specified precision. 1877 // 1878 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 1879 // 1880 // Asm: VRNDSCALEPD, CPU Feature: AVX512 1881 func (x Float64x4) TruncScaled(prec uint8) Float64x4 1882 1883 // TruncScaled truncates elements with specified precision. 1884 // 1885 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 1886 // 1887 // Asm: VRNDSCALEPD, CPU Feature: AVX512 1888 func (x Float64x8) TruncScaled(prec uint8) Float64x8 1889 1890 /* TruncScaledResidue */ 1891 1892 // TruncScaledResidue computes the difference after truncating with specified precision. 1893 // 1894 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 1895 // 1896 // Asm: VREDUCEPS, CPU Feature: AVX512 1897 func (x Float32x4) TruncScaledResidue(prec uint8) Float32x4 1898 1899 // TruncScaledResidue computes the difference after truncating with specified precision. 1900 // 1901 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 1902 // 1903 // Asm: VREDUCEPS, CPU Feature: AVX512 1904 func (x Float32x8) TruncScaledResidue(prec uint8) Float32x8 1905 1906 // TruncScaledResidue computes the difference after truncating with specified precision. 1907 // 1908 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 1909 // 1910 // Asm: VREDUCEPS, CPU Feature: AVX512 1911 func (x Float32x16) TruncScaledResidue(prec uint8) Float32x16 1912 1913 // TruncScaledResidue computes the difference after truncating with specified precision. 1914 // 1915 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 1916 // 1917 // Asm: VREDUCEPD, CPU Feature: AVX512 1918 func (x Float64x2) TruncScaledResidue(prec uint8) Float64x2 1919 1920 // TruncScaledResidue computes the difference after truncating with specified precision. 1921 // 1922 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 1923 // 1924 // Asm: VREDUCEPD, CPU Feature: AVX512 1925 func (x Float64x4) TruncScaledResidue(prec uint8) Float64x4 1926 1927 // TruncScaledResidue computes the difference after truncating with specified precision. 1928 // 1929 // Performance: A non-constant value of prec may result in significantly worse performance for this operation. 1930 // 1931 // Asm: VREDUCEPD, CPU Feature: AVX512 1932 func (x Float64x8) TruncScaledResidue(prec uint8) Float64x8 1933