Skip to content

Commit

Permalink
Fix alignment query code doc
Browse files Browse the repository at this point in the history
  • Loading branch information
sgothel committed Jul 17, 2011
1 parent 885158d commit a0fc362
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/java/com/jogamp/gluegen/package.html
Expand Up @@ -56,14 +56,13 @@ <h5>Type Size &amp; Alignment for x86, x86_64, armv7l-32bit-eabi and Window(ming
Runtime query is implemented as follows:
<pre>
typedef struct {
_TYPE_ s0; // ensures start address alignment
char fill; // nibble one byte
// padding to align s1
_TYPE_ s1; //
} type_t;

padding = sizeof(type_t) - 2 * sizeof(_TYPE_) - sizeof(char);
alignment = sizeof(type_t) - 2 * sizeof(_TYPE_) ;
padding = sizeof(type_t) - sizeof(_TYPE_) - sizeof(char);
alignment = sizeof(type_t) - sizeof(_TYPE_) ;
</pre>
<table border="1">
<tr><th>type</th> <th colspan="2">32 bits</th><th colspan="2">64 bits</th></tr>
Expand Down

0 comments on commit a0fc362

Please sign in to comment.