Side by Side Diff
Use n/p to move between diff chunks; N/P to move between comments.
Draft comments are only viewable by you.
Keyboard Shortcuts
File
u
:
up to issue
j
/
k
:
jump to file after / before current file
J
/
K
:
jump to next file with a comment after / before current file
Side-by-side diff
i
:
toggle intra-line diffs
e
:
expand all comments
c
:
collapse all comments
s
:
toggle showing all comments
n
/
p
:
next / previous diff chunk or comment
N
/
P
:
next / previous comment
<Up>
/
<Down>
:
next / previous line
Issue
u
:
up to list of issues
j
/
k
:
jump to patch after / before current patch
o
/
<Enter>
:
open current patch in side-by-side view
i
:
open current patch in unified diff view
Issue List
j
/
k
:
jump to issue after / before current issue
o
/
<Enter>
:
open current issue
Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr)
|
Please choose your nickname with
Settings
|
Help
|
Chromium Project
|
Gerrit Changes
|
Sign out
(421)
Issues
Search
My Issues
|
Starred
Open
|
Closed
|
All
Side by Side Diff: fusl/src/math/ilogbf.c
Issue
1581793002
:
Remove -Wno-unknown-pragmas from fusl build (Closed)
Base URL: git@github.com:domokit/mojo.git@master
Patch Set: comment to clang bug
Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Draft comments are only viewable by you.
Context:
3 lines
10 lines
25 lines
50 lines
75 lines
100 lines
Whole file
Column Width:
Tab Spaces:
Jump to:
fusl/BUILD.gn
fusl/src/internal/libm.h
fusl/src/math/fma.c
fusl/src/math/fmaf.c
fusl/src/math/fmal.c
fusl/src/math/ilogb.c
fusl/src/math/ilogbf.c
fusl/src/math/ilogbl.c
fusl/src/math/llrintl.c
fusl/src/math/lrintl.c
fusl/src/math/nearbyint.c
fusl/src/math/nearbyintf.c
fusl/src/math/nearbyintl.c
View unified diff
|
Download patch
« no previous file with comments
|
« fusl/src/math/ilogb.c
('k') |
fusl/src/math/ilogbl.c »
('j') |
no next file with comments »
Toggle Intra-line Diffs
('i') |
Expand Comments
('e') |
Collapse Comments
('c') |
Show Comments
Hide Comments
('s')
OLD
NEW
1 #include <limits.h>
1 #include <limits.h>
2 #include "libm.h"
2 #include "libm.h"
3
3
4 int ilogbf(float x)
4 int ilogbf(float x)
5 {
5 {
6
»
#pragma
STDC
FENV_ACCESS
ON
6
»
PRAGMA_
STDC
_
FENV_ACCESS
_
ON
7 union {float f; uint32_t i;} u = {x};
7 union {float f; uint32_t i;} u = {x};
8 uint32_t i = u.i;
8 uint32_t i = u.i;
9 int e = i>>23 & 0xff;
9 int e = i>>23 & 0xff;
10
10
11 if (!e) {
11 if (!e) {
12 i <<= 9;
12 i <<= 9;
13 if (i == 0) {
13 if (i == 0) {
14 FORCE_EVAL(0/0.0f);
14 FORCE_EVAL(0/0.0f);
15 return FP_ILOGB0;
15 return FP_ILOGB0;
16 }
16 }
17 /* subnormal x */
17 /* subnormal x */
18 for (e = -0x7f; i>>31 == 0; e--, i<<=1);
18 for (e = -0x7f; i>>31 == 0; e--, i<<=1);
19 return e;
19 return e;
20 }
20 }
21 if (e == 0xff) {
21 if (e == 0xff) {
22 FORCE_EVAL(0/0.0f);
22 FORCE_EVAL(0/0.0f);
23 return i<<9 ? FP_ILOGBNAN : INT_MAX;
23 return i<<9 ? FP_ILOGBNAN : INT_MAX;
24 }
24 }
25 return e - 0x7f;
25 return e - 0x7f;
26 }
26 }
OLD
NEW
« no previous file with comments
|
« fusl/src/math/ilogb.c
('k') |
fusl/src/math/ilogbl.c »
('j') |
no next file with comments »
Issue 1581793002: Remove -Wno-unknown-pragmas from fusl build (Closed)
Created 4 years, 11 months ago by kulakowski
Modified 4 years, 11 months ago
Reviewers: viettrungluu
Base URL: git@github.com:domokit/mojo.git@master
Comments: 4
This is Rietveld
408576698