v4fabsf   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/core/vaudio_dsp.xtm

Implementation

;; v4fabsf expects stack allocation use
(bind-func v4fabsf
  (lambda (x:/4,float/*)
    (let ((i 0) (y:/4,float/* (salloc)))
      (dotimes (i 4)
        (vset! y i (fabsf (vref x i))))
      y)))


Back to Index