mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
Moved from std::memcpy to memcpy
This commit is contained in:
@@ -39,7 +39,7 @@ void AIFCWriter::Close(LUS::BinaryWriter& out){
|
||||
void SerializeF80(double num, LUS::BinaryWriter &writer) {
|
||||
// Convert the input double to a uint64_t representation
|
||||
std::uint64_t f64;
|
||||
std::memcpy(&f64, &num, sizeof(double));
|
||||
memcpy((void*) &f64, (void*) &num, sizeof(double));
|
||||
|
||||
// Extract the sign bit
|
||||
std::uint64_t f64_sign_bit = f64 & (1ULL << 63);
|
||||
|
||||
Reference in New Issue
Block a user