---
title: "hv_vcpu_get_simd_fp_reg(_:_:_:)"
framework: Hypervisor
role: symbol
role_heading: Function
platforms: [macOS 11.0+]
path: "hypervisor/hv_vcpu_get_simd_fp_reg(_:_:_:)"
---

# hv_vcpu_get_simd_fp_reg(_:_:_:)

Gets the current value of a vCPU SIMD and FP register.

## Declaration

```swift
func hv_vcpu_get_simd_fp_reg(_ vcpu: hv_vcpu_t, _ reg: hv_simd_fp_reg_t, _ value: UnsafeMutablePointer<hv_simd_fp_uchar16_t>) -> hv_return_t
```

## Parameters

- `vcpu`: The vCPU instance.
- `reg`: The ID of the SIMD and FP register.
- `value`: The value of the register reg on output.

## Return Value

Return Value HV_SUCCESS if the operation was successful, otherwise an error code specified in hv_return_t.

## Discussion

Discussion important: This function must be called by the owning thread.

## See Also

### SIMD & Floating-point registers

- [hv_vcpu_set_simd_fp_reg(_:_:_:)](hypervisor/hv_vcpu_set_simd_fp_reg(_:_:_:).md)
- [hv_simd_fp_uchar16_t](hypervisor/hv_simd_fp_uchar16_t.md)
- [hv_simd_fp_reg_t](hypervisor/hv_simd_fp_reg_t.md)
