MCPcopy Create free account
hub / github.com/Singular/Singular / TestAddrContentEqual

Function TestAddrContentEqual

omalloc/omtTest.c:90–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void TestAddrContentEqual(void* s1, void* s2, size_t size)
91{
92 int i;
93 size_t sizeW = OM_ALIGN_SIZE(size) >> LOG_SIZEOF_LONG;
94
95 for (i=0; i<sizeW; i++)
96 {
97 if (((unsigned long*)s1)[i] != ((unsigned long*)s2)[i])
98 {
99 omReportError(omError_Unknown, omError_NoError, OM_FLR,
100 "s1[%u]==%d != s2[%u]==%d", i, ((unsigned long*)s1)[i], i, ((unsigned long*)s2)[i]);
101 return;
102 }
103 }
104}
105
106void TestAddrContent(void* addr, unsigned long value, size_t size)
107{

Callers 1

omtTestDupFunction · 0.85

Calls 1

omReportErrorFunction · 0.85

Tested by

no test coverage detected