MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / ValueAsBitPattern

Function ValueAsBitPattern

system/lib/libunwind/src/Unwind-EHABI.cpp:890–907  ·  view source on GitHub ↗

Only used in _LIBUNWIND_TRACE_API, which is a no-op when assertions are disabled.

Source from the content-addressed store, hash-verified

888// Only used in _LIBUNWIND_TRACE_API, which is a no-op when assertions are
889// disabled.
890[[gnu::unused]] static uint64_t
891ValueAsBitPattern(_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,

Calls 1

memcpyFunction · 0.85

Tested by

no test coverage detected