diff options
author | Sven Gothel <[email protected]> | 2011-07-17 17:17:06 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-07-17 17:17:06 +0200 |
commit | a0fc362dfd5857ed3485b72f93baaa05f2591a1d (patch) | |
tree | a1388f5c691938b2840bdcc5e82040b195d5979c /src | |
parent | 885158dd46c85a46716d45d449cf74688c08c0a1 (diff) |
Fix alignment query code doc
Diffstat (limited to 'src')
-rw-r--r-- | src/java/com/jogamp/gluegen/package.html | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/java/com/jogamp/gluegen/package.html b/src/java/com/jogamp/gluegen/package.html index f8a2e6d..449eb31 100644 --- a/src/java/com/jogamp/gluegen/package.html +++ b/src/java/com/jogamp/gluegen/package.html @@ -56,14 +56,13 @@ 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> |