Lines Matching defs:Saturation
373 // Saturation state for each lane of a vector.
374 enum Saturation {
386 // Getters for saturation state.
387 Saturation GetSignedSaturation(int index) {
388 return static_cast<Saturation>(saturated_[index] & kSignedSatMask);
391 Saturation GetUnsignedSaturation(int index) {
392 return static_cast<Saturation>(saturated_[index] & kUnsignedSatMask);
395 // Setters for saturation state.
406 void SetSatFlag(int index, Saturation sat) {
407 saturated_[index] = static_cast<Saturation>(saturated_[index] | sat);
412 // Saturate lanes of a vector based on saturation state.
415 Saturation sat = GetSignedSaturation(i);
427 Saturation sat = GetUnsignedSaturation(i);
451 // Unsigned halve lanes of a vector, and use the saturation state to set the
459 // If the operation causes unsigned saturation, the bit shifted into the
475 // If the operation causes signed saturation, the sign bit must be
487 // Allocate one saturation state entry per lane; largest register is type Q,
489 Saturation saturated_[kQRegSizeInBytes];