Home
last modified time | relevance | path

Searched refs:sat (Results 1 – 5 of 5) sorted by relevance

/cmsis-dsp-latest/Include/dsp/
Dnone.h78 __STATIC_FORCEINLINE int32_t __SSAT(int32_t val, uint32_t sat) in __SSAT() argument
80 if ((sat >= 1U) && (sat <= 32U)) in __SSAT()
82 const int32_t max = (int32_t)((1U << (sat - 1U)) - 1U); in __SSAT()
96 __STATIC_FORCEINLINE uint32_t __USAT(int32_t val, uint32_t sat) in __USAT() argument
98 if (sat <= 31U) in __USAT()
100 const uint32_t max = ((1U << sat) - 1U); in __USAT()
/cmsis-dsp-latest/dsppp/Include/dsppp/
Dfixed_point.hpp47 __STATIC_FORCEINLINE int32_t __SSAT(int32_t val, uint32_t sat) in __SSAT() argument
49 if ((sat >= 1U) && (sat <= 32U)) in __SSAT()
51 const int32_t max = (int32_t)((1U << (sat - 1U)) - 1U); in __SSAT()
65 __STATIC_FORCEINLINE uint32_t __USAT(int32_t val, uint32_t sat) in __USAT() argument
67 if (sat <= 31U) in __USAT()
69 const uint32_t max = ((1U << sat) - 1U); in __USAT()
685 constexpr static value_type sat(const wider_type i) { in sat() function
870 constexpr static value_type sat(const wider_type i) { in sat() function
1027 constexpr static value_type sat(const wider_type i) { in sat() function
1217 constexpr static value_type sat(const wider_type i) { in sat() function
[all …]
/cmsis-dsp-latest/Testing/PatternGeneration/
DSupport.py86 sat = np.array([-1.0,1.0,-2.1,2.1])
87 va = np.hstack([va,sat])
/cmsis-dsp-latest/Testing/
Ddesc.txt1232 Test add sat pos:test_add_q31
1233 Test add sat neg:test_add_q31
1235 Test sub sat pos:test_sub_q31
1236 Test sub sat neg:test_sub_q31
1238 Test mul sat:test_mult_q31
1240 Test neg sat:test_negate_q31
1242 Test offset pos sat:test_offset_q31
1243 Test offset neg sat:test_offset_q31
1245 Test scale pos sat:test_scale_q31
1248 Test shift pos sat:test_shift_q31
[all …]
/cmsis-dsp-latest/PythonWrapper/cmsisdsp_pkg/src/
Dcmsisdsp_basic.c1792 uint32_t sat; in cmsis_ssat() local
1794 if (PyArg_ParseTuple(args,"iI",&val,&sat)) in cmsis_ssat()
1797 int32_t result = __SSAT(val,sat); in cmsis_ssat()
1811 uint32_t sat; in cmsis_usat() local
1814 if (PyArg_ParseTuple(args,"iI",&val,&sat)) in cmsis_usat()
1817 uint32_t result = __USAT(val,sat); in cmsis_usat()