Lines Matching defs:state

117 #define	fnsave(state)  \
118 __asm__ volatile("fnsave %0" : "=m" (*state))
120 #define frstor(state) \
121 __asm__ volatile("frstor %0" : : "m" (state))
176 * Configure the initial FPU state presented to new threads.
284 * Allocate and initialize FP state for current thread.
285 * Don't load state.
339 /* Restore the compatibility/legacy mode XMM+x87 state */
369 /* save the compatibility/legacy mode XMM+x87 state */
416 "x86 fpsave state");
423 /* Determine MXCSR reserved bits and configure initial FPU state*/
468 * Set the floating-point state for a thread based
484 x86_float_state64_t *state;
495 state = (x86_float_state64_t *)tstate;
500 if (state == NULL) {
502 * new FPU state is 'invalid'.
503 * Deallocate the fp state if it exists.
516 * Valid state. Allocate the fp state if there is none.
548 state->fpu_mxcsr &= mxcsr_capability_mask;
550 bcopy((char *)&state->fpu_fcw, (char *)ifps, state_size);
562 x86_avx_state64_t *ystate = (x86_avx_state64_t *) state;
594 * Get the floating-point state for a thread.
606 x86_float_state64_t *state;
618 state = (x86_float_state64_t *)tstate;
628 * No valid floating-point state.
631 bcopy((char *)&initial_fp_state, (char *)&state->fpu_fcw,
639 * Make sure we`ve got the latest fp state info
640 * If the live fpu state belongs to our target
654 bcopy((char *)ifps, (char *)&state->fpu_fcw, state_size);
665 x86_avx_state64_t *ystate = (x86_avx_state64_t *) state;
682 * so no way for fpu state to get manipulated by an
710 * Make sure we`ve got the latest fp state info
727 /* Mark the new fp saved state as non-live. */
820 * Load this thread`s state into coprocessor live context.
832 * Re-initialize FPU. Floating point state is not valid.
852 * Invalidate the thread`s FPU state.
902 * Save the FPU state and turn off the FPU.
921 * Save FPU state.
947 * Restore FPU state from PCB.
990 * Save the FPU state and turn off the FPU.