FastLED 3.9.15
Loading...
Searching...
No Matches
fl::s16x16x4 Struct Reference

Detailed Description

4-wide s16x16 vector (general fixed-point) Backed by 128-bit SIMD register (4× i32 in Q16 format)

Definition at line 19 of file s16x16x4.h.

#include <s16x16x4.h>

Public Member Functions

FASTLED_FORCE_INLINE s16x16x4 abs () const
 Absolute value: branchless via mask and xor.
 
FASTLED_FORCE_INLINE s16x16x4 clamp (s16x16x4 lo, s16x16x4 hi) const
 Clamp to [lo, hi].
 
FASTLED_FORCE_INLINE s16x16x4 cos () const
 Compute cosine of 4 angles (in radians)
 
FASTLED_FORCE_INLINE s16x16x4 lerp (s16x16x4 b, s16x16 t) const
 Linear interpolation: a + (b - a) * t (using Q16 multiply) t: s16x16 interpolation factor in [0, 1].
 
FASTLED_FORCE_INLINE s16x16x4 max (s16x16x4 b) const
 Element-wise maximum.
 
FASTLED_FORCE_INLINE s16x16x4 min (s16x16x4 b) const
 Element-wise minimum.
 
FASTLED_FORCE_INLINE s16x16x4 operator* (s0x32x4 b) const
 
FASTLED_FORCE_INLINE s16x16x4 operator* (s16x16x4 b) const
 
FASTLED_FORCE_INLINE s16x16x4 operator+ (s16x16x4 b) const
 
FASTLED_FORCE_INLINE s16x16x4 operator- () const
 
FASTLED_FORCE_INLINE s16x16x4 operator- (s16x16x4 b) const
 
FASTLED_FORCE_INLINE s16x16x4 operator<< (int shift) const
 
FASTLED_FORCE_INLINE s16x16x4 operator>> (int shift) const
 
FASTLED_FORCE_INLINE s16x16x4 sin () const
 Compute sine of 4 angles (in radians)
 
FASTLED_FORCE_INLINE void sincos (s16x16x4 &out_sin, s16x16x4 &out_cos) const
 Compute sin and cos of 4 angles (in radians) Results written to out_sin and out_cos.
 
FASTLED_FORCE_INLINE void store (s16x16 *ptr) const
 

Static Public Member Functions

static FASTLED_FORCE_INLINE s16x16x4 from_raw (simd::simd_u32x4 r)
 
static FASTLED_FORCE_INLINE s16x16x4 load (const s16x16 *ptr)
 
static FASTLED_FORCE_INLINE s16x16x4 set1 (s16x16 value)
 

Public Attributes

simd::simd_u32x4 raw
 

The documentation for this struct was generated from the following file: