Index: /trunk/src/VBox/Devices/Graphics/DevVGA.cpp
===================================================================
--- /trunk/src/VBox/Devices/Graphics/DevVGA.cpp	(revision 22583)
+++ /trunk/src/VBox/Devices/Graphics/DevVGA.cpp	(revision 22584)
@@ -439,8 +439,8 @@
 #define cbswap_32(__x) \
 ((uint32_t)( \
-		(((uint32_t)(__x) & (uint32_t)0x000000ffUL) << 24) | \
-		(((uint32_t)(__x) & (uint32_t)0x0000ff00UL) <<  8) | \
-		(((uint32_t)(__x) & (uint32_t)0x00ff0000UL) >>  8) | \
-		(((uint32_t)(__x) & (uint32_t)0xff000000UL) >> 24) ))
+                (((uint32_t)(__x) & (uint32_t)0x000000ffUL) << 24) | \
+                (((uint32_t)(__x) & (uint32_t)0x0000ff00UL) <<  8) | \
+                (((uint32_t)(__x) & (uint32_t)0x00ff0000UL) >>  8) | \
+                (((uint32_t)(__x) & (uint32_t)0xff000000UL) >> 24) ))
 
 #ifdef WORDS_BIGENDIAN
@@ -567,7 +567,7 @@
             val = s->dac_state;
             break;
-	case 0x3c8:
-	    val = s->dac_write_index;
-	    break;
+        case 0x3c8:
+            val = s->dac_write_index;
+            break;
         case 0x3c9:
             val = s->palette[s->dac_read_index * 3 + s->dac_sub_index];
Index: /trunk/src/VBox/Devices/Input/DevPS2.cpp
===================================================================
--- /trunk/src/VBox/Devices/Input/DevPS2.cpp	(revision 22583)
+++ /trunk/src/VBox/Devices/Input/DevPS2.cpp	(revision 22584)
@@ -86,81 +86,81 @@
 #endif /* VBOX */
 
-/*	Keyboard Controller Commands */
-#define KBD_CCMD_READ_MODE	0x20	/* Read mode bits */
-#define KBD_CCMD_WRITE_MODE	0x60	/* Write mode bits */
-#define KBD_CCMD_GET_VERSION	0xA1	/* Get controller version */
-#define KBD_CCMD_MOUSE_DISABLE	0xA7	/* Disable mouse interface */
-#define KBD_CCMD_MOUSE_ENABLE	0xA8	/* Enable mouse interface */
-#define KBD_CCMD_TEST_MOUSE	0xA9	/* Mouse interface test */
-#define KBD_CCMD_SELF_TEST	0xAA	/* Controller self test */
-#define KBD_CCMD_KBD_TEST	0xAB	/* Keyboard interface test */
-#define KBD_CCMD_KBD_DISABLE	0xAD	/* Keyboard interface disable */
-#define KBD_CCMD_KBD_ENABLE	0xAE	/* Keyboard interface enable */
+/*      Keyboard Controller Commands */
+#define KBD_CCMD_READ_MODE      0x20    /* Read mode bits */
+#define KBD_CCMD_WRITE_MODE     0x60    /* Write mode bits */
+#define KBD_CCMD_GET_VERSION    0xA1    /* Get controller version */
+#define KBD_CCMD_MOUSE_DISABLE  0xA7    /* Disable mouse interface */
+#define KBD_CCMD_MOUSE_ENABLE   0xA8    /* Enable mouse interface */
+#define KBD_CCMD_TEST_MOUSE     0xA9    /* Mouse interface test */
+#define KBD_CCMD_SELF_TEST      0xAA    /* Controller self test */
+#define KBD_CCMD_KBD_TEST       0xAB    /* Keyboard interface test */
+#define KBD_CCMD_KBD_DISABLE    0xAD    /* Keyboard interface disable */
+#define KBD_CCMD_KBD_ENABLE     0xAE    /* Keyboard interface enable */
 #define KBD_CCMD_READ_INPORT    0xC0    /* read input port */
