Only used in _LIBUNWIND_TRACE_API, which is a no-op when assertions are disabled.
| 888 | // Only used in _LIBUNWIND_TRACE_API, which is a no-op when assertions are |
| 889 | // disabled. |
| 890 | [[gnu::unused]] static uint64_t |
| 891 | ValueAsBitPattern(_Unwind_VRS_DataRepresentation representation, |
| 892 | const void *valuep) { |
| 893 | uint64_t value = 0; |
| 894 | switch (representation) { |
| 895 | case _UVRSD_UINT32: |
| 896 | case _UVRSD_FLOAT: |
| 897 | memcpy(&value, valuep, sizeof(uint32_t)); |
| 898 | break; |
| 899 | |
| 900 | case _UVRSD_VFPX: |
| 901 | case _UVRSD_UINT64: |
| 902 | case _UVRSD_DOUBLE: |
| 903 | memcpy(&value, valuep, sizeof(uint64_t)); |
| 904 | break; |
| 905 | } |
| 906 | return value; |
| 907 | } |
| 908 | |
| 909 | _LIBUNWIND_EXPORT _Unwind_VRS_Result |
| 910 | _Unwind_VRS_Set(_Unwind_Context *context, _Unwind_VRS_RegClass regclass, |
no test coverage detected