On Wed, 22 May 2013 16:43:21 -0400, Bill Hoffman said:

>Anybody have suggestions for a fix?   This code was taken from here:
>http://www.aarongifford.com/computers/sha.html
>
>Is there a way to get a struct like that to align correctly?  Maybe make 
>it a union with something that is the same number of bytes in 64 bit types?

memcpy().  (And compilers these days often optimize well-known functions like 
memcpy().)

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 [email protected]
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to