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/fpu/s_ceilf.S | |
parent | 0e7727f71db5d393cf7374704d62d7ff23992950 (diff) | |
download | glibc-d674b76d0e46202ab8fd582b9d44d918d5fdd3e7.tar.gz |
Fix comment formatting in new optimized sparc math files.
Diffstat (limited to 'sysdeps/sparc/sparc64/fpu/s_ceilf.S')
-rw-r--r-- | sysdeps/sparc/sparc64/fpu/s_ceilf.S | 45 |
1 files changed, 22 insertions, 23 deletions
diff --git a/sysdeps/sparc/sparc64/fpu/s_ceilf.S b/sysdeps/sparc/sparc64/fpu/s_ceilf.S index 1ae7f7ad71..dd5c2f0c79 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 */ |