From a0fc362dfd5857ed3485b72f93baaa05f2591a1d Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 17 Jul 2011 17:17:06 +0200 Subject: Fix alignment query code doc --- src/java/com/jogamp/gluegen/package.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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:
    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_) ;
   
-- cgit v1.2.3
type 32 bits64 bits