-#define KBD_CCMD_READ_OUTPORT	0xD0    /* read output port */
-#define KBD_CCMD_WRITE_OUTPORT	0xD1    /* write output port */
-#define KBD_CCMD_WRITE_OBUF	0xD2
-#define KBD_CCMD_WRITE_AUX_OBUF	0xD3    /* Write to output buffer as if
-					   initiated by the auxiliary device */
-#define KBD_CCMD_WRITE_MOUSE	0xD4	/* Write the following byte to the mouse */
+#define KBD_CCMD_READ_OUTPORT   0xD0    /* read output port */
+#define KBD_CCMD_WRITE_OUTPORT  0xD1    /* write output port */
+#define KBD_CCMD_WRITE_OBUF     0xD2
+#define KBD_CCMD_WRITE_AUX_OBUF 0xD3    /* Write to output buffer as if
+                                           initiated by the auxiliary device */
+#define KBD_CCMD_WRITE_MOUSE    0xD4    /* Write the following byte to the mouse */
 #define KBD_CCMD_DISABLE_A20    0xDD    /* HP vectra only ? */
 #define KBD_CCMD_ENABLE_A20     0xDF    /* HP vectra only ? */
 #define KBD_CCMD_READ_TSTINP    0xE0    /* Read test inputs T0, T1 */
-#define KBD_CCMD_RESET	        0xFE
+#define KBD_CCMD_RESET          0xFE
 
 /* Keyboard Commands */
-#define KBD_CMD_SET_LEDS	0xED	/* Set keyboard leds */
-#define KBD_CMD_ECHO     	0xEE
-#define KBD_CMD_GET_ID 	        0xF2	/* get keyboard ID */
-#define KBD_CMD_SET_RATE	0xF3	/* Set typematic rate */
-#define KBD_CMD_ENABLE		0xF4	/* Enable scanning */
-#define KBD_CMD_RESET_DISABLE	0xF5	/* reset and disable scanning */
-#define KBD_CMD_RESET_ENABLE   	0xF6    /* reset and enable scanning */
-#define KBD_CMD_RESET		0xFF	/* Reset */
+#define KBD_CMD_SET_LEDS        0xED    /* Set keyboard leds */
+#define KBD_CMD_ECHO            0xEE
+#define KBD_CMD_GET_ID          0xF2    /* get keyboard ID */
+#define KBD_CMD_SET_RATE        0xF3    /* Set typematic rate */
+#define KBD_CMD_ENABLE          0xF4    /* Enable scanning */
+#define KBD_CMD_RESET_DISABLE   0xF5    /* reset and disable scanning */
+#define KBD_CMD_RESET_ENABLE    0xF6    /* reset and enable scanning */
+#define KBD_CMD_RESET           0xFF    /* Reset */
 
 /* Keyboard Replies */
-#define KBD_REPLY_POR		0xAA	/* Power on reset */
-#define KBD_REPLY_ACK		0xFA	/* Command ACK */
-#define KBD_REPLY_RESEND	0xFE	/* Command NACK, send the cmd again */
+#define KBD_REPLY_POR           0xAA    /* Power on reset */
+#define KBD_REPLY_ACK           0xFA    /* Command ACK */
+#define KBD_REPLY_RESEND        0xFE    /* Command NACK, send the cmd again */
 
 /* Status Register Bits */
-#define KBD_STAT_OBF 		0x01	/* Keyboard output buffer full */
-#define KBD_STAT_IBF 		0x02	/* Keyboard input buffer full */
-#define KBD_STAT_SELFTEST	0x04	/* Self test successful */
-#define KBD_STAT_CMD		0x08	/* Last write was a command write (0=data) */
-#define KBD_STAT_UNLOCKED	0x10	/* Zero if keyboard locked */
-#define KBD_STAT_MOUSE_OBF	0x20	/* Mouse output buffer full */
-#define KBD_STAT_GTO 		0x40	/* General receive/xmit timeout */
-#define KBD_STAT_PERR 		0x80	/* Parity error */
+#define KBD_STAT_OBF            0x01    /* Keyboard output buffer full */
+#define KBD_STAT_IBF            0x02    /* Keyboard input buffer full */
+#define KBD_STAT_SELFTEST       0x04    /* Self test successful */
+#define KBD_STAT_CMD            0x08    /* Last write was a command write (0=data) */
+#define KBD_STAT_UNLOCKED       0x10    /* Zero if keyboard locked */
+#define KBD_STAT_MOUSE_OBF      0x20    /* Mouse output buffer full */
+#define KBD_STAT_GTO            0x40    /* General receive/xmit timeout */
+#define KBD_STAT_PERR           0x80    /* Parity error */
 
 /* Controller Mode Register Bits */
