core: Long lines
This commit is contained in:
parent
7820c2f17a
commit
7c925cfaaf
1 changed files with 4 additions and 2 deletions
|
@ -59,13 +59,15 @@ pure fn gt(x: f32, y: f32) -> bool { ret x > y; }
|
|||
// to the libmath macros in the rust runtime for performance
|
||||
|
||||
#[doc(
|
||||
brief = "Returns true if `x` is a positive number, including +0.0f320 and +Infinity."
|
||||
brief = "Returns true if `x` is a positive number, including +0.0f320 \
|
||||
and +Infinity."
|
||||
)]
|
||||
pure fn is_positive(x: f32) -> bool
|
||||
{ ret x > 0.0f32 || (1.0f32/x) == infinity; }
|
||||
|
||||
#[doc(
|
||||
brief = "Returns true if `x` is a negative number, including -0.0f320 and -Infinity."
|
||||
brief = "Returns true if `x` is a negative number, including -0.0f320 \
|
||||
and -Infinity."
|
||||
)]
|
||||
pure fn is_negative(x: f32) -> bool
|
||||
{ ret x < 0.0f32 || (1.0f32/x) == neg_infinity; }
|
||||
|
|
Loading…
Add table
Reference in a new issue