bitvector - some bugfixes and further implementations
This commit is contained in:
13
laerror.cc
13
laerror.cc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user