-#define KBD_MODE_KBD_INT	0x01	/* Keyboard data generate IRQ1 */
-#define KBD_MODE_MOUSE_INT	0x02	/* Mouse data generate IRQ12 */
-#define KBD_MODE_SYS 		0x04	/* The system flag (?) */
-#define KBD_MODE_NO_KEYLOCK	0x08	/* The keylock doesn't affect the keyboard if set */
-#define KBD_MODE_DISABLE_KBD	0x10	/* Disable keyboard interface */
-#define KBD_MODE_DISABLE_MOUSE	0x20	/* Disable mouse interface */
-#define KBD_MODE_KCC 		0x40	/* Scan code conversion to PC format */
-#define KBD_MODE_RFU		0x80
+#define KBD_MODE_KBD_INT        0x01    /* Keyboard data generate IRQ1 */
+#define KBD_MODE_MOUSE_INT      0x02    /* Mouse data generate IRQ12 */
+#define KBD_MODE_SYS            0x04    /* The system flag (?) */
+#define KBD_MODE_NO_KEYLOCK     0x08    /* The keylock doesn't affect the keyboard if set */
+#define KBD_MODE_DISABLE_KBD    0x10    /* Disable keyboard interface */
+#define KBD_MODE_DISABLE_MOUSE  0x20    /* Disable mouse interface */
+#define KBD_MODE_KCC            0x40    /* Scan code conversion to PC format */
+#define KBD_MODE_RFU            0x80
 
 /* Mouse Commands */
-#define AUX_SET_SCALE11		0xE6	/* Set 1:1 scaling */
-#define AUX_SET_SCALE21		0xE7	/* Set 2:1 scaling */
-#define AUX_SET_RES		0xE8	/* Set resolution */
-#define AUX_GET_SCALE		0xE9	/* Get scaling factor */
-#define AUX_SET_STREAM		0xEA	/* Set stream mode */
-#define AUX_POLL		0xEB	/* Poll */
-#define AUX_RESET_WRAP		0xEC	/* Reset wrap mode */
-#define AUX_SET_WRAP		0xEE	/* Set wrap mode */
-#define AUX_SET_REMOTE		0xF0	/* Set remote mode */
-#define AUX_GET_TYPE		0xF2	/* Get type */
-#define AUX_SET_SAMPLE		0xF3	/* Set sample rate */
-#define AUX_ENABLE_DEV		0xF4	/* Enable aux device */
-#define AUX_DISABLE_DEV		0xF5	/* Disable aux device */
-#define AUX_SET_DEFAULT		0xF6
-#define AUX_RESET		0xFF	/* Reset aux device */
-#define AUX_ACK			0xFA	/* Command byte ACK. */
-#ifdef VBOX
-#define AUX_NACK			0xFE	/* Command byte NACK. */
+#define AUX_SET_SCALE11         0xE6    /* Set 1:1 scaling */
+#define AUX_SET_SCALE21         0xE7    /* Set 2:1 scaling */
+#define AUX_SET_RES             0xE8    /* Set resolution */
+#define AUX_GET_SCALE           0xE9    /* Get scaling factor */
+#define AUX_SET_STREAM          0xEA    /* Set stream mode */
+#define AUX_POLL                0xEB    /* Poll */
+#define AUX_RESET_WRAP          0xEC    /* Reset wrap mode */
+#define AUX_SET_WRAP            0xEE    /* Set wrap mode */
+#define AUX_SET_REMOTE          0xF0    /* Set remote mode */
+#define AUX_GET_TYPE            0xF2    /* Get type */
+#define AUX_SET_SAMPLE          0xF3    /* Set sample rate */
+#define AUX_ENABLE_DEV          0xF4    /* Enable aux device */
+#define AUX_DISABLE_DEV         0xF5    /* Disable aux device */
+#define AUX_SET_DEFAULT         0xF6
+#define AUX_RESET               0xFF    /* Reset aux device */
+#define AUX_ACK                 0xFA    /* Command byte ACK. */
+#ifdef VBOX
+#define AUX_NACK                        0xFE    /* Command byte NACK. */
 #endif
 
