Better way for 16-byte Alignment of the buffers




Better way for 16-byte Alignment of the buffers

Postby algorithman » 8. Mar 2017, 09:47

http://en.cppreference.com/w/cpp/language/alignas might give us a better way to align the send- and receive buffers than that horrendous allocation of 15 additional bytes and setting the pointer to
(address+15)&(~0xF)
User avatar
algorithman
Administrator
 
Posts: 49
Joined: 2. Mar 2017, 11:40

by Advertising » 8. Mar 2017, 09:47

Advertising
 

Return to Network & Network-Protocols

Who is online

No registered users

cron