|
Pixar Arch 0.25.8
|
Architecture-specific math function calls. More...
#include "pxr/arch/pxr.h"#include "pxr/arch/defines.h"#include "pxr/arch/inttypes.h"#include <cmath>Go to the source code of this file.
Namespaces | |
| namespace | pxr |
Macros | |
| #define | M_PI 3.14159265358979323846 |
| #define | ARCH_MIN_FLOAT_EPS_SQR 0.000244141F |
| This is the smallest value e such that 1+e^2 == 1, using floats. | |
Functions | |
| long | pxr::ArchSign (long val) |
| Three-valued sign. Return 1 if val > 0, 0 if val == 0, or -1 if val < 0. | |
| uint32_t | pxr::ArchFloatToBitPattern (float v) |
| Returns The IEEE-754 bit pattern of the specified single precision value as a 32-bit unsigned integer. | |
| float | pxr::ArchBitPatternToFloat (uint32_t v) |
| Returns The single precision floating point value corresponding to the given IEEE-754 bit pattern. | |
| uint64_t | pxr::ArchDoubleToBitPattern (double v) |
| Returns The IEEE-754 bit pattern of the specified double precision value as a 64-bit unsigned integer. | |
| double | pxr::ArchBitPatternToDouble (uint64_t v) |
| Returns The double precision floating point value corresponding to the given IEEE-754 bit pattern. | |
| void | pxr::ArchSinCosf (float v, float *s, float *c) |
| Computes the sine and cosine of the specified value as a float. | |
| void | pxr::ArchSinCos (double v, double *s, double *c) |
| Computes the sine and cosine of the specified value as a double. | |
| int | pxr::ArchCountTrailingZeros (uint64_t x) |
Return the number of consecutive 0-bits in x starting from the least significant bit position. | |
Architecture-specific math function calls.
| #define M_PI 3.14159265358979323846 |
| #define ARCH_MIN_FLOAT_EPS_SQR 0.000244141F |
This is the smallest value e such that 1+e^2 == 1, using floats.
True for all IEEE754 chipsets.