@@ -785,5 +785,5 @@
     if (s->mouse_dx == 0 && s->mouse_dy == 0 && s->mouse_dz == 0 &&
         s->mouse_buttons == buttons_state)
-	return;
+        return;
 #else
     /* This issue does not affect VBox, and under some circumstances (which?)
Index: /trunk/src/VBox/Devices/Network/slirp/slirp.h
===================================================================
--- /trunk/src/VBox/Devices/Network/slirp/slirp.h	(revision 22583)
+++ /trunk/src/VBox/Devices/Network/slirp/slirp.h	(revision 22584)
@@ -359,7 +359,7 @@
 # undef calloc
 # undef free
-# define	malloc(x) RTMemAlloc((x))
-# define	calloc(x, n) RTMemAllocZ((x)*(n))
-# define	free(x)	RTMemFree((x))
+# define malloc(x)    RTMemAlloc((x))
+# define calloc(x, n) RTMemAllocZ((x)*(n))
+# define free(x)      RTMemFree((x))
 # ifndef __unused
 #  define __unused
Index: /trunk/src/VBox/Devices/Network/slirp/tcp_input.c
===================================================================
--- /trunk/src/VBox/Devices/Network/slirp/tcp_input.c	(revision 22583)
+++ /trunk/src/VBox/Devices/Network/slirp/tcp_input.c	(revision 22584)
@@ -308,13 +308,15 @@
         so->so_m = 0;
         ti = so->so_ti;
-		/* @todo (r -vvl) clarify why it might happens */
-		if (ti == NULL)
-		{
-			LogRel(("NAT: ti is null. can't do any reseting connection actions\n"));
-			/* mbuf should be cleared in sofree called from tcp_close */
-			tcp_close(pData, tp);
-                        STAM_PROFILE_STOP(&pData->StatTCP_input, counter_input);
-			return;
-		}
+
+        /** @todo (vvl) clarify why it might happens */
+        if (ti == NULL)
+        {
+            LogRel(("NAT: ti is null. can't do any reseting connection actions\n"));
+            /* mbuf should be cleared in sofree called from tcp_close */
+            tcp_close(pData, tp);
+            STAM_PROFILE_STOP(&pData->StatTCP_input, counter_input);
+            return;
+        }
+
         tiwin = ti->ti_win;
         tiflags = ti->ti_flags;
Index: /trunk/src/VBox/Devices/PC/DevAPIC.cpp
===================================================================
--- /trunk/src/VBox/Devices/PC/DevAPIC.cpp	(revision 22583)
+++ /trunk/src/VBox/Devices/PC/DevAPIC.cpp	(revision 22584)
@@ -150,27 +150,27 @@
 
 /* APIC delivery modes */
-#define APIC_DM_FIXED	0
-#define APIC_DM_LOWPRI	1
-#define APIC_DM_SMI	2
-#define APIC_DM_NMI	4
-#define APIC_DM_INIT	5
-#define APIC_DM_SIPI	6
-#define APIC_DM_EXTINT	7
+#define APIC_DM_FIXED   0
+#define APIC_DM_LOWPRI  1
+#define APIC_DM_SMI     2
+#define APIC_DM_NMI     4
+#define APIC_DM_INIT    5
+#define APIC_DM_SIPI    6
+#define APIC_DM_EXTINT  7
 
 /* APIC destination mode */
-#define APIC_DESTMODE_FLAT	0xf
-#define APIC_DESTMODE_CLUSTER	1
+#define APIC_DESTMODE_FLAT      0xf
+#define APIC_DESTMODE_CLUSTER   1
 
 #define APIC_TRIGGER_EDGE  0
 #define APIC_TRIGGER_LEVEL 1
 
