Re: [PATCH 1/3] crypto: do not open-code be<->cpu

2005-04-22 Thread Andreas Steinmetz
Denis Vlasenko wrote: > Patch replaces numerous be<->cpu and le<->cpu > conversions in crypto. Per lkml comments, > it is done with macros: > > block[i] = load_be64(ptr,i); > store_be64(out,i, block[i]); > > where i is an index: load_be64 will load i'th > big-endian value pointed by ptr

[PATCH 1/3] crypto: do not open-code be<->cpu

2005-04-22 Thread Denis Vlasenko
Patch replaces numerous be<->cpu and le<->cpu conversions in crypto. Per lkml comments, it is done with macros: block[i] = load_be64(ptr,i); store_be64(out,i, block[i]); where i is an index: load_be64 will load i'th big-endian value pointed by ptr (typically a char*). Same for store. This

[PATCH 1/3] crypto: do not open-code be-cpu

2005-04-22 Thread Denis Vlasenko
Patch replaces numerous be-cpu and le-cpu conversions in crypto. Per lkml comments, it is done with macros: block[i] = load_be64(ptr,i); store_be64(out,i, block[i]); where i is an index: load_be64 will load i'th big-endian value pointed by ptr (typically a char*). Same for store. This results

Re: [PATCH 1/3] crypto: do not open-code be-cpu

2005-04-22 Thread Andreas Steinmetz
Denis Vlasenko wrote: Patch replaces numerous be-cpu and le-cpu conversions in crypto. Per lkml comments, it is done with macros: block[i] = load_be64(ptr,i); store_be64(out,i, block[i]); where i is an index: load_be64 will load i'th big-endian value pointed by ptr (typically a char*).