Size-independent byte order swapping functions.

From: Pawel Jakub Dawidek (nick_at_garage.freebsd.pl)
Date: 11/24/03

  • Next message: Stefan Eßer: "Re: "secure" file flag?"
    Date: Mon, 24 Nov 2003 10:58:52 +0100
    To: freebsd-hackers@freebsd.org
    
    
    
    

    Hello hackers...

    Macros in attached patch are designed for doing life a little easier.

    If one is using strictly defined types as uint8_t, uint16_t, int32_t, etc.
    those macros are helpful IMHO, because futher value size changes does not
    affects code for byte order managing. This also does not hit perfromance,
    because this should be resolved at compile-time.

    I'm not sure if dedicated epanic() is the best way to implement out-of-range
    errors prevention - the more handy solution should cause compile error.

    -- 
    Pawel Jakub Dawidek                       pawel@dawidek.net
    UNIX Systems Programmer/Administrator     http://garage.freebsd.pl
    Am I Evil? Yes, I Am!                     http://cerber.sourceforge.net
    
    

    
    




  • Next message: Stefan Eßer: "Re: "secure" file flag?"

    Relevant Pages

    • Re: Size-independent byte order swapping functions.
      ... +>> affects code for byte order managing. ... +>> errors prevention - the more handy solution should cause compile error. ... but you can't use CTASSERT() inside. ...
      (freebsd-hackers)
    • Re: Size-independent byte order swapping functions.
      ... > those macros are helpful IMHO, because futher value size changes does not ... > affects code for byte order managing. ... > errors prevention - the more handy solution should cause compile error. ...
      (freebsd-hackers)
    • Re: Link Macros Excel 2007
      ... you have your macros in one module. ... Sub Macro2() ... End SUb in Macro1 but that causes a compile error until I remove it. ...
      (microsoft.public.excel.misc)
    • Re: compile error: invlaid outside procedure
      ... At the top of the list of my macros was some stray text - I deleted it ... Same as I get when I hit ... When I hit cmd-n I get a box saying, "compile error: ... McGhie Information Engineering Pty Ltdhttp://jgmcghie.fastmail.com.au/ ...
      (microsoft.public.mac.office.word)
    • Re: Blinking Text
      ... Compile Error: ... Private Sub Workbook_BeforeClose ... All i get in MY workbook here, ... Did you get a message about enabling macros when you opened the workbook I sent? ...
      (microsoft.public.excel.worksheet.functions)