History log of /freebsd-current/sys/arm/include/endian.h
Revision Date Author Comments
# 29363fb4 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix


# 2ff63af9 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: one-line .h pattern

Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/


# 720dc6bc 01-Mar-2021 Mitchell Horne <mhorne@FreeBSD.org>

Consolidate machine/endian.h definitions

This change serves two purposes.

First, we take advantage of the compiler provided endian definitions to
eliminate some long-standing duplication between the different versions
of this header. __BYTE_ORDER__ has been defined since GCC 4.6, so there
is no need to rely on platform defaults or e.g. __MIPSEB__ to determine
endianness. A new common sub-header is added, but there should be no
changes to the visibility of these definitions.

Second, this eliminates the hand-rolled __bswapNN() routines, again in
favor of the compiler builtins. This was done already for x86 in
e6ff6154d203. The benefit here is that we no longer have to maintain our
own implementations on each arch, and can instead rely on the compiler
to emit appropriate instructions or libcalls, as available. This should
result in equivalent or better code generation. Notably 32-bit arm will
start using the `rev` instruction for these routines, which is available
on armv6+.

PR: 236920
Reviewed by: arichardson, imp
Tested by: bdragon (BE powerpc)
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D29012


# 51369649 20-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

sys: further adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 3-Clause license.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.


# 4dbc0083 09-Nov-2015 Michal Meloun <mmel@FreeBSD.org>

ARM: Remove trailing whitespace from sys/arm/include
No functional changes.

Approved by: kib (mentor)


# ee5cac8a 12-Jun-2012 Warner Losh <imp@FreeBSD.org>

trim trailing whitespace


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 5f00fec4 23-Aug-2008 Warner Losh <imp@FreeBSD.org>

Whitespace nit.


# 4168e66b 09-Sep-2007 Olivier Houchard <cognet@FreeBSD.org>

In __bswap16_var(), make sure the 16 upper bits are cleared; while
optimizing, gcc4 doesn't always do so.

Reported by: Nathan Whitehorn
Approved by: re (blanket)


# e11fe02d 27-Jul-2005 John Baldwin <jhb@FreeBSD.org>

Use a + constraint modifier for a register arg in __bswap16_var().

Reviewed by: cognet


# fdc05f79 24-May-2005 Olivier Houchard <cognet@FreeBSD.org>

Asm version of bswap16().

Obtained from: NetBSD


# 12a58da4 18-Jan-2005 Olivier Houchard <cognet@FreeBSD.org>

Start to support the big endian case as well.


# d8315c79 05-Jan-2005 Warner Losh <imp@FreeBSD.org>

Start all license statements with /*-


# eeaa6910 04-Nov-2004 Olivier Houchard <cognet@FreeBSD.org>

Use casts to enforce the return type of bswap16() and bswap32().


# 74e9b5ed 01-Oct-2004 Olivier Houchard <cognet@FreeBSD.org>

Add optimized version of the bswap macroes for constants if __OPTIMIZED__ is
defined.


# 9b60f79d 01-Aug-2004 Olivier Houchard <cognet@FreeBSD.org>

*blush*
Fix htonl and htons.


# 2cbc052a 04-May-2004 Olivier Houchard <cognet@FreeBSD.org>

Add some endianess-related functions and macros.


# a98a5f06 03-Aug-2003 David E. O'Brien <obrien@FreeBSD.org>

Style sync.


# d4cfb421 03-Jan-2001 David E. O'Brien <obrien@FreeBSD.org>

StrongARM platform-specific definitions.