ReactOS
0.4.16-dev-1165-g40721f4
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
fabsf.c
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS CRT library
3
* LICENSE: MIT (https://spdx.org/licenses/MIT)
4
* PURPOSE: Portable implementation of fabsf
5
* COPYRIGHT: Copyright 2021 Timo Kreuzer <timo.kreuzer@reactos.org>
6
*/
7
8
#include <math.h>
9
10
_Check_return_
11
float
12
__cdecl
13
fabsf
(
14
_In_
float
x
)
15
{
16
/* Load the value as uint */
17
unsigned
int
u32
= *(
unsigned
int
*)&
x
;
18
19
/* Clear the sign bit */
20
u32
&= ~(1 << 31);
21
22
/* Check for NAN */
23
if
(
u32
> 0x7F800000)
24
{
25
/* Set error bit */
26
*(
unsigned
int
*)&
x
|= 0x00400000;
27
return
x
;
28
}
29
30
/* Convert back to float */
31
return
*(
float
*)&
u32
;
32
}
__cdecl
#define __cdecl
Definition:
accygwin.h:79
u32
ULONG32 u32
Definition:
btrfs.h:14
fabsf
_Check_return_ float __cdecl fabsf(_In_ float x)
Definition:
fabsf.c:13
x
GLint GLint GLint GLint GLint x
Definition:
gl.h:1548
_Check_return_
#define _Check_return_
Definition:
no_sal2.h:60
_In_
#define _In_
Definition:
no_sal2.h:158
sdk
lib
crt
math
fabsf.c
Generated on Thu May 22 2025 06:15:17 for ReactOS by
1.9.6