Source file src/simd/archsimd/ops_exp_gen_arm64.go
1 // Code generated by 'simdgen -o godefs -goroot $GOROOT -arch arm64 -arm64Path $ARM64_ISA_PATH go_arm64.yaml types.yaml categories.yaml'; DO NOT EDIT. 2 3 //go:build goexperiment.simd 4 5 package archsimd 6 7 /* LeadingSignBits */ 8 9 // LeadingSignBits counts the leading sign bits of each element in x. 10 // 11 // Asm: VCLS 12 func (x Int8x16) LeadingSignBits() Int8x16 13 14 // LeadingSignBits counts the leading sign bits of each element in x. 15 // 16 // Asm: VCLS 17 func (x Int16x8) LeadingSignBits() Int16x8 18 19 // LeadingSignBits counts the leading sign bits of each element in x. 20 // 21 // Asm: VCLS 22 func (x Int32x4) LeadingSignBits() Int32x4 23 24 // LeadingSignBits counts the leading sign bits of each element in x. 25 // 26 // Asm: VCLS 27 func (x Uint8x16) LeadingSignBits() Uint8x16 28 29 // LeadingSignBits counts the leading sign bits of each element in x. 30 // 31 // Asm: VCLS 32 func (x Uint16x8) LeadingSignBits() Uint16x8 33 34 // LeadingSignBits counts the leading sign bits of each element in x. 35 // 36 // Asm: VCLS 37 func (x Uint32x4) LeadingSignBits() Uint32x4 38 39 /* Scale */ 40 41 // Scale shifts each element in x by the signed value of the least significant byte 42 // of y's corresponding element: positive values shift left, negative values shift right. 43 // 44 // Asm: VSSHL 45 func (x Int8x16) Scale(y Int8x16) Int8x16 46 47 // Scale shifts each element in x by the signed value of the least significant byte 48 // of y's corresponding element: positive values shift left, negative values shift right. 49 // 50 // Asm: VSSHL 51 func (x Int16x8) Scale(y Int16x8) Int16x8 52 53 // Scale shifts each element in x by the signed value of the least significant byte 54 // of y's corresponding element: positive values shift left, negative values shift right. 55 // 56 // Asm: VSSHL 57 func (x Int32x4) Scale(y Int32x4) Int32x4 58 59 // Scale shifts each element in x by the signed value of the least significant byte 60 // of y's corresponding element: positive values shift left, negative values shift right. 61 // 62 // Asm: VSSHL 63 func (x Int64x2) Scale(y Int64x2) Int64x2 64 65 // Scale shifts each element in x by the signed value of the least significant byte 66 // of y's corresponding element: positive values shift left, negative values shift right. 67 // 68 // Asm: VUSHL 69 func (x Uint8x16) Scale(y Int8x16) Uint8x16 70 71 // Scale shifts each element in x by the signed value of the least significant byte 72 // of y's corresponding element: positive values shift left, negative values shift right. 73 // 74 // Asm: VUSHL 75 func (x Uint16x8) Scale(y Int16x8) Uint16x8 76 77 // Scale shifts each element in x by the signed value of the least significant byte 78 // of y's corresponding element: positive values shift left, negative values shift right. 79 // 80 // Asm: VUSHL 81 func (x Uint32x4) Scale(y Int32x4) Uint32x4 82 83 // Scale shifts each element in x by the signed value of the least significant byte 84 // of y's corresponding element: positive values shift left, negative values shift right. 85 // 86 // Asm: VUSHL 87 func (x Uint64x2) Scale(y Int64x2) Uint64x2 88 89 /* ScaleSaturated */ 90 91 // ScaleSaturated multiplies each element of x by a power of two given by scale, 92 // with saturation. 93 // 94 // Positive exponents scale up (shift left with saturation). Negative exponents 95 // scale down (arithmetic shift right). 96 // 97 // z[i] = sat(x[i] * 2^scale[i]) 98 // 99 // Asm: VSQSHL 100 func (x Int8x16) ScaleSaturated(scale Int8x16) (z Int8x16) 101 102 // ScaleSaturated multiplies each element of x by a power of two given by scale, 103 // with saturation. 104 // 105 // Positive exponents scale up (shift left with saturation). Negative exponents 106 // scale down (arithmetic shift right). 107 // 108 // scale has the same total width as x, but its elements are int8. Only every 109 // k'th element of scale is used, where k=16/8. The rest are ignored. 110 // 111 // z[i] = sat(x[i] * 2^scale[i*k]) 112 // 113 // Asm: VSQSHL 114 func (x Int16x8) ScaleSaturated(scale Int8x16) (z Int16x8) 115 116 // ScaleSaturated multiplies each element of x by a power of two given by scale, 117 // with saturation. 118 // 119 // Positive exponents scale up (shift left with saturation). Negative exponents 120 // scale down (arithmetic shift right). 121 // 122 // scale has the same total width as x, but its elements are int8. Only every 123 // k'th element of scale is used, where k=32/8. The rest are ignored. 124 // 125 // z[i] = sat(x[i] * 2^scale[i*k]) 126 // 127 // Asm: VSQSHL 128 func (x Int32x4) ScaleSaturated(scale Int8x16) (z Int32x4) 129 130 // ScaleSaturated multiplies each element of x by a power of two given by scale, 131 // with saturation. 132 // 133 // Positive exponents scale up (shift left with saturation). Negative exponents 134 // scale down (arithmetic shift right). 135 // 136 // scale has the same total width as x, but its elements are int8. Only every 137 // k'th element of scale is used, where k=64/8. The rest are ignored. 138 // 139 // z[i] = sat(x[i] * 2^scale[i*k]) 140 // 141 // Asm: VSQSHL 142 func (x Int64x2) ScaleSaturated(scale Int8x16) (z Int64x2) 143 144 // ScaleSaturated multiplies each element of x by a power of two given by scale, 145 // with saturation. 146 // 147 // Positive exponents scale up (shift left with saturation). Negative exponents 148 // scale down (logical shift right). 149 // 150 // z[i] = sat(x[i] * 2^scale[i]) 151 // 152 // Asm: VUQSHL 153 func (x Uint8x16) ScaleSaturated(scale Int8x16) (z Uint8x16) 154 155 // ScaleSaturated multiplies each element of x by a power of two given by scale, 156 // with saturation. 157 // 158 // Positive exponents scale up (shift left with saturation). Negative exponents 159 // scale down (logical shift right). 160 // 161 // scale has the same total width as x, but its elements are int8. Only every 162 // k'th element of scale is used, where k=16/8. The rest are ignored. 163 // 164 // z[i] = sat(x[i] * 2^scale[i*k]) 165 // 166 // Asm: VUQSHL 167 func (x Uint16x8) ScaleSaturated(scale Int8x16) (z Uint16x8) 168 169 // ScaleSaturated multiplies each element of x by a power of two given by scale, 170 // with saturation. 171 // 172 // Positive exponents scale up (shift left with saturation). Negative exponents 173 // scale down (logical shift right). 174 // 175 // scale has the same total width as x, but its elements are int8. Only every 176 // k'th element of scale is used, where k=32/8. The rest are ignored. 177 // 178 // z[i] = sat(x[i] * 2^scale[i*k]) 179 // 180 // Asm: VUQSHL 181 func (x Uint32x4) ScaleSaturated(scale Int8x16) (z Uint32x4) 182 183 // ScaleSaturated multiplies each element of x by a power of two given by scale, 184 // with saturation. 185 // 186 // Positive exponents scale up (shift left with saturation). Negative exponents 187 // scale down (logical shift right). 188 // 189 // scale has the same total width as x, but its elements are int8. Only every 190 // k'th element of scale is used, where k=64/8. The rest are ignored. 191 // 192 // z[i] = sat(x[i] * 2^scale[i*k]) 193 // 194 // Asm: VUQSHL 195 func (x Uint64x2) ScaleSaturated(scale Int8x16) (z Uint64x2) 196