Struct frounding::RoundingState [] [src]

pub struct RoundingState { /* fields omitted */ }

RoundingState Keep track of the current rounding mode of both the SSE and the x87 FPU units.

Methods

impl RoundingState
[src]

Create new RoundingState struct and fill it with the current status of control regiters. When going out of scope the initial rounding mode is set.

Return the current rounding mode of both SSE and FPU.

Return the current rounding mode of the SSE unit.

Return the current rounding mode of x87 FPU unit.

Set the rounding mode toward +infinity for both SSE and x87 FPU.

Set the rounding mode of the SSE toward +infinity.

Set the rounding mode of the FPU toward +infinity.

Set the rounding mode toward -infinity for both SSE and x87 FPU.

Set the rounding mode of the SSE toward -infinity.

Set the rounding mode of the FPU toward -infinity.

Set the rounding mode to nearest for both SSE and x87 FPU.

Set the rounding mode of the SSE to nearest

Set the rounding mode of FPU to nearest

Set the rounding mode toward zero (aka truncate) for both SSE and x87 FPU.

Set the rounding mode of SSE toward zero (aka truncate)

Set the rounding mode of FPU toward zero (aka truncate)

Reset the rounding mode to the default one (the one found when calling the new function) for both FPU and SEE.

Reset the rounding mode to the default one (the one found when calling the new function) for SEE.

Reset the rounding mode to the default one (the one found when calling the new function) for FPU.

Trait Implementations

impl Debug for RoundingState
[src]

Formats the value using the given formatter.

impl Clone for RoundingState
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Drop for RoundingState
[src]

Drop trait is implimented as when going out of scope the default status of the control registers. is retrived.

A method called when the value goes out of scope. Read more