HomeFreeBSD

Fletcher4: save/reload implementation context

Description

Fletcher4: save/reload implementation context

Init, compute, and fini methods are changed to work on internal context object.
This is necessary because ABI does not guarantee that SIMD registers will be preserved
on function calls. This is technically the case in Linux kernel in between
kfpu_begin()/kfpu_end(), but it breaks user-space tests and some kernels that
don't require disabling preemption for using SIMD (osx).

Use scalar compute methods in-place for small buffers, and when the buffer size
does not meet SIMD size alignment.

Signed-off-by: Gvozden Neskovic <neskovic@gmail.com>

Details

Provenance
Gvozden Neskovic <neskovic@gmail.com>Authored on Sep 24 2016, 10:56 PM
Parents
rG37f520db2d19: Fletcher4: Incremental using SIMD
Branches
Unknown
Tags
Unknown

Event Timeline

Gvozden Neskovic <neskovic@gmail.com> committed rG5bf703b8f381: Fletcher4: save/reload implementation context (authored by Gvozden Neskovic <neskovic@gmail.com>).Oct 5 2016, 2:41 PM