History log of /haiku/headers/os/support/ByteOrder.h
Revision Date Author Comments
# 9cb15d72 26-Mar-2019 Augustin Cavalier <waddlesplash@gmail.com>

netinet/in: Use the GCC4 builtin byteswap functions for htonl.

Fixes the build breakage caused by PulkoMandy's recent commit.
Remove these from ByteOrder.h now also, as per POSIX they should
come from netinet/in.h.

This is a small source compatibility breakage, but it will only
affect a small portion of non-POSIX, partially-Be applications.


# 7dd10738 20-Apr-2015 François Revol <revol@free.fr>

ByteOrder.h: add explicit casts when using gcc builtins

Those return uintNN_t types instead of our own types,
but uint32 for example is long while uint32_t isn't,
giving some trouble with the PRI* macros for example on PPC.


# 29e8fa59 24-Jun-2014 John Scipione <jscipione@gmail.com>

Style fixes to Support Kit files


# fad4fc59 30-May-2014 Jessica Hamilton <jessica.l.hamilton@gmail.com>

Revert "ByteOrder.h: remove use of __builtin_bswap16."

This reverts commit 040dc2eebc6628cc05c4ac5e287c5287c5dacf2e.


# 040dc2ee 29-May-2014 Jessica Hamilton <jessica.l.hamilton@gmail.com>

ByteOrder.h: remove use of __builtin_bswap16.

* Fixes the build for host compilers older than gcc-4.8


# 44ec21c3 29-May-2014 Jessica Hamilton <jessica.l.hamilton@gmail.com>

ByteOrder.h: simplify compiler test

* A problem with our gcc requires adding casts for gcc4 when
the __builtin_bswap functions are used with a format string
* Unlike gcc2, the __builtin_bswap functions do not get disabled
despite using -fno-builtins, hence added compiler check in
runtime_loader/utility.cpp


# 4ffdf2ed 03-May-2014 Jessica Hamilton <jessica.l.hamilton@gmail.com>

Use GCC builtins for byte-swapping. Fixes #10800.

* Introduced in gcc-4.3 for at least Intel platforms
* On ARM, full support added in gcc-4.8
* Other platforms untested, left as-is
* This introduces a breaking change to the ABI for gcc4


# e1f3108a 10-Nov-2008 Stephan Aßmus <superstippi@gmx.de>

Patch by Scott:
Make sure the comments are C style in headers that are included by POSIX
headers.

Thanks! Should fix #2870.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28598 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 087882c2 26-Jan-2007 Axel Dörfler <axeld@pinc-software.de>

* Rewrote headers as necessary; only Errors.h and Debug.h still originate from a Be header now;
feel free to change that ;-)
* Cleaned up existing headers.
* Coding style guide update to BBufferIO (renamed m_* members to f*).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19972 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7d9ef5af 29-Oct-2002 beveloper <beveloper@nowhere.fake>

avoid collision with <netinet/in.h>


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1775 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 52a38012 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7dd1073833e509db8ab6c7b0c1b5d4cce022ab57 20-Apr-2015 François Revol <revol@free.fr>

ByteOrder.h: add explicit casts when using gcc builtins

Those return uintNN_t types instead of our own types,
but uint32 for example is long while uint32_t isn't,
giving some trouble with the PRI* macros for example on PPC.


# 29e8fa5922c9f9a5eb09a2fcc92e7fb321d4cc59 24-Jun-2014 John Scipione <jscipione@gmail.com>

Style fixes to Support Kit files


# fad4fc59f99b836052f9dc28f2b31adf933a59ff 30-May-2014 Jessica Hamilton <jessica.l.hamilton@gmail.com>

Revert "ByteOrder.h: remove use of __builtin_bswap16."

This reverts commit 040dc2eebc6628cc05c4ac5e287c5287c5dacf2e.


# 040dc2eebc6628cc05c4ac5e287c5287c5dacf2e 29-May-2014 Jessica Hamilton <jessica.l.hamilton@gmail.com>

ByteOrder.h: remove use of __builtin_bswap16.

* Fixes the build for host compilers older than gcc-4.8


# 44ec21c3ff3eb22693333ad429b1972206223754 29-May-2014 Jessica Hamilton <jessica.l.hamilton@gmail.com>

ByteOrder.h: simplify compiler test

* A problem with our gcc requires adding casts for gcc4 when
the __builtin_bswap functions are used with a format string
* Unlike gcc2, the __builtin_bswap functions do not get disabled
despite using -fno-builtins, hence added compiler check in
runtime_loader/utility.cpp


# 4ffdf2ed40845d8fb856a1a3ca5b5e74616850e9 03-May-2014 Jessica Hamilton <jessica.l.hamilton@gmail.com>

Use GCC builtins for byte-swapping. Fixes #10800.

* Introduced in gcc-4.3 for at least Intel platforms
* On ARM, full support added in gcc-4.8
* Other platforms untested, left as-is
* This introduces a breaking change to the ABI for gcc4


# e1f3108a60a7cebcd595c566b88627c99ba917af 10-Nov-2008 Stephan Aßmus <superstippi@gmx.de>

Patch by Scott:
Make sure the comments are C style in headers that are included by POSIX
headers.

Thanks! Should fix #2870.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28598 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 087882c26e81eabf9a459e634a33f8e978d8a66b 26-Jan-2007 Axel Dörfler <axeld@pinc-software.de>

* Rewrote headers as necessary; only Errors.h and Debug.h still originate from a Be header now;
feel free to change that ;-)
* Cleaned up existing headers.
* Coding style guide update to BBufferIO (renamed m_* members to f*).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19972 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7d9ef5af202a6fca99b624ea179fa129324bcaee 29-Oct-2002 beveloper <beveloper@nowhere.fake>

avoid collision with <netinet/in.h>


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1775 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 52a380120846174213ccce9c4aab0dda17c72083 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96