-#define	APIC_LVT_TIMER_PERIODIC		(1<<17)
-#define	APIC_LVT_MASKED			(1<<16)
-#define	APIC_LVT_LEVEL_TRIGGER		(1<<15)
-#define	APIC_LVT_REMOTE_IRR		(1<<14)
-#define	APIC_INPUT_POLARITY		(1<<13)
-#define	APIC_SEND_PENDING		(1<<12)
-
-#define IOAPIC_NUM_PINS			0x18
+#define APIC_LVT_TIMER_PERIODIC         (1<<17)
+#define APIC_LVT_MASKED                 (1<<16)
+#define APIC_LVT_LEVEL_TRIGGER          (1<<15)
+#define APIC_LVT_REMOTE_IRR             (1<<14)
+#define APIC_INPUT_POLARITY             (1<<13)
+#define APIC_SEND_PENDING               (1<<12)
+
+#define IOAPIC_NUM_PINS                 0x18
 
 #define ESR_ILLEGAL_ADDRESS (1 << 7)
Index: /trunk/src/VBox/Devices/Serial/DevSerial.cpp
===================================================================
--- /trunk/src/VBox/Devices/Serial/DevSerial.cpp	(revision 22583)
+++ /trunk/src/VBox/Devices/Serial/DevSerial.cpp	(revision 22584)
@@ -72,48 +72,48 @@
 #define SERIAL_SAVED_STATE_VERSION  3
 
-#define UART_LCR_DLAB	            0x80	/* Divisor latch access bit */
-
-#define UART_IER_MSI	            0x08	/* Enable Modem status interrupt */
-#define UART_IER_RLSI	            0x04	/* Enable receiver line status interrupt */
-#define UART_IER_THRI	            0x02	/* Enable Transmitter holding register int. */
-#define UART_IER_RDI	            0x01	/* Enable receiver data interrupt */
-
-#define UART_IIR_NO_INT	            0x01	/* No interrupts pending */
-#define UART_IIR_ID	                0x06	/* Mask for the interrupt ID */
-
-#define UART_IIR_MSI	            0x00	/* Modem status interrupt */
-#define UART_IIR_THRI	            0x02	/* Transmitter holding register empty */
-#define UART_IIR_RDI	            0x04	/* Receiver data interrupt */
-#define UART_IIR_RLSI	            0x06	/* Receiver line status interrupt */
+#define UART_LCR_DLAB               0x80        /* Divisor latch access bit */
+
+#define UART_IER_MSI                0x08        /* Enable Modem status interrupt */
+#define UART_IER_RLSI               0x04        /* Enable receiver line status interrupt */
+#define UART_IER_THRI               0x02        /* Enable Transmitter holding register int. */
+#define UART_IER_RDI                0x01        /* Enable receiver data interrupt */
+
+#define UART_IIR_NO_INT             0x01        /* No interrupts pending */
+#define UART_IIR_ID                     0x06    /* Mask for the interrupt ID */
+
+#define UART_IIR_MSI                0x00        /* Modem status interrupt */
+#define UART_IIR_THRI               0x02        /* Transmitter holding register empty */
+#define UART_IIR_RDI                0x04        /* Receiver data interrupt */
+#define UART_IIR_RLSI               0x06        /* Receiver line status interrupt */
 
 /*
  * These are the definitions for the Modem Control Register
  */
-#define UART_MCR_LOOP	            0x10	/* Enable loopback test mode */
-#define UART_MCR_OUT2	            0x08	/* Out2 complement */
-#define UART_MCR_OUT1	            0x04	/* Out1 complement */
-#define UART_MCR_RTS	            0x02	/* RTS complement */
-#define UART_MCR_DTR	            0x01	/* DTR complement */
+#define UART_MCR_LOOP               0x10        /* Enable loopback test mode */
+#define UART_MCR_OUT2               0x08        /* Out2 complement */
+#define UART_MCR_OUT1               0x04        /* Out1 complement */
+#define UART_MCR_RTS                0x02        /* RTS complement */
+#define UART_MCR_DTR                0x01        /* DTR complement */
 
 /*
  * These are the definitions for the Modem Status Register
  */
