Re: AES assembler optimizations

Paul Mackerras
2004-08-11T01:01:59Z

David S. Miller writes:

> On sparc64, we:
>
> 1) Always save the full FPU state at context switch time if it
> is active.
>
> 2) On entry to a FPU-using kernel routine, we save the FPU if
> it is active.

How is that implemented? Do you have some magic to make gcc emit a
call to an fpu-save routine in the prolog if the function uses the
FPU? Or are you only talking about functions written in assembler?

Paul.