diff options
author | David S. Miller <davem@davemloft.net> | 2012-02-27 15:24:09 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-27 15:26:06 -0800 |
commit | d674b76d0e46202ab8fd582b9d44d918d5fdd3e7 (patch) | |
tree | ff2006eec89c8dfeca01a48771575600df5bd013 /sysdeps/sparc/sparc64 | |
parent | 0e7727f71db5d393cf7374704d62d7ff23992950 (diff) | |
download | glibc-d674b76d0e46202ab8fd582b9d44d918d5fdd3e7.zip glibc-d674b76d0e46202ab8fd582b9d44d918d5fdd3e7.tar.gz glibc-d674b76d0e46202ab8fd582b9d44d918d5fdd3e7.tar.bz2 |
Fix comment formatting in new optimized sparc math files.
Diffstat (limited to 'sysdeps/sparc/sparc64')
-rw-r--r-- | sysdeps/sparc/sparc64/fpu/s_ceil.S | 45 | ||||
-rw-r--r-- | sysdeps/sparc/sparc64/fpu/s_ceilf.S | 45 | ||||
-rw-r--r-- | sysdeps/sparc/sparc64/fpu/s_rint.S | 13 | ||||
-rw-r--r-- | sysdeps/sparc/sparc64/fpu/s_rintf.S | 13 |
4 files changed, 56 insertions, 60 deletions
diff --git a/sysdeps/sparc/sparc64/fpu/s_ceil.S b/sysdeps/sparc/sparc64/fpu/s_ceil.S index 7e9bfef..85d1a3c 100644 --- a/sysdeps/sparc/sparc64/fpu/s_ceil.S +++ b/sysdeps/sparc/sparc64/fpu/s_ceil.S @@ -20,29 +20,28 @@ #include <sysdep.h> /* Since changing the rounding mode is extremely expensive, we - * try to round up using a method that is rounding mode - * agnostic. - * - * We add then subtract (or subtract than add if the initial - * value was negative) 2**23 to the value, then subtract it - * back out. - * - * This will clear out the fractional portion of the value. - * One of two things will happen for non-whole initial values. - * Either the rounding mode will round it up, or it will be - * rounded down. If the value started out whole, it will be - * equal after the addition and subtraction. This means we - * can accurately detect with one test whether we need to add - * another 1.0 to round it up properly. - * - * We pop constants into the FPU registers using the incoming - * argument stack slots, since this avoid having to use any PIC - * references. We also thus avoid having to allocate a register - * window. - * - * VIS instructions are used to facilitate the formation of - * easier constants, and the propagation of the sign bit. - */ + try to round up using a method that is rounding mode + agnostic. + + We add then subtract (or subtract than add if the initial + value was negative) 2**23 to the value, then subtract it + back out. + + This will clear out the fractional portion of the value. + One of two things will happen for non-whole initial values. + Either the rounding mode will round it up, or it will be + rounded down. If the value started out whole, it will be + equal after the addition and subtraction. This means we + can accurately detect with one test whether we need to add + another 1.0 to round it up properly. + + We pop constants into the FPU registers using the incoming + argument stack slots, since this avoid having to use any + PIC references. We also thus avoid having to allocate a + register window. + + VIS instructions are used to facilitate the formation of + easier constants, and the propagation of the sign bit. */ #define TWO_FIFTYTWO 0x43300000 /* 2**52 */ #define ONE_DOT_ZERO 0x3ff00000 /* 1.0 */ diff --git a/sysdeps/sparc/sparc64/fpu/s_ceilf.S b/sysdeps/sparc/sparc64/fpu/s_ceilf.S index 1ae7f7a..dd5c2f0 100644 --- a/sysdeps/sparc/sparc64/fpu/s_ceilf.S +++ b/sysdeps/sparc/sparc64/fpu/s_ceilf.S @@ -20,29 +20,28 @@ #include <sysdep.h> /* Since changing the rounding mode is extremely expensive, we - * try to round up using a method that is rounding mode - * agnostic. - * - * We add then subtract (or subtract than add if the initial - * value was negative) 2**23 to the value, then subtract it - * back out. - * - * This will clear out the fractional portion of the value. - * One of two things will happen for non-whole initial values. - * Either the rounding mode will round it up, or it will be - * rounded down. If the value started out whole, it will be - * equal after the addition and subtraction. This means we - * can accurately detect with one test whether we need to add - * another 1.0 to round it up properly. - * - * We pop constants into the FPU registers using the incoming - * argument stack slots, since this avoid having to use any PIC - * references. We also thus avoid having to allocate a register - * window. - * - * VIS instructions are used to facilitate the formation of - * easier constants, and the propagation of the sign bit. - */ + try to round up using a method that is rounding mode + agnostic. + + We add then subtract (or subtract than add if the initial + value was negative) 2**23 to the value, then subtract it + back out. + + This will clear out the fractional portion of the value. + One of two things will happen for non-whole initial values. + Either the rounding mode will round it up, or it will be + rounded down. If the value started out whole, it will be + equal after the addition and subtraction. This means we + can accurately detect with one test whether we need to add + another 1.0 to round it up properly. + + We pop constants into the FPU registers using the incoming + argument stack slots, since this avoid having to use any + PIC references. We also thus avoid having to allocate a + register window. + + VIS instructions are used to facilitate the formation of + easier constants, and the propagation of the sign bit. */ #define TWO_TWENTYTHREE 0x4b000000 /* 2**23 */ #define ONE_DOT_ZERO 0x3f800000 /* 1.0 */ diff --git a/sysdeps/sparc/sparc64/fpu/s_rint.S b/sysdeps/sparc/sparc64/fpu/s_rint.S index 38b6135..4589e2c 100644 --- a/sysdeps/sparc/sparc64/fpu/s_rint.S +++ b/sysdeps/sparc/sparc64/fpu/s_rint.S @@ -20,13 +20,12 @@ #include <sysdep.h> /* We pop constants into the FPU registers using the incoming - * argument stack slots, since this avoid having to use any PIC - * references. We also thus avoid having to allocate a register - * window. - * - * VIS instructions are used to facilitate the formation of - * easier constants, and the propagation of the sign bit. - */ + argument stack slots, since this avoid having to use any PIC + references. We also thus avoid having to allocate a register + window. + + VIS instructions are used to facilitate the formation of + easier constants, and the propagation of the sign bit. */ #define TWO_FIFTYTWO 0x43300000 /* 2**52 */ diff --git a/sysdeps/sparc/sparc64/fpu/s_rintf.S b/sysdeps/sparc/sparc64/fpu/s_rintf.S index 42fda3f..7f7caa8 100644 --- a/sysdeps/sparc/sparc64/fpu/s_rintf.S +++ b/sysdeps/sparc/sparc64/fpu/s_rintf.S @@ -20,13 +20,12 @@ #include <sysdep.h> /* We pop constants into the FPU registers using the incoming - * argument stack slots, since this avoid having to use any PIC - * references. We also thus avoid having to allocate a register - * window. - * - * VIS instructions are used to facilitate the formation of - * easier constants, and the propagation of the sign bit. - */ + argument stack slots, since this avoid having to use any PIC + references. We also thus avoid having to allocate a register + window. + + VIS instructions are used to facilitate the formation of + easier constants, and the propagation of the sign bit. */ #define TWO_TWENTYTHREE 0x4b000000 /* 2**23 */ |