-#define UART_MSR_DCD	            0x80	/* Data Carrier Detect */
-#define UART_MSR_RI	                0x40	/* Ring Indicator */
-#define UART_MSR_DSR	            0x20	/* Data Set Ready */
-#define UART_MSR_CTS	            0x10	/* Clear to Send */
-#define UART_MSR_DDCD	            0x08	/* Delta DCD */
-#define UART_MSR_TERI	            0x04	/* Trailing edge ring indicator */
-#define UART_MSR_DDSR	            0x02	/* Delta DSR */
-#define UART_MSR_DCTS	            0x01	/* Delta CTS */
-#define UART_MSR_ANY_DELTA          0x0F	/* Any of the delta bits! */
-
-#define UART_LSR_TEMT	            0x40	/* Transmitter empty */
-#define UART_LSR_THRE	            0x20	/* Transmit-hold-register empty */
-#define UART_LSR_BI	                0x10	/* Break interrupt indicator */
-#define UART_LSR_FE	                0x08	/* Frame error indicator */
-#define UART_LSR_PE	                0x04	/* Parity error indicator */
-#define UART_LSR_OE	                0x02	/* Overrun error indicator */
-#define UART_LSR_DR	                0x01	/* Receiver data ready */
+#define UART_MSR_DCD                0x80        /* Data Carrier Detect */
+#define UART_MSR_RI                     0x40    /* Ring Indicator */
+#define UART_MSR_DSR                0x20        /* Data Set Ready */
+#define UART_MSR_CTS                0x10        /* Clear to Send */
+#define UART_MSR_DDCD               0x08        /* Delta DCD */
+#define UART_MSR_TERI               0x04        /* Trailing edge ring indicator */
+#define UART_MSR_DDSR               0x02        /* Delta DSR */
+#define UART_MSR_DCTS               0x01        /* Delta CTS */
+#define UART_MSR_ANY_DELTA          0x0F        /* Any of the delta bits! */
+
+#define UART_LSR_TEMT               0x40        /* Transmitter empty */
+#define UART_LSR_THRE               0x20        /* Transmit-hold-register empty */
+#define UART_LSR_BI                     0x10    /* Break interrupt indicator */
+#define UART_LSR_FE                     0x08    /* Frame error indicator */
+#define UART_LSR_PE                     0x04    /* Parity error indicator */
+#define UART_LSR_OE                     0x02    /* Overrun error indicator */
+#define UART_LSR_DR                     0x01    /* Receiver data ready */
 
 
Index: /trunk/src/VBox/Devices/Storage/ISCSIHDDCore.cpp
===================================================================
--- /trunk/src/VBox/Devices/Storage/ISCSIHDDCore.cpp	(revision 22583)
+++ /trunk/src/VBox/Devices/Storage/ISCSIHDDCore.cpp	(revision 22584)
@@ -1755,8 +1755,8 @@
                 aReqBHS[0] = RT_H2N_U32(ISCSI_IMMEDIATE_DELIVERY_BIT | ISCSI_FINAL_BIT | ISCSIOP_NOP_OUT);
                 aReqBHS[1] = RT_H2N_U32(0); /* TotalAHSLength=0,DataSementLength=0 */
-                aReqBHS[2] = pcvResSeg[2];	/* copy LUN from NOP-In */
-                aReqBHS[3] = pcvResSeg[3];	/* copy LUN from NOP-In */
+                aReqBHS[2] = pcvResSeg[2];      /* copy LUN from NOP-In */
+                aReqBHS[3] = pcvResSeg[3];      /* copy LUN from NOP-In */
                 aReqBHS[4] = RT_H2N_U32(ISCSI_TASK_TAG_RSVD); /* ITT, reply */
-                aReqBHS[5] = pcvResSeg[5];	/* copy TTT from NOP-In */
+                aReqBHS[5] = pcvResSeg[5];      /* copy TTT from NOP-In */
                 aReqBHS[6] = RT_H2N_U32(pImage->CmdSN);
                 aReqBHS[7] = RT_H2N_U32(pImage->ExpStatSN);
