Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sfp-util.h File Reference
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/types.h>
#include <asm/byteorder.h>

Go to the source code of this file.

Macros

#define add_ssaaaa(sh, sl, ah, al, bh, bl)
 
#define sub_ddmmss(sh, sl, ah, al, bh, bl)
 
#define umul_ppmm(wh, wl, u, v)
 
#define udiv_qrnnd(q, r, n1, n0, d)
 
#define UDIV_NEEDS_NORMALIZATION   0
 
#define abort()   BUG()
 
#define __BYTE_ORDER   __BIG_ENDIAN
 

Functions

unsigned long __udiv_qrnnd (unsigned int *, unsigned int, unsigned int, unsigned int)
 

Macro Definition Documentation

#define __BYTE_ORDER   __BIG_ENDIAN

Definition at line 77 of file sfp-util.h.

#define abort (   void)    BUG()

Definition at line 75 of file sfp-util.h.

#define add_ssaaaa (   sh,
  sl,
  ah,
  al,
  bh,
  bl 
)
Value:
({ \
unsigned int __sh = (ah); \
unsigned int __sl = (al); \
asm volatile( \
" alr %1,%3\n" \
" brc 12,0f\n" \
" ahi %0,1\n" \
"0: alr %0,%2" \
: "+&d" (__sh), "+d" (__sl) \
: "d" (bh), "d" (bl) : "cc"); \
(sh) = __sh; \
(sl) = __sl; \
})

Definition at line 6 of file sfp-util.h.

#define sub_ddmmss (   sh,
  sl,
  ah,
  al,
  bh,
  bl 
)
Value:
({ \
unsigned int __sh = (ah); \
unsigned int __sl = (al); \
asm volatile( \
" slr %1,%3\n" \
" brc 3,0f\n" \
" ahi %0,-1\n" \
"0: slr %0,%2" \
: "+&d" (__sh), "+d" (__sl) \
: "d" (bh), "d" (bl) : "cc"); \
(sh) = __sh; \
(sl) = __sl; \
})

Definition at line 20 of file sfp-util.h.

#define UDIV_NEEDS_NORMALIZATION   0

Definition at line 73 of file sfp-util.h.

#define udiv_qrnnd (   q,
  r,
  n1,
  n0,
  d 
)
Value:
do { unsigned int __r; \
(q) = __udiv_qrnnd (&__r, (n1), (n0), (d)); \
(r) = __r; \
} while (0)

Definition at line 64 of file sfp-util.h.

#define umul_ppmm (   wh,
  wl,
  u,
  v 
)
Value:
({ \
unsigned int __wh = u; \
unsigned int __wl = v; \
asm volatile( \
" ltr 1,%0\n" \
" mr 0,%1\n" \
" jnm 0f\n" \
" alr 0,%1\n" \
"0: ltr %1,%1\n" \
" jnm 1f\n" \
" alr 0,%0\n" \
"1: lr %0,0\n" \
" lr %1,1\n" \
: "+d" (__wh), "+d" (__wl) \
: : "0", "1", "cc"); \
wh = __wh; \
wl = __wl; \
})

Definition at line 35 of file sfp-util.h.

Function Documentation

unsigned long __udiv_qrnnd ( unsigned int ,
unsigned  int,
unsigned  int,
unsigned  int 
)