signbit 函数 (fast_math)

确定是否负 _X 的符号

inline int signbit(
   float _X
) restrict(amp);

参数

  • _X
    浮点值

返回值

当且仅当 _X 的符号为负数,返回非零值

要求

标题: amp_math.h

命名空间: Concurrency::fast_math

请参见

参考

Concurrency::fast_math 命名空间