Index: /trunk/src/VBox/Devices/vl_vbox.h
===================================================================
--- /trunk/src/VBox/Devices/vl_vbox.h	(revision 22583)
+++ /trunk/src/VBox/Devices/vl_vbox.h	(revision 22584)
@@ -58,6 +58,6 @@
 # define _glue(x, y)    x ## y
 # define glue(x, y)     _glue(x, y)
-# define tostring(s)	#s
-# define stringify(s)	tostring(s)
+# define tostring(s)    #s
+# define stringify(s)   tostring(s)
 #endif
 
@@ -194,5 +194,5 @@
 #ifdef _MSC_VER
 #ifndef LITTLE_ENDIAN
-#define	LITTLE_ENDIAN   1234
+#define LITTLE_ENDIAN   1234
 #endif
 #ifndef BYTE_ORDER
@@ -203,6 +203,6 @@
 {
     return ((uint16_t)( \
-		(((uint16_t)(x) & (uint16_t)0x00ffU) << 8) | \
-		(((uint16_t)(x) & (uint16_t)0xff00U) >> 8) )); \
+                (((uint16_t)(x) & (uint16_t)0x00ffU) << 8) | \
+                (((uint16_t)(x) & (uint16_t)0xff00U) >> 8) )); \
 }
 
@@ -210,8 +210,8 @@
 { \
     return ((uint32_t)( \
-		(((uint32_t)(x) & (uint32_t)0x000000ffUL) << 24) | \
-		(((uint32_t)(x) & (uint32_t)0x0000ff00UL) <<  8) | \
-		(((uint32_t)(x) & (uint32_t)0x00ff0000UL) >>  8) | \
-		(((uint32_t)(x) & (uint32_t)0xff000000UL) >> 24) )); \
+                (((uint32_t)(x) & (uint32_t)0x000000ffUL) << 24) | \
+                (((uint32_t)(x) & (uint32_t)0x0000ff00UL) <<  8) | \
+                (((uint32_t)(x) & (uint32_t)0x00ff0000UL) >>  8) | \
+                (((uint32_t)(x) & (uint32_t)0xff000000UL) >> 24) )); \
 }
 
@@ -219,12 +219,12 @@
 { \
     return ((uint64_t)( \
-		(uint64_t)(((uint64_t)(x) & (uint64_t)0x00000000000000ffULL) << 56) | \
-		(uint64_t)(((uint64_t)(x) & (uint64_t)0x000000000000ff00ULL) << 40) | \
-		(uint64_t)(((uint64_t)(x) & (uint64_t)0x0000000000ff0000ULL) << 24) | \
-		(uint64_t)(((uint64_t)(x) & (uint64_t)0x00000000ff000000ULL) <<  8) | \
-	        (uint64_t)(((uint64_t)(x) & (uint64_t)0x000000ff00000000ULL) >>  8) | \
-		(uint64_t)(((uint64_t)(x) & (uint64_t)0x0000ff0000000000ULL) >> 24) | \
-		(uint64_t)(((uint64_t)(x) & (uint64_t)0x00ff000000000000ULL) >> 40) | \
-		(uint64_t)(((uint64_t)(x) & (uint64_t)0xff00000000000000ULL) >> 56) )); \
+                (uint64_t)(((uint64_t)(x) & (uint64_t)0x00000000000000ffULL) << 56) | \
+                (uint64_t)(((uint64_t)(x) & (uint64_t)0x000000000000ff00ULL) << 40) | \
+                (uint64_t)(((uint64_t)(x) & (uint64_t)0x0000000000ff0000ULL) << 24) | \
+                (uint64_t)(((uint64_t)(x) & (uint64_t)0x00000000ff000000ULL) <<  8) | \
+                (uint64_t)(((uint64_t)(x) & (uint64_t)0x000000ff00000000ULL) >>  8) | \
+                (uint64_t)(((uint64_t)(x) & (uint64_t)0x0000ff0000000000ULL) >> 24) | \
+                (uint64_t)(((uint64_t)(x) & (uint64_t)0x00ff000000000000ULL) >> 40) | \
+                (uint64_t)(((uint64_t)(x) & (uint64_t)0xff00000000000000ULL) >> 56) )); \
 }
 
