Skip to content

Commit 66176c2

Browse files
committed
Don't use 'not defined'
Signed-off-by: Yuanyuan Chen <[email protected]>
1 parent 34a1dd7 commit 66176c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/fbgemm/FloatConversion.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ inline float cpu_half2float_ref(const float16 h) {
289289
// Same as the previous function, but use the built-in fp16 to fp32
290290
// conversion provided by the compiler
291291
inline float cpu_half2float(const float16 h) {
292-
#if defined(HAS_NATIVE_FP16_TYPE) && not defined(MISSING_GNU_F2H_IEEE)
292+
#if defined(HAS_NATIVE_FP16_TYPE) && !defined(MISSING_GNU_F2H_IEEE)
293293
__fp16 h_fp16 = NAN;
294294
std::memcpy(&h_fp16, &h, sizeof(__fp16));
295295
return h_fp16;
@@ -299,7 +299,7 @@ inline float cpu_half2float(const float16 h) {
299299
}
300300

301301
inline float16 cpu_float2half(const float f) {
302-
#if defined(HAS_NATIVE_FP16_TYPE) && not defined(MISSING_GNU_F2H_IEEE)
302+
#if defined(HAS_NATIVE_FP16_TYPE) && !defined(MISSING_GNU_F2H_IEEE)
303303
__fp16 h = f;
304304
float16 res = 0;
305305
std::memcpy(&res, &h, sizeof(__fp16));

0 commit comments

Comments
 (0)