bitvector - some bugfixes and further implementations

This commit is contained in:
2024-01-01 21:26:35 +01:00
parent 9bceebdd29
commit e42987061f
5 changed files with 235 additions and 30 deletions

View File

@@ -205,4 +205,17 @@ extern "C" int cblas_errprn(int ierr, int info, char *form, ...) {
}
#endif
int endianity()
{
static union {int i; char z[sizeof(int)];} u;
static int jj= -1;
if(jj<0) /* first call */
{
u.i=1;
jj=0; while(!u.z[jj]) jj++;
}
return jj;
}
}//namespace