@@ -234,5 +234,5 @@
 
 #ifndef LITTLE_ENDIAN
-#define	LITTLE_ENDIAN   1234
+#define LITTLE_ENDIAN   1234
 #endif
 #ifndef BYTE_ORDER
@@ -242,32 +242,32 @@
 #define bswap_16(x) \
 (__extension__ ({ \
-	uint16_t __x = (x); \
-	((uint16_t)( \
-		(((uint16_t)(__x) & (uint16_t)0x00ffU) << 8) | \
-		(((uint16_t)(__x) & (uint16_t)0xff00U) >> 8) )); \
+        uint16_t __x = (x); \
+        ((uint16_t)( \
+                (((uint16_t)(__x) & (uint16_t)0x00ffU) << 8) | \
+                (((uint16_t)(__x) & (uint16_t)0xff00U) >> 8) )); \
 }))
 
 #define bswap_32(x) \
 (__extension__ ({ \
-	uint32_t __x = (x); \
-	((uint32_t)( \
-		(((uint32_t)(__x) & (uint32_t)0x000000ffUL) << 24) | \
-		(((uint32_t)(__x) & (uint32_t)0x0000ff00UL) <<  8) | \
-		(((uint32_t)(__x) & (uint32_t)0x00ff0000UL) >>  8) | \
-		(((uint32_t)(__x) & (uint32_t)0xff000000UL) >> 24) )); \
+        uint32_t __x = (x); \
+        ((uint32_t)( \
+                (((uint32_t)(__x) & (uint32_t)0x000000ffUL) << 24) | \
+                (((uint32_t)(__x) & (uint32_t)0x0000ff00UL) <<  8) | \
+                (((uint32_t)(__x) & (uint32_t)0x00ff0000UL) >>  8) | \
+                (((uint32_t)(__x) & (uint32_t)0xff000000UL) >> 24) )); \
 }))
 
 #define bswap_64(x) \
 (__extension__ ({ \
-	uint64_t __x = (x); \
-	((uint64_t)( \
-		(uint64_t)(((uint64_t)(__x) & (uint64_t)0x00000000000000ffULL) << 56) | \
-		(uint64_t)(((uint64_t)(__x) & (uint64_t)0x000000000000ff00ULL) << 40) | \
-		(uint64_t)(((uint64_t)(__x) & (uint64_t)0x0000000000ff0000ULL) << 24) | \
-		(uint64_t)(((uint64_t)(__x) & (uint64_t)0x00000000ff000000ULL) <<  8) | \
-	        (uint64_t)(((uint64_t)(__x) & (uint64_t)0x000000ff00000000ULL) >>  8) | \
-		(uint64_t)(((uint64_t)(__x) & (uint64_t)0x0000ff0000000000ULL) >> 24) | \
-		(uint64_t)(((uint64_t)(__x) & (uint64_t)0x00ff000000000000ULL) >> 40) | \
-		(uint64_t)(((uint64_t)(__x) & (uint64_t)0xff00000000000000ULL) >> 56) )); \
+        uint64_t __x = (x); \
+        ((uint64_t)( \
+                (uint64_t)(((uint64_t)(__x) & (uint64_t)0x00000000000000ffULL) << 56) | \
+                (uint64_t)(((uint64_t)(__x) & (uint64_t)0x000000000000ff00ULL) << 40) | \
+                (uint64_t)(((uint64_t)(__x) & (uint64_t)0x0000000000ff0000ULL) << 24) | \
+                (uint64_t)(((uint64_t)(__x) & (uint64_t)0x00000000ff000000ULL) <<  8) | \
+                (uint64_t)(((uint64_t)(__x) & (uint64_t)0x000000ff00000000ULL) >>  8) | \
+                (uint64_t)(((uint64_t)(__x) & (uint64_t)0x0000ff0000000000ULL) >> 24) | \
+                (uint64_t)(((uint64_t)(__x) & (uint64_t)0x00ff000000000000ULL) >> 40) | \
+                (uint64_t)(((uint64_t)(__x) & (uint64_t)0xff00000000000000ULL) >> 56) )); \
 }))
 #endif
