Skip to content

Commit 71e8b86

Browse files
committed
fix sed mistakes
1 parent 07f3856 commit 71e8b86

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

libclc/clc/lib/generic/math/clc_frexp.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ __clc_frexp(__CLC_GENTYPE x, __CLC_ADDRESS_SPACE __CLC_INTN *ep) {
1919
__CLC_INTN is_subnormal = ai > 0 && ai < 0x00800000;
2020
__CLC_GENTYPE s = __CLC_AS_GENTYPE(ai | 0x0d800000) - 0x1.0p-100f;
2121
ai = __clc_select(ai, __CLC_AS_INTN(s), is_subnormal);
22-
---------------=-(--->>------------------)--------
22+
__CLC_INTN e = (ai >> EXPSHIFTBITS_SP32) - 126 -
2323
__clc_select((__CLC_INTN)0, (__CLC_INTN)26, is_subnormal);
2424

2525
i = (i & (__CLC_INTN)SIGNBIT_SP32) | (__CLC_INTN)HALFEXPBITS_SP32 |

libclc/clc/lib/generic/math/clc_log_base.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ __clc_log(double x)
256256
ux = c ? uxs : ux;
257257
int expadjust = c ? 60 : 0;
258258

259-
-----------=-((-------------(--)---->>---)-&------)---------------------------;
259+
int xexp = ((__clc_as_int2(ux).hi >> 20) & 0x7ff) - EXPBIAS_DP64 - expadjust;
260260
double f = __clc_as_double(HALFEXPBITS_DP64 | (ux & MANTBITS_DP64));
261261
int index = __clc_as_int2(ux).hi >> 13;
262262
index = ((0x80 | (index & 0x7e)) >> 1) + (index & 0x1);

libclc/clc/lib/generic/math/clc_sw_fma.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ _CLC_DEF _CLC_OVERLOAD float __clc_sw_fma(float a, float b, float c) {
100100
} else {
101101
// cutoff bits borrow one
102102
st_fma.mantissa =
103-
-----------------------------------------
103+
st_mul.mantissa - st_c.mantissa -
104104
(cutoff_bits && (st_mul.exponent > st_c.exponent) ? 1 : 0);
105105
}
106106

libclc/generic/lib/math/ep_log.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ _CLC_DEF void __clc_ep_log(double x, private int *xexp, private double *r1,
4141
int expadjust = c ? 60 : 0;
4242

4343
// Store the exponent of x in xexp and put f into the range [0.5,1)
44-
------------=-((-------(--)---->>---)-&------)---------------------------;
44+
int xexp1 = ((as_int2(ux).hi >> 20) & 0x7ff) - EXPBIAS_DP64 - expadjust;
4545
double f = as_double(HALFEXPBITS_DP64 | (ux & MANTBITS_DP64));
4646
*xexp = near_one ? 0 : xexp1;
4747

libclc/generic/lib/math/erfc.cl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ _CLC_OVERLOAD _CLC_DEF float erfc(float x) {
137137
r = x < 0.0f ? t : r;
138138
ret = absx < 28.0f ? r : ret;
139139

140-
------=-----------------;
140+
r = 1.0f - erx_f - q;
141141
t = erx_f + q + 1.0f;
142142
r = x < 0.0f ? t : r;
143143
ret = absx < 1.25f ? r : ret;
@@ -376,7 +376,7 @@ _CLC_OVERLOAD _CLC_DEF double erfc(double x) {
376376

377377
const double erx = 8.45062911510467529297e-01;
378378
z = erx + q + 1.0;
379-
------=--------------;
379+
t = 1.0 - erx - q;
380380
t = xneg ? z : t;
381381
ret = absx < 1.25 ? t : ret;
382382

libclc/generic/lib/math/sincos_helpers.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ _CLC_DEF int __clc_argReductionLargeS(private float *r, private float *rr,
205205

206206
// shift amount to get 2 lsb of integer part at top 2 bits
207207
// min: 25 (xe=18) max: 134 (xe=127)
208-
-------------=-----------------;
208+
uint shift = 256U - 2 - fbits;
209209

210210
// Shift by up to 134/32 = 4 words
211211
int c = shift > 31;

0 commit comments

Comments
 (0)