Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » fix Core\Diag.h (need flagNOSIMD check for AsString)
fix Core\Diag.h [message #61086] Mon, 11 November 2024 22:55
kov_serg is currently offline  kov_serg
Messages: 42
Registered: August 2008
Location: Russia
Member
function String AsString(__m128i x) should be surrounded by flagNOSIMD check

https://github.com/ultimatepp/ultimatepp/blob/master/uppsrc/ Core/Diag.h#L267
#ifdef CPU_X86
#ifndef flagNOSIMD
String AsString(__m128i x);
#endif
#endif


https://github.com/ultimatepp/ultimatepp/blob/master/uppsrc/ Core/Debug.cpp#L202
#ifdef CPU_X86
#ifndef flagNOSIMD
String AsString(__m128i x)
{
	int32 h[4];
	memcpy(h, &x, 16);
	int16 w[8];
	memcpy(w, &x, 16);
	float f[4];
	memcpy(f, &x, 16);
	return Sprintf("_%08x_%08x_%08x_%08x (%d, %d, %d, %d) : (%d, %d, %d, %d) (%f, %f, %f, %f)",
	               h[3], h[2], h[1], h[0], w[7], w[6], w[5], w[4], w[3], w[2], w[1], w[0],
	               f[3], f[2], f[1], f[0]);
}
#endif
#endif

Previous Topic: [PROPOSAL] CppCheck support
Next Topic: Compilation warnings and random crashes
Goto Forum:
  


Current Time: Mon Jan 13 20:55:08 CET 2025

Total time taken to generate the page: 0.03687 seconds